#10081 closed defect (fixed)

Youtube webm audio has problem merging

Reported by: Ramanan V Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Ramanan V)

Here's the command and console output of BtBN build of 24-Nov on Windows 10 21H2 on Powershell.

PS C:\Users\Ramanan\Downloads> .\yt-dlp.exe -f 248+251 https://www.youtube.com/watch?v=qr_jvu9jFZU
[debug] Command-line config: ['-f', '248+251', 'https://www.youtube.com/watch?v=qr_jvu9jFZU']
[debug] User config "C:\Users\Ramanan\AppData\Roaming\yt-dlp\config": ['--embed-chapters', '--embed-subs', '--no-cache-dir', '--no-mtime', '--postprocessor-args', "EmbedSubtitle+ffmpeg: -metadata:s:s:0 language=eng -metadata:s:s:0 title='' -metadata:s:s:0 handler_name='' -disposition:s:0 default", '--sub-langs', 'en.*', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.11.11 [8b64402] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-109192-gc8e9cc8d20-20221124 (setts), ffprobe N-109192-gc8e9cc8d20-20221124
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1723 extractors
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=qr_jvu9jFZU
[youtube] qr_jvu9jFZU: Downloading webpage
[youtube] qr_jvu9jFZU: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] qr_jvu9jFZU: Downloading 1 format(s): 248+251
[debug] Invoking http downloader on "https://rr1---sn-i5uif5t-2o9s.googlevideo.com/videoplayback?expire=1669745209&ei=2fWFY6ScOuDW3LUP2K-QsAk&ip=116.75.44.200&id=o-AP89VMhIiqu4DvGMgRXtRQTFsSywg7OPv_zEFMLyM8VL&itag=248&source=youtube&requiressl=yes&mh=Oj&mm=31%2C29&mn=sn-i5uif5t-2o9s%2Csn-gwpa-cvhe7&ms=au%2Crdu&mv=m&mvi=1&pl=21&gcr=in&initcwndbps=1268750&spc=SFxXNkx1wVHoGrjYWNvlAXmWinVn3Gk&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=25205903&dur=640.680&lmt=1654005490993402&mt=1669723297&fvip=6&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=2319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgDV-VsrbB8vjvZ8_m-TSJFv9UGh_Z6rYCkTFfWn5YXAcCIBfD-3XGGmwun3Y3eaabcnD9OUsGV999MlZe8wsy_qQ4&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAMNL2YINYu_jxxHkh_vwfJPujmIsJrs_rX-8ACqQO7uUAiEA7DqAYTu35H7uzQGYVmNvli2xAZNAFdax6AMGn9CVSFI%3D"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f248.webm
[download] 100% of   24.04MiB in 00:00:03 at 7.42MiB/s
[debug] Invoking http downloader on "https://rr1---sn-i5uif5t-2o9s.googlevideo.com/videoplayback?expire=1669745209&ei=2fWFY6ScOuDW3LUP2K-QsAk&ip=116.75.44.200&id=o-AP89VMhIiqu4DvGMgRXtRQTFsSywg7OPv_zEFMLyM8VL&itag=251&source=youtube&requiressl=yes&mh=Oj&mm=31%2C29&mn=sn-i5uif5t-2o9s%2Csn-gwpa-cvhe7&ms=au%2Crdu&mv=m&mvi=1&pl=21&gcr=in&initcwndbps=1268750&spc=SFxXNkx1wVHoGrjYWNvlAXmWinVn3Gk&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=11225312&dur=640.721&lmt=1654005543553146&mt=1669723297&fvip=6&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=2318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhALJemZw7ZAtlEB_gW5sOxb5iGuRwS-DZ7c8X6FlifPobAiA0lN4NDtmroIRH_gtUSR93Bfe3dLP4yxv1AyQI0RAF9w%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAMNL2YINYu_jxxHkh_vwfJPujmIsJrs_rX-8ACqQO7uUAiEA7DqAYTu35H7uzQGYVmNvli2xAZNAFdax6AMGn9CVSFI%3D"
[download] Destination: Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f251.webm
[download] 100% of   10.71MiB in 00:00:01 at 7.47MiB/s
[Merger] Merging formats into "Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f248.webm" -i "file:Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f251.webm" -c copy -map "0:v:0" -map "1:a:0" -movflags "+faststart" "file:Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].temp.webm"
Deleting original file Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f248.webm (pass -k to keep)
Deleting original file Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f251.webm (pass -k to keep)
[EmbedSubtitle] There aren't any subtitles to embed
[Metadata] There isn't any metadata to add

Here's the output of 28-Nov:

PS C:\Users\Ramanan\Downloads> .\yt-dlp.exe -f 248+251 https://www.youtube.com/watch?v=qr_jvu9jFZU
[debug] Command-line config: ['-f', '248+251', 'https://www.youtube.com/watch?v=qr_jvu9jFZU']
[debug] User config "C:\Users\Ramanan\AppData\Roaming\yt-dlp\config": ['--embed-chapters', '--embed-subs', '--no-cache-dir', '--no-mtime', '--postprocessor-args', "EmbedSubtitle+ffmpeg: -metadata:s:s:0 language=eng -metadata:s:s:0 title='' -metadata:s:s:0 handler_name='' -disposition:s:0 default", '--sub-langs', 'en.*', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.11.11 [8b64402] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-109250-gbecbb22eb0-20221128 (setts), ffprobe N-109250-gbecbb22eb0-20221128
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1723 extractors
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=qr_jvu9jFZU
[youtube] qr_jvu9jFZU: Downloading webpage
[youtube] qr_jvu9jFZU: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] qr_jvu9jFZU: Downloading 1 format(s): 248+251
[debug] Invoking http downloader on "https://rr1---sn-i5uif5t-2o9s.googlevideo.com/videoplayback?expire=1669745507&ei=A_eFY4z6I-a1z7sPpLqDIA&ip=116.75.44.200&id=o-AF-F4k6EZHYK03IjQCycMr9LusmidMXeXM07MxGgartU&itag=248&source=youtube&requiressl=yes&mh=Oj&mm=31%2C29&mn=sn-i5uif5t-2o9s%2Csn-gwpa-cvhe7&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=21&gcr=in&initcwndbps=1281250&spc=SFxXNgqpXXmtLEOwE7YdVfF4UgtOiY4&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=25205903&dur=640.680&lmt=1654005490993402&mt=1669723542&fvip=6&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=2319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJKAH2_dJQl99FgMNnNQmEHo0hpT3GcXK8m2HXASfDEbAiEA96GpWZgWAjjZ-K24I1G58eiHM8VVMdP-3FhKVfbu1-Q%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgH4bfADl2Xjj1zdCY-lDaFemj1YNLoUDT_w8v-xi2rCQCIFfkG-CAQXfAqrT5bXhtccu0-Z1a1aO-r9OCDNoL8eCM"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f248.webm
[download] 100% of   24.04MiB in 00:00:02 at 9.39MiB/s
[debug] Invoking http downloader on "https://rr1---sn-i5uif5t-2o9s.googlevideo.com/videoplayback?expire=1669745507&ei=A_eFY4z6I-a1z7sPpLqDIA&ip=116.75.44.200&id=o-AF-F4k6EZHYK03IjQCycMr9LusmidMXeXM07MxGgartU&itag=251&source=youtube&requiressl=yes&mh=Oj&mm=31%2C29&mn=sn-i5uif5t-2o9s%2Csn-gwpa-cvhe7&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=21&gcr=in&initcwndbps=1281250&spc=SFxXNgqpXXmtLEOwE7YdVfF4UgtOiY4&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=11225312&dur=640.721&lmt=1654005543553146&mt=1669723542&fvip=6&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=2318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgevv9mf86bTR5ouIBpd7ZOjEONv0hBrTpNmidi5Eb7aICIQC-FMaoM0w66eUFr4w6H1AmerP80-j-G4PXVP75BlslYA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgH4bfADl2Xjj1zdCY-lDaFemj1YNLoUDT_w8v-xi2rCQCIFfkG-CAQXfAqrT5bXhtccu0-Z1a1aO-r9OCDNoL8eCM"
[download] Destination: Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f251.webm
[download] 100% of   10.71MiB in 00:00:01 at 8.89MiB/s
[Merger] Merging formats into "Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f248.webm" -i "file:Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f251.webm" -c copy -map "0:v:0" -map "1:a:0" -movflags "+faststart" "file:Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].temp.webm"
[debug] ffmpeg version N-109250-gbecbb22eb0-20221128 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20221128
  libavutil      57. 43.100 / 57. 43.100
  libavcodec     59. 54.100 / 59. 54.100
  libavformat    59. 34.102 / 59. 34.102
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 50.101 /  8. 50.101
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
Input #0, matroska,webm, from 'file:Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f248.webm':
  Metadata:
    encoder         : google/video-file
  Duration: 00:10:40.68, start: 0.000000, bitrate: 314 kb/s
  Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 1080x1080, SAR 1:1 DAR 1:1, 25 fps, 25 tbr, 1k tbn (default)

ERROR: Postprocessing:   Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 1080x1080, SAR 1:1 DAR 1:1, 25 fps, 25 tbr, 1k tbn (default)
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 3276, in process_info
  File "yt_dlp\YoutubeDL.py", line 3453, in post_process
  File "yt_dlp\YoutubeDL.py", line 3435, in run_all_pps
  File "yt_dlp\YoutubeDL.py", line 3414, in run_pp
  File "yt_dlp\postprocessor\common.py", line 24, in run
  File "yt_dlp\postprocessor\common.py", line 129, in wrapper
  File "yt_dlp\postprocessor\ffmpeg.py", line 828, in run
  File "yt_dlp\postprocessor\ffmpeg.py", line 323, in run_ffmpeg_multiple_files
  File "yt_dlp\postprocessor\ffmpeg.py", line 361, in real_run_ffmpeg
yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError:   Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 1080x1080, SAR 1:1 DAR 1:1, 25 fps, 25 tbr, 1k tbn (default)

This a way to reproduce the bug. The bug is unlikely in yt-dlp and can be confirmed by ffmpeg being unable to merge the video and audio files downloaded. The downloaded files are: Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f248.webm and Voice of the Moon (feat. Manu Delago) (Live) [qr_jvu9jFZU].f251.webm

Change History (5)

comment:1 by Carl Eugen Hoyos, 17 months ago

Resolution: needs_more_info
Status: newclosed

comment:2 by Ramanan V, 17 months ago

Resolution: needs_more_info
Status: closedreopened

Wasn't necessary to close the ticket. People at yt-dlp have also reported the bug.

Basically the problem is that since a few days, ffmpeg builds fail to merge audio files in opus codec as encoded by Youtube with video files.

comment:3 by Carl Eugen Hoyos, 17 months ago

Then please provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

comment:4 by Ramanan V, 17 months ago

Description: modified (diff)

comment:5 by Ramanan V, 17 months ago

Resolution: fixed
Status: reopenedclosed

Seems to be solved in the Nov 29 BtBN build.

Note: See TracTickets for help on using tickets.