google-code-export / ffmpegthumbnailer

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

Didn't work with anamorph video #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If video is anamorphic - thumb has wrong aspect.

ffmpegthumbnailer version: 2.0.2
Linux 2.6.38-9-generic #43-Ubuntu SMP i686 athlon i386 GNU/Linux

Original issue reported on code.google.com by razrfal...@gmail.com on 7 May 2011 at 10:42

GoogleCodeExporter commented 9 years ago
Can you link to a sample file and provide actual and expected values for the 
thumb? 

Original comment by kcki...@gmail.com on 29 Sep 2011 at 3:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I didn't know how to convert anamorph video. So... here is screanshot:
http://itmages.ru/image/view/292477/22f33b97

3.0-ARCH
kdemultimedia-ffmpegthumbs 4.7.1
ffmpeg 20110923

Original comment by razrfal...@gmail.com on 29 Sep 2011 at 6:06

GoogleCodeExporter commented 9 years ago
The scaling is done based on the movie's aspect ratio, not the actual 
dimensions.

For a movie with this metadata:
Display Aspect Ratio : 16:9
Width                : 720 pixels
Height               : 480 pixels

The height should be 405 for an aspect ratio of 16:9 but it is actually 480, as 
a result the dimensions and aspect ratio do not match.

Running this command:
$ ffmpegthumbnailer -s 0 -i test.mov -o test.png

The resulting thumbnail is 720x405 instead of 720x480, which conforms to the 
aspect ratio, not the dimensions.

To fix this problem, the scaling should be done based on the actual dimensions, 
not the aspect ratio.

The function causing the problem is here:
http://code.google.com/p/ffmpegthumbnailer/source/browse/trunk/libffmpegthumbnai
ler/moviedecoder.cpp#396

Original comment by danielbo...@yahoo.com on 11 Oct 2011 at 8:36