{
    "name": "ffmpeg",
    "config-opts": [
        "--enable-gpl",
        "--enable-shared",
        "--disable-static",
        "--enable-gnutls",
        "--disable-doc",
        "--disable-programs",
        "--disable-devices",
        "--enable-libopus",
        "--enable-libvpx",
        "--enable-libvorbis",
        "--enable-libx264",
        "--enable-nvenc",
        "--enable-libsrt",
        "--enable-librist",
        "--enable-libaom",
        "--enable-libsvtav1"
    ],
    "cleanup": [
        "/share/ffmpeg"
    ],
    "sources": [
        {
            "type": "git",
            "url": "https://github.com/FFmpeg/FFmpeg.git",
            "tag": "n7.1.1",
            "commit": "db69d06eeeab4f46da15030a80d539efb4503ca8",
            "disable-shallow-clone": true
        },
        {
            "type": "git",
            "dest": "obs-deps",
            "url": "https://github.com/obsproject/obs-deps.git",
            "tag": "2024-09-05",
            "commit": "45b7d2cfac0e2ac256d458c7466a925b0a94de35"
        },
        {
            "type": "patch",
            "paths": [
                "patches/ffmpeg/0001-lavc-vaapi_encode-Query-surface-alignment.patch",
                "patches/ffmpeg/0002-lavc-vaapi_encode_h265-Use-surface-alignment.patch"
            ]
        },
        {
            "type": "shell",
            "commands": [
                "patch -Np1 -i obs-deps/deps.ffmpeg/patches/FFmpeg/0001-flvdec-handle-unknown.patch",
                "patch -Np1 -i obs-deps/deps.ffmpeg/patches/FFmpeg/0002-libaomenc-presets.patch"
            ]
        }
    ]
}
