Repository: yt-dlp
Issue: m4a audio only add-chapters embed-thumbnail fails
Labels: bug,triage,core:post-processor

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a bug unrelated to a specific site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

Download of an m4a audio only file attempting to add available chapters (--add-chapters) along with embedding the thumbnail (--embed-thumbnail) fails - see the complete verbose output

However, each of these works individually

Just the thumbnail being embedded-

```
[debug] Command-line config: ['-v', '--embed-thumbnail', '--ffmpeg-location', 'c:\\ffmpeg_yt-dlp\\bin', 'https://www.youtube.com/watch?v=b1Fo_M_tj6w', '-f', '140']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.03.04.232716 from yt-dlp/yt-dlp-nightly-builds [cf91400a1] (zip)
[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-113852-g4a134eb14a-20240229 (setts), ffprobe N-113852-g4a134eb14a-20240229
[debug] Optional libraries: sqlite3-3.35.5
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1835 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=b1Fo_M_tj6w
[youtube] b1Fo_M_tj6w: Downloading webpage
[youtube] b1Fo_M_tj6w: Downloading ios player API JSON
[youtube] b1Fo_M_tj6w: Downloading android player API JSON
[youtube] b1Fo_M_tj6w: Downloading m3u8 information
[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, size, br, asr, vext, aext, hasaud, id
[info] b1Fo_M_tj6w: Downloading 1 format(s): 140
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp
[debug] Invoking http downloader on "https://rr2---sn-fpoqnugx5h-jaus.googlevideo.com/videoplayback?expire=1709634938&ei=GqHmZav9Jquiy_sPooKLqAk&ip=173.187.42.172&id=o-AGB46zb3wjmzLhvBs7vf-ncUvyG4-EDRRbHQuFJyiZNR&itag=140&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Mp&mm=31%2C29&mn=sn-fpoqnugx5h-jaus%2Csn-5ualdnsd&ms=au%2Crdu&mv=m&mvi=2&pl=23&initcwndbps=883750&vprv=1&svpuc=1&mime=audio%2Fmp4&gir=yes&clen=1286658&dur=79.458&lmt=1708723267316840&mt=1709612954&fvip=1&keepalive=yes&fexp=24007246&c=IOS&txp=4532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIhALdjcEVGEFiZJEs_N0js_YP_Pm57fUYJ_BqeHehfrSLuAiB_Cp9MrC_4zsdq0vYYhQMbeLpcOe6mwpKWZ4YGVQ5-Rg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=APTiJQcwRgIhAKG1Wx-fTCa7C_JsYookND7AZKrIk1zV33m25LjjlYAGAiEAyre_4Zx5OrhLuOj75XHj8OV0I9687hju4-4IM9WN234%3D"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a
[download] 100% of    1.23MiB in 00:00:00 at 4.13MiB/s
[FixupM4a] Correcting container of "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a" -map 0 -dn -ignore_unknown -c copy -f mp4 -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].temp.m4a"
[ThumbnailsConvertor] Converting thumbnail "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp" to png
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -f image2 -pattern_type none -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp" -update 1 -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png"
[EmbedThumbnail] Neither mutagen nor AtomicParsley was found. Falling back to ffmpeg
[debug] ffprobe command line: "c:\ffmpeg_yt-dlp\bin\ffprobe" -hide_banner -show_format -show_streams -print_format json "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[EmbedThumbnail] ffmpeg: Adding thumbnail to "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png" -map 0 -dn -ignore_unknown -c copy -map 1 "-disposition:1" attached_pic -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].temp.m4a"
```

I renamed the suffix of the file from .m4a to .thumb.m4a


Just adding chapter metadata (plus writing thumbnail as a separate file)-

```
[debug] Command-line config: ['-v', '--add-chapters', '--ffmpeg-location', 'c:\\ffmpeg_yt-dlp\\bin', 'https://www.youtube.com/watch?v=b1Fo_M_tj6w', '-f', '140', '--write-thumbnail']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.03.04.232716 from yt-dlp/yt-dlp-nightly-builds [cf91400a1] (zip)
[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-113852-g4a134eb14a-20240229 (setts), ffprobe N-113852-g4a134eb14a-20240229
[debug] Optional libraries: sqlite3-3.35.5
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1835 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=b1Fo_M_tj6w
[youtube] b1Fo_M_tj6w: Downloading webpage
[youtube] b1Fo_M_tj6w: Downloading ios player API JSON
[youtube] b1Fo_M_tj6w: Downloading android player API JSON
[youtube] b1Fo_M_tj6w: Downloading m3u8 information
[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, size, br, asr, vext, aext, hasaud, id
[info] b1Fo_M_tj6w: Downloading 1 format(s): 140
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp
[debug] Invoking http downloader on "https://rr2---sn-fpoqnugx5h-jaus.googlevideo.com/videoplayback?expire=1709635081&ei=qaHmZeiZM8S0y_sP1fifyAw&ip=173.187.42.172&id=o-AMNCb2k-gqqb6do3jUFqdYu62uFIc50j8ja4sjCkCWXA&itag=140&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Mp&mm=31%2C29&mn=sn-fpoqnugx5h-jaus%2Csn-5uaeznze&ms=au%2Crdu&mv=m&mvi=2&pl=23&initcwndbps=896250&vprv=1&svpuc=1&mime=audio%2Fmp4&gir=yes&clen=1286658&dur=79.458&lmt=1708723267316840&mt=1709613193&fvip=4&keepalive=yes&fexp=24007246&c=IOS&txp=4532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRAIgMnxRtZs6N4K_-lUBGAfqpFrpuBRD2TQ1g-lhe33mL_4CICx-x4kDfgcrzdvCXYaBAW2pvPT99NpZ4ngSXtKSGODV&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=APTiJQcwRQIhAL8R92-1KuphhLJg1Y3Z6QUaQdrSwanjCTascbL7ttuiAiB8_lXYAVB2Q-7U7J8mPx94NFQfaY57daWgIOm3XxSqCQ%3D%3D"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a
[download] 100% of    1.23MiB in 00:00:00 at 3.74MiB/s
[FixupM4a] Correcting container of "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a" -map 0 -dn -ignore_unknown -c copy -f mp4 -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].temp.m4a"
[Metadata] Adding metadata to "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].meta" -map 0 -dn -ignore_unknown -vn -acodec copy -map_metadata 1 -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].temp.m4a"
```

I renamed this .m4a to .chap.m4a


Using the debug output above from the first command for the .png conversion via ffmpeg of the .webp thumbnail-

```
>c:\ffmpeg_yt-dlp\bin\ffmpeg -y -loglevel "repeat+info" -f image2 -pattern_type none -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp" -update 1 -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png"
ffmpeg version N-113852-g4a134eb14a-20240229 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
  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 --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libharfbuzz --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-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --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 --enable-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=20240229
  libavutil      58. 39.100 / 58. 39.100
  libavcodec     60. 40.100 / 60. 40.100
  libavformat    60. 22.101 / 60. 22.101
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 17.100 /  9. 17.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Input #0, image2, from 'file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: webp, yuv420p(tv, bt470bg/unknown/unknown), 1280x720, 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (webp (native) -> png (native))
Press [q] to stop, [?] for help
Output #0, image2, to 'file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png':
  Metadata:
    encoder         : Lavf60.22.101
  Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 1280x720, q=2-31, 200 kb/s, 25 fps, 25 tbn
      Metadata:
        encoder         : Lavc60.40.100 png
[out#0/image2 @ 000002bd3ce4ab80] video:317KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.981x
```

If I then take the saved .chap.m4a along with the .png thumbnail using the effective ffmpeg command for the thumbnail embedded version, I am able to produce a copy of the video with the chapters and thumbnail in tact-

```
>c:\ffmpeg_yt-dlp\bin\ffmpeg -y -loglevel "repeat+info" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].chap.m4a" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png" -map 0 -dn -ignore_unknown -c copy -map 1 "-disposition:1" attached_pic -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].chap_with_thumb.m4a"
ffmpeg version N-113852-g4a134eb14a-20240229 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
  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 --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libharfbuzz --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-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --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 --enable-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=20240229
  libavutil      58. 39.100 / 58. 39.100
  libavcodec     60. 40.100 / 60. 40.100
  libavformat    60. 22.101 / 60. 22.101
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 17.100 /  9. 17.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].chap.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 512
    compatible_brands: M4A isomiso2
    encoder         : Lavf60.22.101
  Duration: 00:01:19.46, start: 0.000000, bitrate: 129 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 23.000000
      Metadata:
        title           : An intro to video chapters
    Chapter #0:1: start 23.000000, end 67.000000
      Metadata:
        title           : How to set up video chapters
    Chapter #0:2: start 67.000000, end 79.000000
      Metadata:
        title           : See video chapters in action
  Stream #0:0[0x1](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
      Metadata:
        handler_name    : ISO Media file produced by Google Inc.
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Data: bin_data (text / 0x74786574), 0 kb/s
      Metadata:
        handler_name    : SubtitleHandler
Input #1, png_pipe, from 'file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png':
  Duration: N/A, bitrate: N/A
  Stream #1:0: Video: png, rgb24(pc, gbr/unknown/unknown), 1280x720, 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Output #0, ipod, to 'file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].chap_with_thumb.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 512
    compatible_brands: M4A isomiso2
    encoder         : Lavf60.22.101
  Chapters:
    Chapter #0:0: start 0.000000, end 23.000000
      Metadata:
        title           : An intro to video chapters
    Chapter #0:1: start 23.000000, end 67.000000
      Metadata:
        title           : How to set up video chapters
    Chapter #0:2: start 67.000000, end 79.000000
      Metadata:
        title           : See video chapters in action
  Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
      Metadata:
        handler_name    : ISO Media file produced by Google Inc.
        vendor_id       : [0][0][0][0]
  Stream #0:1: Video: png, rgb24(pc, gbr/unknown/unknown), 1280x720, q=2-31, 25 fps, 25 tbr, 12800 tbn (attached pic)
Press [q] to stop, [?] for help
[ipod @ 000001866c265f80] Starting second pass: moving the moov atom to the beginning of the file
[out#0/ipod @ 000001866c1f5940] video:317KiB audio:1242KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.963762%
size=    1574KiB time=00:00:00.04 bitrate=322262.8kbits/s speed=2.63x
```


I am using the latest nightly of yt-dlp and have demonstrated these tests with a rather recent yt-dlp build of ffmpeg

I believe this to be a bug in the implementation and am reporting as such

Please let me know if I can provide any further info

Thanks,
-br3wski3

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', '--add-chapters', '--embed-thumbnail', '--ffmpeg-location', 'c:\\ffmpeg_yt-dlp\\bin', 'https://www.youtube.com/watch?v=b1Fo_M_tj6w', '-f', '140']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.03.04.232716 from yt-dlp/yt-dlp-nightly-builds [cf91400a1] (zip)
[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-113852-g4a134eb14a-20240229 (setts), ffprobe N-113852-g4a134eb14a-20240229
[debug] Optional libraries: sqlite3-3.35.5
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1835 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.03.04.232716 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.03.04.232716 from yt-dlp/yt-dlp-nightly-builds)
[youtube] Extracting URL: https://www.youtube.com/watch?v=b1Fo_M_tj6w
[youtube] b1Fo_M_tj6w: Downloading webpage
[youtube] b1Fo_M_tj6w: Downloading ios player API JSON
[youtube] b1Fo_M_tj6w: Downloading android player API JSON
[youtube] b1Fo_M_tj6w: Downloading m3u8 information
[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, size, br, asr, vext, aext, hasaud, id
[info] b1Fo_M_tj6w: Downloading 1 format(s): 140
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp
[debug] Invoking http downloader on "https://rr2---sn-fpoqnugx5h-jaus.googlevideo.com/videoplayback?expire=1709634131&ei=853mZZKiMe-g0_wP0sGY8Ac&ip=173.187.42.172&id=o-AI7dC9u0qlT8uD_vQKUgXaFydFPPtfQKTb48bIRKmZ08&itag=140&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Mp&mm=31%2C29&mn=sn-fpoqnugx5h-jaus%2Csn-5ualdnsd&ms=au%2Crdu&mv=m&mvi=2&pl=23&initcwndbps=858750&vprv=1&svpuc=1&mime=audio%2Fmp4&gir=yes&clen=1286658&dur=79.458&lmt=1708723267316840&mt=1709612226&fvip=1&keepalive=yes&fexp=24007246&c=IOS&txp=4532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIgLNgziuXoOAH5Sf31HFIE9aYDENQS6PU6Y6MnzRIvKssCIQD4khTYNyzM_1x60gTzHBKNB7ERU-038jtgd9X48GgJ3Q%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=APTiJQcwRQIgeUdtMV7J5BTIT6jQZlJLzedr0zUAoV8crx6qYy0Scy8CIQCdbqMZqv4Mi8Ehtv1awTpWjnyYorOSnSatm-TrhGSE9Q%3D%3D"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a
[download] 100% of    1.23MiB in 00:00:00 at 3.14MiB/s
[FixupM4a] Correcting container of "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a" -map 0 -dn -ignore_unknown -c copy -f mp4 -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].temp.m4a"
[Metadata] Adding metadata to "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].meta" -map 0 -dn -ignore_unknown -vn -acodec copy -map_metadata 1 -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].temp.m4a"
[ThumbnailsConvertor] Converting thumbnail "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp" to png
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -f image2 -pattern_type none -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].webp" -update 1 -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png"
[EmbedThumbnail] Neither mutagen nor AtomicParsley was found. Falling back to ffmpeg
[debug] ffprobe command line: "c:\ffmpeg_yt-dlp\bin\ffprobe" -hide_banner -show_format -show_streams -print_format json "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[EmbedThumbnail] ffmpeg: Adding thumbnail to "How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a"
[debug] ffmpeg command line: "c:\ffmpeg_yt-dlp\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a" -i "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png" -map 0 -dn -ignore_unknown -c copy -map 1 "-disposition:2" attached_pic -movflags "+faststart" "file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].temp.m4a"
[debug] ffmpeg version N-113852-g4a134eb14a-20240229 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
  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 --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libharfbuzz --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-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --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 --enable-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=20240229
  libavutil      58. 39.100 / 58. 39.100
  libavcodec     60. 40.100 / 60. 40.100
  libavformat    60. 22.101 / 60. 22.101
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 17.100 /  9. 17.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 512
    compatible_brands: M4A isomiso2
    encoder         : Lavf60.22.101
  Duration: 00:01:19.46, start: 0.000000, bitrate: 129 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 23.000000
      Metadata:
        title           : An intro to video chapters
    Chapter #0:1: start 23.000000, end 67.000000
      Metadata:
        title           : How to set up video chapters
    Chapter #0:2: start 67.000000, end 79.000000
      Metadata:
        title           : See video chapters in action
  Stream #0:0[0x1](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
      Metadata:
        handler_name    : ISO Media file produced by Google Inc.
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Data: bin_data (text / 0x74786574), 0 kb/s
      Metadata:
        handler_name    : SubtitleHandler
Input #1, png_pipe, from 'file:How to Add Chapters to Your Videos Using Timestamps [b1Fo_M_tj6w].png':
  Duration: N/A, bitrate: N/A
  Stream #1:0: Video: png, rgb24(pc, gbr/unknown/unknown), 1280x720, 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
[ipod @ 0000025564892e40] Could not find tag for codec png in stream #1, codec not currently supported in container
[out#0/ipod @ 00000255647fc980] Could not write header (incorrect codec parameters ?): Invalid argument
Conversion failed!

ERROR: Postprocessing: Unable to embed using ffprobe & ffmpeg; Conversion failed!
Traceback (most recent call last):
  File "2024.03.04.232716_yt-dlp\yt_dlp\postprocessor\embedthumbnail.py", line 186, in run
    self.run_ffmpeg_multiple_files([filename, thumbnail_filename], temp_filename, options)
  File "2024.03.04.232716_yt-dlp\yt_dlp\postprocessor\ffmpeg.py", line 329, in run_ffmpeg_multiple_files
    return self.real_run_ffmpeg(
  File "2024.03.04.232716_yt-dlp\yt_dlp\postprocessor\ffmpeg.py", line 367, in real_run_ffmpeg
    raise FFmpegPostProcessorError(stderr.strip().splitlines()[-1])
yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError: Conversion failed!

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "2024.03.04.232716_yt-dlp\yt_dlp\YoutubeDL.py", line 3510, in process_info
    replace_info_dict(self.post_process(dl_filename, info_dict, files_to_move))
  File "2024.03.04.232716_yt-dlp\yt_dlp\YoutubeDL.py", line 3690, in post_process
    info = self.run_all_pps('post_process', info, additional_pps=info.get('__postprocessors'))
  File "2024.03.04.232716_yt-dlp\yt_dlp\YoutubeDL.py", line 3672, in run_all_pps
    info = self.run_pp(pp, info)
  File "2024.03.04.232716_yt-dlp\yt_dlp\YoutubeDL.py", line 3650, in run_pp
    files_to_delete, infodict = pp.run(infodict)
  File "2024.03.04.232716_yt-dlp\yt_dlp\postprocessor\common.py", line 23, in run
    ret = func(self, info, *args, **kwargs)
  File "2024.03.04.232716_yt-dlp\yt_dlp\postprocessor\common.py", line 128, in wrapper
    return func(self, info)
  File "2024.03.04.232716_yt-dlp\yt_dlp\postprocessor\embedthumbnail.py", line 189, in run
    raise EmbedThumbnailPPError(f'Unable to embed using ffprobe & ffmpeg; {err}')
yt_dlp.postprocessor.embedthumbnail.EmbedThumbnailPPError: Unable to embed using ffprobe & ffmpeg; Conversion failed!
```