[FFmpeg-user] Invalid pixel aspect ratio 65536/65536, limit is 255/255
mouk naj
mouk.naj at gmail.com
Tue Jul 26 22:53:46 CEST 2011
hi there,
i am getting an "Invalid pixel aspect ratio 65536/65536, limit is 255/255"
error message when using ffmpeg 0.8
i am able to work around this issue if i simply remove CODEC_ID_MPEG4 check
from libavcodec/mpegvideo_enc.c:MPV_encode_init() where this error is
generated, but that obviously isn't right way to solve it. when we used 0.6
version of ffmpeg, this problem didn't exist. here is the command line:
/usr/local/bin/ffmpeg -y -timelimit 60 -i
/d4/26/10/1/9/19058ef0b381265b7bf7ff9eefe8c402.3gp -r 30 -ab 12288 -vcodec
mpeg4 -acodec libfaac -b 2097152 -sample_fmt s16
/d4/26/10/1/9/iphone.19058ef0b381265b7bf7ff9eefe8c402.mp4
here is full output of the command:
ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers
built on Jul 25 2011 14:48:34 with gcc 4.2.2 20070831 prerelease [FreeBSD]
configuration: --extra-cflags='-DBROKEN_RELOCATIONS=1'
--extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
--disable-everything --disable-libxvid --disable-gray --disable-small
--disable-libdc1394 --disable-libnut --enable-filters --disable-avdevice
--disable-network --disable-protocols --enable-protocol=file
--disable-indevs --disable-outdevs --disable-bsfs --disable-ffplay
--disable-ffserver --disable-doc --enable-gpl --enable-version3
--enable-nonfree --enable-postproc --enable-pthreads --enable-libx264
--enable-libmp3lame --enable-libfaac --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-encoder=aac --enable-encoder=mpeg4
--enable-encoder=libx264 --enable-encoder=libfaac
--enable-encoder=libmp3lame --enable-encoder=libopencore_amrnb
--enable-encoder=libopencore_amrwb --enable-decoder=aac
--enable-decoder=h264 --enable-decoder=h263 --enable-decoder=mpeg4
--enable-decoder=adpcm_ima_qt --enable-decoder=libopencore_amrnb
--enable-decoder=libopencore_amrwb --enable-demuxer=caf --enable-demuxer=mp3
--enable-demuxer=amr --enable-demuxer=mov --enable-demuxer=h263
--enable-demuxer=h264 --enable-muxer=caf --enable-muxer=mp3
--enable-muxer=amr --enable-muxer=mov --enable-muxer=mp4 --enable-muxer=h263
--enable-muxer=h264 --enable-muxer=tgp --enable-parser=aac
--enable-parser=h263 --enable-parser=h264 --enable-parser=mpegvideo
--enable-parser=mpegaudio --enable-parser=mpeg4video
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x801a18c00] multiple edit list entries, a/v
desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/d4/26/10/1/9/19058ef0b381265b7bf7ff9eefe8c402.3gp':
Metadata:
major_brand : 3gp4
minor_version : 0
compatible_brands: isom3gp4
creation_time : 1945-07-25 17:36:57
Duration: 00:00:08.80, start: 0.000000, bitrate: 2384 kb/s
Stream #0.0(eng): Audio: aac, 44100 Hz, mono, s16, 63 kb/s
Metadata:
creation_time : 1945-07-25 17:36:57
Stream #0.1(eng): Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 1610
kb/s, 18.82 fps, 30 tbr, 90k tbn, 30 tbc
Metadata:
creation_time : 1945-07-25 17:36:57
[buffer @ 0x801a0b240] w:640 h:480 pixfmt:yuv420p tb:1/1000000
sar:65536/65536 sws_param:
[mpeg4 @ 0x801a0ef00] Invalid pixel aspect ratio 65536/65536, limit is
255/255
Output #0, mp4, to
'/d4/26/10/1/9/iphone.19058ef0b381265b7bf7ff9eefe8c402.mp4':
Stream #0.0(eng): Video: mpeg4, yuv420p, 640x480 [PAR 65536:65536 DAR
4:3], q=2-31, 2097 kb/s, 90k tbn, 30 tbc
Metadata:
creation_time : 1945-07-25 17:36:57
Stream #0.1(eng): Audio: libfaac, 44100 Hz, mono, s16, 12 kb/s
Metadata:
creation_time : 1945-07-25 17:36:57
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect
parameters such as bit_rate, rate, width or height
(i tried ftp uploading sample video to upload.ffmpeg.org as instructed in
the "reporting bug reports" section, but server seems to be down)
More information about the ffmpeg-user
mailing list