{
    "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.0.2",
            "commit": "e3a61e91030696348b56361bdf80ea358aef4a19",
            "disable-shallow-clone": true
        },
        {
            "type": "git",
            "dest": "obs-deps",
            "url": "https://github.com/obsproject/obs-deps.git",
            "tag": "2024-09-05",
            "commit": "45b7d2cfac0e2ac256d458c7466a925b0a94de35"
        },
        {
            "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"
            ]
        }
    ]
}
