On 12.07.2011 8:30, Tim Starling wrote:
On 08/07/11 21:18, Dmitriy Sintsov wrote:
Hi!
What's the proper way of thumbnail generation for Ogg media handler, so it will work like at commons?
This is documented in the OggHandler README file:
http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/OggHandler/README
In short, you should use oggThumb.
I have difficulties compiling this old software, even though I've succesfully complied last ffmpeg with the long list of options suitable for transcoding (specified in TimedMediaHandler README file) so I have large list of video libraries and their headers installed (it was not easy, CentOS multimedia support seems to be low comparing to Ubuntu or Fedora).
-- checking for module 'vorbis>=1.2.3' -- package 'vorbis>=1.2.3' not found -- checking for module 'vorbisenc>=1.2.3' -- package 'vorbisenc>=1.2.3' not found -- Theora encoder library found -- Theora decoder library found -- ERROR: Vorbis library NOT found -- ERROR: Vorbis encoder library NOT found
whereis libvorbis libvorbisenc libvorbis: /usr/lib/libvorbis.so /usr/lib/libvorbis.a libvorbisenc: /usr/lib/libvorbisenc.so /usr/lib/libvorbisenc.a
ldconfig -p|grep vorbis libvorbisfile.so.3 (libc6) => /usr/lib/libvorbisfile.so.3 libvorbisfile.so (libc6) => /usr/lib/libvorbisfile.so libvorbisenc.so.2 (libc6) => /usr/lib/libvorbisenc.so.2 libvorbisenc.so (libc6) => /usr/lib/libvorbisenc.so libvorbis.so.0 (libc6) => /usr/lib/libvorbis.so.0 libvorbis.so (libc6) => /usr/lib/libvorbis.so
rpm -qa|grep vorbis libvorbis-1.1.2-3.el5_4.4 libvorbis-devel-1.1.2-3.el5_4.4
ls /usr/include/vorbis/ codec.h vorbisenc.h vorbisfile.h
What do I miss in the system to have oggThumb successfully complied?
In Extension:OggHandler folder I found ffmpeg-bugfix.diff. However there is no libavformat/ogg2.c in current version of ffmpeg. Even, I found the function ogg_get_length () in another source file, however the code was changed and I am not sure that manual comparsion and applying is right way. It seems that the patch is suitable for ffmpeg version developed back in 2007 but I was unable to find original sources to successfully apply the patch.
That patch is not needed for the latest version of ffmpeg, since the bug that it fixes was fixed upstream. However, as the README file says, there are other bugs that are not fixed, which is why you should use oggThumb.
ffmpeg with the following options ./configure --prefix=/usr --enable-gpl --enable-version3 --enable-postproc --enable-libvorbis --enable-pthreads \ --disable-shared --disable-ffserver --disable-ffprobe --enable-postproc \ --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-bzlib --enable-libtheora \ --enable-libspeex --enable-libvpx --disable-encoders --disable-decoder=vp8 --disable-muxers \ --enable-encoder='bmp,dvvideo,ffv1,ffvhuff,flac,gif,huffyuv,libdirac,libschroedinger,\ libtheora,libvorbis,libvpx,mjpeg,pbm,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_s16be,\ pcm_s16le,pcm_s24be,pcm_s24le,pcm_s32be,pcm_s32le,pcm_s8,pcm_u16be,pcm_u16le,pcm_u24be,\ pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,pgm,pgmyuv,png,ppm,rawvideo,tiff,vorbis,zlib' \ --enable-muxer='aiff,crc,dv,gif,image2,image2pipe,matroska,matroska_audio,md5,mjpeg,\ null,ogg,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_s16le,pcm_s24be,pcm_s24le,pcm_s32be,\ pcm_s32le,pcm_s8,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,rawvideo\ ,wav,webm,yuv4mpegpipe'
creates thumbnails for my test videos, however I am unsure about variety of formats / codecs of course.
Dmitriy