-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--embed-thumbnail conversion failed, ffmpeg and .webp images. #25687
Comments
The default format for the highest resolution thumbnail seems to have changed to .webp, but a .jpg version remains available as well. youtube-dl ought to use the latter for compatibility. |
Same issue here, youtube-dl creates the .webp file, but fails to embed it in the (in my case) .mp3 file. Then outputs two mp3 files:
|
Could it be that it is unrelated to Try this one:
|
I think this is an unrelated problem, the JPEG thumbnail seems to be corrupted. I am unable to open the downloaded file on its own using Preview or Photoshop, and I assume thats the reason |
Shouldn't the default thumbnail be the jpg version though, for better compatibility ? Webp is not universally supported. |
Indeed, the ID3 spec says:
Embedding of WEBP into MP3 isn't supported by ffmpeg anyway, and that's the (original) issue, reported as |
I've also seen it download and add a jpg extension while still webp format and ffmpeg will complain about the mime-type. postprocessor/embedthumbnail.py temp workaround telling ffmpeg to convert thumb before it adds it:
Which works for what I need for the time being (only tested mp3). |
Actually, it doesn't. Google, for reasons unknown, is sending webp files mislabeled with .jpg extensions. If you're comfortable with a hex editor, have a look: you'll see the ASCII for RIFF, 4 bytes of payload length, and the ASCII for WEBP. Or try opening one of your failed jpgs with IrfanView, which is aware of magic numbers and will pop up "some poop-head gave you a webp file with a jpg extension. Would you like it renamed? |
Same problem as well when using |
Same problem as well when using --embed-thumbnail option. |
Same problem with .m4a file and AtomicParsley.exe (--embed-thumbnail). |
Checklist
Verbose log
Description
From what I can tell, when attempting to embed the video thumbnail (into an MP3 file in my case) ffmpeg dies when decoding the .webp file. I tried running the ffmpeg command manually and below is a small snippet of the output:
However, when I simply run a conversion from .webp to .jpg
then repeat the ffmpeg command spat out by youtube-dl when embedding the thumbnail replacing the .webp with the .jpg file it works just fine.
Is there any way to have youtube-dl specify the file type it downloads the video thumbnails as? I believe the --embed-thumbnail flag would work if the thumbnail was originally downloaded as something other than a .webp file.
Thank you for your time,
The text was updated successfully, but these errors were encountered: