[FFmpeg-trac] #498(undetermined:reopened): Invalid pixel aspect ratio encoding mpeg4
FFmpeg
trac at avcodec.org
Mon Oct 3 11:02:07 CEST 2011
#498: Invalid pixel aspect ratio encoding mpeg4
-------------------------------------+-------------------------------------
Reporter: cehoyos | Owner:
Type: defect | Status: reopened
Priority: important | Component:
Version: git-master | undetermined
Keywords: regression | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 1
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* status: closed => reopened
* resolution: fixed =>
Comment:
Still fails with -vf scale:
{{{
$ ffmpeg -i PAR1035.avi -vf scale=640:360 out.avi
ffmpeg version N-33240-ga5dfeb6, Copyright (c) 2000-2011 the FFmpeg
developers
built on Oct 3 2011 10:53:02 with gcc 4.5.3
configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
libavutil 51. 19. 0 / 51. 19. 0
libavcodec 53. 19. 0 / 53. 19. 0
libavformat 53. 13. 0 / 53. 13. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
Seems stream 0 codec frame rate differs from container frame rate:
30000.00 (30000/1) -> 29.97 (30000/1001)
Input #0, avi, from 'PAR1035.avi':
Metadata:
encoder : Lavf53.4.0
Duration: 00:04:57.16, start: 0.000000, bitrate: 2 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (DX50 / 0x30355844),
yuv420p, 720x406 [SAR 1:1 DAR 360:203], 29.97 fps, 29.97 tbr, 29.97 tbn,
30k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16,
192 kb/s
[buffer @ 0x8cf2220] w:720 h:406 pixfmt:yuv420p tb:1/1000000 sar:1/1
sws_param:
[scale @ 0x8cef720] w:720 h:406 fmt:yuv420p -> w:640 h:360 fmt:yuv420p
flags:0x4
Incompatible sample format 's16' for codec 'ac3', auto-selecting format
'flt'
[mpeg4 @ 0x8ce5f20] Invalid pixel aspect ratio 405/406, limit is 255/255
reducing
[avi @ 0x8cc8220] Aspect ratio mismatch between encoder and muxer layer
Output #0, avi, to 'out.avi':
Metadata:
encoder : Lavf53.4.0
Stream #0:0: Video: mpeg4, yuv420p, 640x360 [SAR 254:255 DAR
4064:2295], q=2-31, 200 kb/s, SAR 405:406 DAR 360:203, 90k tbn, 29.97 tbc
Stream #0:1: Audio: ac3, 48000 Hz, stereo, flt, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0 (mpeg4 -> mpeg4)
Stream #0.1 -> #0.1 (mp3 -> ac3)
Could not write header for output file #0 (incorrect codec parameters ?)
}}}
--
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/498#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list