Hello. I use youtube-dl (https://github.com/ytdl-org/youtube-dl), an open source application that utilizes ffmpeg to merge the audio and video streams that it downloads.
There apparently is an issue where ffmpeg will error out on trying to join VP9 HFR video in 720p and 1080p to Opus audio. The problem is that this doesn't happen all the time, just some of the time. In the github for youtube-dl, the issue (https://github.com/ytdl-org/youtube-dl/issues/28042) lays out the problem. On the chart of youtube itag formats here ( https://gist.github.com/AgentOak/34d47c65b1d28829bb17c24c04a0096f), it is format codes 302 and 303 that are failing to merge with itag code 251 (Opus audio). The other users in the github thread state that this is an issue with ffmpeg, and affects all versions, including Linux. This is an example of the error I experience on my Windows 10 x64 computer: Y:\youtube-dl>youtube-dl --cookies cookies.txt --download-archive "deltrons_hqv5vp9.log" -i --add-metadata --embed-thumbnail -o "deltron - Videos/%(title)s - %(id)s.%(ext)s" -f --merge-output-format --format (337/315/313/336/308/271/335/303/248/334/302/247/333/244/332/243/331/242/330/278/305/266/304/264/137/136/135/134/133/160)+(251/bestaudio) -x -k --write-description --write-info-json --cache-dir "Z:\cache" --sleep-interval 4 --max-sleep-interval 9 --verbose --fragment-retries 100 https://www.youtube.com/watch?v=MakTbhIZ5zo [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--cookies', 'cookies.txt', '--download-archive', 'deltrons_hqv5vp9.log', '-i', '--add-metadata', '--embed-thumbnail', '-o', 'deltron - Videos/%(title)s - %(id)s.%(ext)s', '-f', '--merge-output-format', '--format', '(337/315/313/336/308/271/335/303/248/334/302/247/333/244/332/243/331/242/330/278/305/266/304/264/137/136/135/134/133/160)+(251/bestaudio)', '-x', '-k', '--write-description', '--write-info-json', '--cache-dir', 'Z:\\cache', '--sleep-interval', '4', '--max-sleep-interval', '9', '--verbose', '--fragment-retries', '100', 'https://www.youtube.com/watch?v=MakTbhIZ5zo'] [debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252 [debug] youtube-dl version 2021.04.07 [debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041 [debug] exe versions: ffmpeg 2021-02-16-git-8331eb058d-full_build-www.gyan.dev, ffprobe 2021-02-16-git-8331eb058d-full_build-www.gyan.dev [debug] Proxy map: {} [youtube] MakTbhIZ5zo: Downloading webpage [youtube] MakTbhIZ5zo: Downloading MPD manifest [info] Writing video description to: deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.description [info] Writing video description metadata as JSON to: deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.info.json [youtube] MakTbhIZ5zo: Downloading thumbnail ... [youtube] MakTbhIZ5zo: Writing thumbnail to: deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.jpg [debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1617835103/ei/_99tYIT4BozRigSNySg/ip/2601%3A246%3A100%3Aed%3A1c13%3A81e7%3Ae025%3A2467/id/31a9136e1219e73a/source/youtube/requiressl/yes/playback_host/r1---sn-vgqsrnll.googlevideo.com/mh/Sl/mm/31%2C26/mn/sn-vgqsrnll%2Csn-p5qs7nee/ms/au%2Conr/mv/m/mvi/1/pl/30/hfr/all/ctier/A/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/pfa/5/initcwndbps/1758750/hightc/yes/vprv/1/mt/1617812764/fvip/1/keepalive/yes/fexp/24001373%2C24007246/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cctier%2Cas%2Cpfa%2Chightc%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAM04WRMu-r3X4O6DsJ6V2J8EhEBc1EZnC6NQx08Rlb4bAiEAlC9nP_f64mY94XLkXAmKTzG1PNjF1T3Ue3veHGQBP2A%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRgIhALeDU48dVP5-Glon7lJJ_nnOU5T075_Mrz9dd3wHctGOAiEAkIeNJb2XKOvXwqcHiJ93i-xH8iFiXUsB1Zkn_4yMAdc%3D' [download] deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.f302.webm has already been downloaded [download] 100% of 12.23MiB [debug] Invoking downloader on 'https://r1---sn-vgqsrnll.googlevideo.com/videoplayback?expire=1617835103&ei=_99tYIT4BozRigSNySg&ip=2601%3A246%3A100%3Aed%3A1c13%3A81e7%3Ae025%3A2467&id=o-ANILf1kO3YGr-iUpo36fRs7q3EyY3jax2qz5xBR-Dw99&itag=251&source=youtube&requiressl=yes&mh=Sl&mm=31%2C26&mn=sn-vgqsrnll%2Csn-p5qs7nee&ms=au%2Conr&mv=m&mvi=1&pl=30&ctier=A&pfa=5&initcwndbps=1758750&hightc=yes&vprv=1&mime=audio%2Fwebm&ns=qHuTDgJ0OORuqcfJmG-h-RAF&gir=yes&clen=1524583&otfp=1&dur=86.401&lmt=1564102915084376&mt=1617812764&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&n=PFIRoG_6UsFUxCyE&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cctier%2Cpfa%2Chightc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRQIgD-hS0suqwMkewJsa009Wqe61C3uV8_Fq9PD1eTcO4FACIQDK4KsK8hiuEzp2Vzx6p5dWk0ZgrgJWDVq7b56rXWwlXg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgK3xBpUIFsgaWXDZMsSyhoCJCB6nAEIrU1PrDwsaD54oCIF1XmHk2bIJiD_zmMwsLBoBtjIgeUTainxWbxD6_Ce_b' [download] deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.f251.webm has already been downloaded [download] 100% of 1.45MiB [ffmpeg] Merging formats into "deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.webm" [debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.f302.webm" -i "file:deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.f251.webm" -c copy -map "0:v:0" -map "1:a:0" "file:deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.temp.webm" ERROR: Conversion failed! Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 2106, in post_process File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\postprocessor\ffmpeg.py", line 523, in run File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\postprocessor\ffmpeg.py", line 235, in run_ffmpeg_multiple_files youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: Conversion failed! [debug] ffmpeg command line: ffprobe -show_streams "file:deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.webm" ERROR: WARNING: unable to obtain file audio codec with ffprobe Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 2106, in post_process File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\postprocessor\ffmpeg.py", line 274, in run youtube_dl.utils.PostProcessingError: WARNING: unable to obtain file audio codec with ffprobe [ffmpeg] Adding metadata to 'deltron - Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.webm' ERROR: [WinError 2] The system cannot find the file specified: 'deltron - Videos\\LIGHTSKINJOHN - only - MakTbhIZ5zo.webm' Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 806, in wrapper File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 838, in __extract_info File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 872, in process_ie_result File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 1683, in process_video_result File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 2041, in process_info File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 2106, in post_process File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\postprocessor\ffmpeg.py", line 509, in run File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\postprocessor\ffmpeg.py", line 210, in run_ffmpeg_multiple_files File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\postprocessor\ffmpeg.py", line 210, in <genexpr> FileNotFoundError: [WinError 2] The system cannot find the file specified: 'deltron - Videos\\LIGHTSKINJOHN - only - MakTbhIZ5zo.webm' Another user posted the following: ffmpeg provided by Ubuntu's default repository have same problem. btw this should be reported to ffmpeg devs tho ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Missing argument for option 'v'. Error splitting the argument list: Invalid argument The above is why I am posting it here, to inform the ffmpeg developers about the issue. I would have wanted to submit a bug report itself, but I don't use ffmpeg directly most of the time, only through youtube-dl. There is no movement on this bug in youtube-dl and their developers don't seem to want to contact you, so I am doing it myself. I would appreciate it if we could look into this issue. Please let me know if I can provide further information. Thanks again. _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".