mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.35k stars 925 forks source link

[downloader.ytdl] ffmpeg error #5834

Closed MoonlitTriss closed 1 month ago

MoonlitTriss commented 2 months ago

I'm getting the following error and I dont get how to fix it.

L:\RedditStuff\EXTRACT\hotleak\pissqu33n\pissqu33n_4522462.mp4ffmpeg version 7.0.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      59.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[hls @ 0000020ece558340] Skip ('#EXT-X-VERSION:3')
[hls @ 0000020ece558340] Opening 'https://cdn22-leak.camhdxx.com/jQWlu48ZDkLdaWsxwgYCzg==,1720371338/16932/4522462/icon0.png' for reading
[hls @ 0000020ece558340] Opening 'https://cdn22-leak.camhdxx.com/jQWlu48ZDkLdaWsxwgYCzg==,1720371338/16932/4522462/icon1.png' for reading
[hls @ 0000020ece558340] Could not find codec parameters for stream 0 (Video: png, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, hls, from 'https://cdn22-leak.camhdxx.com/jQWlu48ZDkLdaWsxwgYCzg==,1720371338/16932/4522462/icon.m3u8':
  Duration: 00:04:33.73, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
  Stream #0:0: Video: png, none, 25 tbr, 25 tbn
      Metadata:
        variant_bitrate : 0
Output #0, mp4, to 'file:\\?\L:\RedditStuff\EXTRACT\hotleak\pissqu33n\pissqu33n_4522462.mp4.part':
[out#0/mp4 @ 0000020ecebf73c0] Output file does not contain any stream
Error opening output file file:\\?\L:\RedditStuff\EXTRACT\hotleak\pissqu33n\pissqu33n_4522462.mp4.part.
Error opening output files: Invalid argument
[downloader.ytdl][error] ERROR: ffmpeg exited with code 4294967274
[download][error] Failed to download pissqu33n_4522462.mp4

I hope somebody can help me with this. Sorry if this is a very nooby question.

mikf commented 2 months ago
Error opening output file file:\\?\L:\RedditStuff\EXTRACT\hotleak\pissqu33n\pissqu33n_4522462.mp4.part.

Your FFmpeg most likely doesn't like file:\\?\L:\... paths. Disable path-extended to prevent this error. (-o path-extended=0)

[hls @ 0000020ece558340] Opening 'https://cdn22-leak.camhdxx.com/jQWlu48ZDkLdaWsxwgYCzg==,1720371338/16932/4522462/icon0.png' for reading
[hls @ 0000020ece558340] Could not find codec parameters for stream 0 (Video: png, none): unspecified size

See #3835 and https://github.com/mikf/gallery-dl/issues/3835#issuecomment-1837882905 in particular.

MoonlitTriss commented 2 months ago

I still get the same error. Its only happening for some videos. Some stuff is downlaoding just fine but other videos are skipped with this error.

mikf commented 2 months ago

same error

The exact same error can't happen if path-extended is disabled. At the very least it should complain about file:L:\... as "Invalid argument". This error could also mean that the path is too long or that it contains invalid characters, but this does not seem to be the case.

MoonlitTriss commented 2 months ago

You are right the output is slightly different but it is still complaining about "Invalid argument" I also tried changing the directory to shorten the path but that wont work either.

C:\hotleak\pissqu33n\pissqu33n_4523664.mp4ffmpeg version 7.0.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      59.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[hls @ 000001cb08838880] Skip ('#EXT-X-VERSION:3')
[hls @ 000001cb08838880] Opening 'https://cdn22-leak.camhdxx.com/HOIHrz2d874Ee6u2suS9pg==,1720544452/16932/4523664/icon0.png' for reading
[hls @ 000001cb08838880] Opening 'https://cdn22-leak.camhdxx.com/HOIHrz2d874Ee6u2suS9pg==,1720544452/16932/4523664/icon1.png' for reading
[hls @ 000001cb08838880] Could not find codec parameters for stream 0 (Video: png, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, hls, from 'https://cdn22-leak.camhdxx.com/HOIHrz2d874Ee6u2suS9pg==,1720544452/16932/4523664/icon.m3u8':
  Duration: 00:01:26.33, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
  Stream #0:0: Video: png, none, 25 tbr, 25 tbn
      Metadata:
        variant_bitrate : 0
Output #0, mp4, to 'file:C:\hotleak\pissqu33n\pissqu33n_4523664.mp4.part':
[out#0/mp4 @ 000001cb088f2040] Output file does not contain any stream
Error opening output file file:C:\hotleak\pissqu33n\pissqu33n_4523664.mp4.part.
Error opening output files: Invalid argument
[downloader.ytdl][error] ERROR: ffmpeg exited with code 4294967274
[download][error] Failed to download pissqu33n_4523664.mp4