google-code-export / ffmpegthumbnailer

Automatically exported from code.google.com/p/ffmpegthumbnailer
GNU General Public License v2.0
1 stars 1 forks source link

Support WebM thumbnailing #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, WebM video files are not supported. Could you make this possible? 
Here is the command to do so:

http://stackoverflow.com/questions/7847193/ffmpeg-creating-thumbnail-from-webm-f
ormat-and-converting-webm-movie-to-flv-mo

Free formats are better. Since WebM is getting more popular, it's time to add 
to ffmpegthumbnailer :)

Original issue reported on code.google.com by computer...@gmail.com on 5 Jun 2014 at 9:28

GoogleCodeExporter commented 9 years ago
Webm video works fine for me. Make sure your ffmpeg is compiled to support webm

Original comment by dirk.vdb on 6 Jun 2014 at 7:29

GoogleCodeExporter commented 9 years ago
ffmpegthumbnailer -i test.webm -o test.png
outputs

"Not a native file, thumbnailing will likely fail"

Same with this:
ffmpegthumbnailer -i test.mp4 -o test.png
"Not a native file, thumbnailing will likely fail"

But MP4 is working in PCManFM and WebM is not. Am I using the right command 
line arguments? Or am I missing libraries? (libvpx 1.3.0 is installed)

WebM VP8 support (ffmpeg -codecs):
Decoding supported, Encoding supported, Video codec, Lossy compression

FFmpeg logs:
Codec support (ffmpeg -codecs): http://pastebin.com/HTPrheMS
Buildconfig (ffmpeg -buildconfig): http://pastebin.com/VmZzbwPf
ffprobe test.webm:
Input #0, matroska,webm, from 'test.webm':
  Metadata:
    encoder         : google
  Duration: 00:05:34.99, start: 0.000000, bitrate: 893 kb/s
    Stream #0:0(eng): Video: vp8, yuv420p, 640x360, SAR 1:1 DAR 16:9, 1k fps, 29.92 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)

Original comment by computer...@gmail.com on 7 Jun 2014 at 7:14

GoogleCodeExporter commented 9 years ago
Can you provide me a link to a file that doesn't work?

Original comment by dirk.vdb on 7 Jun 2014 at 7:22

GoogleCodeExporter commented 9 years ago
And please try with the latest version: 2.0.9

Original comment by dirk.vdb on 7 Jun 2014 at 7:26

GoogleCodeExporter commented 9 years ago
The command from webm to png worked (using 2.0.8), but I didn't check the 
resulting png file at first because of the warning (I needed to press F5 to 
refresh, forgot to do that).

So thumbnailing both files worked. I installed PCManFM from git to no avail. I 
still wonder why it's not working. Do you think upgrading to ffmpegthumbnailer 
2.0.9 will resolve the issue?

Original comment by computer...@gmail.com on 7 Jun 2014 at 7:50

GoogleCodeExporter commented 9 years ago
The warning you get is related to the gio path handling. Something was fixed 
there in the latest release.

Original comment by dirk.vdb on 7 Jun 2014 at 7:52

GoogleCodeExporter commented 9 years ago
Hi again. I'm trying to compile 2.0.9, but the ./configure says at the end:

CONFIGURATION SUMMARY ----
png support          : disabled
jpeg support         : disabled
gio support          : disabled
register thumbnailer : disabled
unittests            : disabled
debug mode           : disabled

How can I enable GIO support?

Version 2.0.8 on Mint has the same issue as Manjaro Linux with Thunar (this 
time with Nemo, the forked Nautilus) being: MP4 works, WebM doesn't.

Original comment by computer...@gmail.com on 11 Jun 2014 at 4:07

GoogleCodeExporter commented 9 years ago
use ./configure --enable-gio

You als need to install libpng-dev or libjpeg-dev

Original comment by dirk.vdb on 11 Jun 2014 at 4:36

GoogleCodeExporter commented 9 years ago
The first three options are now "enabled". Make doesn't work, what's wrong here?
http://pastebin.com/WkYJ5dKu (I just entered make at cli)

Original comment by computer...@gmail.com on 11 Jun 2014 at 5:02

GoogleCodeExporter commented 9 years ago
Latest ffmpegthumbnailer requires a more recent version of ffmpeg

Original comment by dirk.vdb on 28 Jun 2014 at 7:17

GoogleCodeExporter commented 9 years ago
I have been able to compile ffmpegthumbnailer 2.0.9 on Manjaro Linux with 
ffmpeg 2.2.4, with GIO support, PNG support and JPEG support. The warning is 
fixed but the original problem still persists: WebM thumbnails are not 
displayed in PCManFM neither Thunar.

Original comment by computer...@gmail.com on 28 Jun 2014 at 4:43

GoogleCodeExporter commented 9 years ago
If ffmpegthumbnailer works from the command line you probably didn't configure 
the thumbnailer correctly to work with your file browser.

Original comment by dirk.vdb on 30 Jun 2014 at 6:45

GoogleCodeExporter commented 9 years ago
As suggested by PCMan (see [1]), adding video/webm to
https://code.google.com/p/ffmpegthumbnailer/source/browse/trunk/dist/ffmpegthumb
nailer.thumbnailer (which is located in 
/usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer) solves the issue: WebM 
thumbnailing now works in both PCManFM and Thunar with ffmpegthumbnailer 2.0.9.

Could you add video/webm to the ffmpegthumbnailer.thumbnailer source file? 
Thanks!

[1] http://sourceforge.net/p/pcmanfm/feature-requests/341/

Original comment by computer...@gmail.com on 1 Jul 2014 at 11:03

GoogleCodeExporter commented 9 years ago
webm has been added to the thumbnailer file

Original comment by dirk.vdb on 1 Jul 2014 at 6:40

GoogleCodeExporter commented 9 years ago

Original comment by dirk.vdb on 1 Jul 2014 at 6:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just add "video/webm;" to the end of 
/usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer

Original comment by r...@ukr.net on 29 Jan 2015 at 3:52