ffmpegthumbnailer fails to generate audio file cover thumbnail
Hello,
I upgraded recently from ubuntu 16.04 to ubuntu 18.04. Previously, I used ffmpegthumbnailer to generate thumbnails for audio file covers.
Since the upgrade, ffmpegthumbnailer fails to generate those thumbnails. I am not sure if the issue comes from ffmpegthumbnailer itself or from elsewhere.
When trying with something like this: ffmpegthumbnailer -i audio.mp4 -o test.png I get the following error message: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x564e9fdf6fa0] stream 0, timescale not set [swscaler @ 0x564e9fe7e720] deprecated pixel format used, make sure you did set range correctly Error: decodeVideoFrame() failed: frame not finished
And the output file is empty.
Best Regards,
Can you provide a sample that fails?
Well, due to copyright issues I will not provide an audio file here. However, I can tell you how to make on yourself. You can use youtube-dl on a soundcloud url, like this: youtube-dl "soundcould-url" --embed-thumbnail
Same « problem » here on ubuntuBudgie 20.04 with Nemo 4.4.2
django@ASGARD:~$ dpkg -l | grep thumbnail
ii ffmpegthumbnailer 2.1.1-0.2build2 amd64 fast and lightweight video thumbnailer
ii libffmpegthumbnailer4v5 2.1.1-0.2build2 amd64 shared library for ffmpegthumbnailer
ii libgdk-pixbuf2.0-bin 2.40.0+dfsg-3 amd64 GDK Pixbuf library (thumbnailer)
django@ASGARD:~$
And
django@ASGARD:~$ cat /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer
[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -i %i -o %o -s %s -f
MimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-flv;video/x-matroska;video/webm;video/mp2t;audio/flac;audio/mpeg
django@ASGARD:~$
For reference : https://bugs.launchpad.net/ubuntu/+source/ffmpegthumbnailer/+bug/1882471