[FFmpeg-user] filter thumbnail does not respect aspect ratio

Thomas Seilund tps at netmaster.dk
Tue Apr 9 12:43:18 CEST 2013


On 09-04-2013 12:33, Carl Eugen Hoyos wrote:
> Thomas Seilund <tps <at> netmaster.dk> writes:
>
>> 16:9 video:
>>
>> ffmpeg -i p20120122142736.mpg -ss 0 -vf thumbnail
>> -frames:v 1 thumbnail.jpg
> What does ffmpeg -i thumbnail.jpg report?
> I am also (often) using ImageMagick to test
> issues, but it is definitely not a bug-free
> project (see for example 61a9f09).
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Hi Eugen

Thanks!

16:9

ffmpeg -i thumbnail.jpg
ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
   built on Mar 13 2013 20:25:12 with gcc 4.6.3
   configuration: --prefix=/usr --libdir=/usr/lib64 
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared 
--cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ 
--ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' 
--extra-cflags='-march=native -O2 -pipe' --extra-cxxflags='-O2 -pipe' 
--disable-static --enable-gpl --enable-version3 --enable-postproc 
--enable-avfilter --disable-stripping --disable-debug --disable-doc 
--disable-network --disable-vaapi --disable-vdpau --disable-ffplay 
--enable-libmp3lame --enable-libvo-aacenc --enable-libtheora 
--enable-libvorbis --enable-libx264 --enable-libfaac --enable-nonfree 
--disable-indev=v4l --disable-indev=alsa --disable-indev=oss 
--disable-indev=jack --enable-libv4l2 --disable-outdev=alsa 
--disable-outdev=oss --disable-outdev=sdl --enable-libfreetype 
--enable-libvpx --disable-amd3dnow --disable-amd3dnowext 
--disable-altivec --disable-avx --disable-mmx2 --disable-ssse3 
--disable-vis --disable-neon --cpu=host --enable-hardcoded-tables
   libavutil      51. 35.100 / 51. 35.100
   libavcodec     53. 61.100 / 53. 61.100
   libavformat    53. 32.100 / 53. 32.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 61.100 /  2. 61.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'thumbnail.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: mjpeg, yuvj420p, 720x576 [SAR 64:45 DAR 16:9], 
25 tbr, 25 tbn, 25 tbc
At least one output file must be specified


4:3:

ffmpeg -i thumbnail.jpg
ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
   built on Mar 13 2013 20:25:12 with gcc 4.6.3
   configuration: --prefix=/usr --libdir=/usr/lib64 
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared 
--cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ 
--ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' 
--extra-cflags='-march=native -O2 -pipe' --extra-cxxflags='-O2 -pipe' 
--disable-static --enable-gpl --enable-version3 --enable-postproc 
--enable-avfilter --disable-stripping --disable-debug --disable-doc 
--disable-network --disable-vaapi --disable-vdpau --disable-ffplay 
--enable-libmp3lame --enable-libvo-aacenc --enable-libtheora 
--enable-libvorbis --enable-libx264 --enable-libfaac --enable-nonfree 
--disable-indev=v4l --disable-indev=alsa --disable-indev=oss 
--disable-indev=jack --enable-libv4l2 --disable-outdev=alsa 
--disable-outdev=oss --disable-outdev=sdl --enable-libfreetype 
--enable-libvpx --disable-amd3dnow --disable-amd3dnowext 
--disable-altivec --disable-avx --disable-mmx2 --disable-ssse3 
--disable-vis --disable-neon --cpu=host --enable-hardcoded-tables
   libavutil      51. 35.100 / 51. 35.100
   libavcodec     53. 61.100 / 53. 61.100
   libavformat    53. 32.100 / 53. 32.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 61.100 /  2. 61.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'thumbnail.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: mjpeg, yuvj420p, 720x576 [SAR 16:15 DAR 4:3], 
25 tbr, 25 tbn, 25 tbc
At least one output file must be specified

Thanks

Thomas S


More information about the ffmpeg-user mailing list