[FFmpeg-user] x264: pixel aspect ratio overriden?
me at renecalles.de
me at renecalles.de
Thu Apr 19 16:06:16 CEST 2012
Hmm .... okay maybe it's different to actual versions.
You should try values "-sar 1/1" and simply "-sar 1".
Hope this helps.
Best,
René
On Thu, 19 Apr 2012 15:35:08 +0200, Peter B. wrote:
> Quoting me at renecalles.de:
>
>> is it possible for you to use the -sar option? E.g. -sar 1:1 ?
>
> Tried, but it complains about invalid characters:
> //----------------------
> ffmpeg -i client/mpeg-duration/suite/vx-04690_01-026-mencoder.mpg -s
> 500x100 -sar 1:1 -flags +ilme+ildct -vcodec libx264 -vpre baseline
> -deinterlace -an client/flash/test5-h264_aac-PAR1_1.avi
> ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
> built on Jan 28 2012 01:15:36 with gcc 4.4.5
> configuration: --enable-libdc1394 --prefix=/usr
> --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared
> --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads
> --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab
> --enable-libgsm --enable-libtheora --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libx264 --enable-libspeex
> --enable-nonfree --disable-stripping --enable-avfilter
> --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger
> --disable-encoder=libschroedinger --enable-version3
> --enable-libopenjpeg --enable-libvpx --enable-librtmp
> --extra-libs=-lgcrypt --disable-altivec --disable-armv5te
> --disable-armv6 --disable-vis
> libavutil 50. 43. 0 / 50. 43. 0
> libavcodec 52.123. 0 / 52.123. 0
> libavformat 52.111. 0 / 52.111. 0
> libavdevice 52. 5. 0 / 52. 5. 0
> libavfilter 1. 80. 0 / 1. 80. 0
> libswscale 0. 14. 1 / 0. 14. 1
> libpostproc 51. 2. 0 / 51. 2. 0
> [mpeg @ 0xa00d5e0] max_analyze_duration 5000000 reached at 5000000
> Input #0, mpeg, from
> 'client/mpeg-duration/suite/vx-04690_01-026-mencoder.mpg':
> Duration: 00:00:59.96, start: 0.240000, bitrate: 4097 kb/s
> Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576
> [PAR 1:1 DAR 5:4], 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
> Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
> [NULL @ 0xa015260] [Eval @ 0xbfb37e6c] Invalid chars ':1' at the end
> of expression '1:1'
> [NULL @ 0xa015260] Unable to parse option value "1:1"
> Invalid value '1:1' for option 'sar'
> //----------------------
>
> I've also tried putting "sar=1:1" in libx264 baseline preset file,
> being greeted with the same error message:
>
> //----------------------
> ffmpeg -i client/mpeg-duration/suite/vx-04690_01-026-mencoder.mpg -s
> 500x100 -flags +ilme+ildct -vcodec libx264 -vpre baseline
> -deinterlace
> -an client/flash/test5-h264_aac-PAR1_1.avi
> ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
> built on Jan 28 2012 01:15:36 with gcc 4.4.5
> configuration: --enable-libdc1394 --prefix=/usr
> --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared
> --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads
> --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab
> --enable-libgsm --enable-libtheora --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libx264 --enable-libspeex
> --enable-nonfree --disable-stripping --enable-avfilter
> --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger
> --disable-encoder=libschroedinger --enable-version3
> --enable-libopenjpeg --enable-libvpx --enable-librtmp
> --extra-libs=-lgcrypt --disable-altivec --disable-armv5te
> --disable-armv6 --disable-vis
> libavutil 50. 43. 0 / 50. 43. 0
> libavcodec 52.123. 0 / 52.123. 0
> libavformat 52.111. 0 / 52.111. 0
> libavdevice 52. 5. 0 / 52. 5. 0
> libavfilter 1. 80. 0 / 1. 80. 0
> libswscale 0. 14. 1 / 0. 14. 1
> libpostproc 51. 2. 0 / 51. 2. 0
> [mpeg @ 0x9a875e0] max_analyze_duration 5000000 reached at 5000000
> Input #0, mpeg, from
> 'client/mpeg-duration/suite/vx-04690_01-026-mencoder.mpg':
> Duration: 00:00:59.96, start: 0.240000, bitrate: 4097 kb/s
> Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576
> [PAR 1:1 DAR 5:4], 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
> Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
> [NULL @ 0x9a8f260] [Eval @ 0xbfd4952c] Invalid chars ':1' at the end
> of expression '1:1'
> [NULL @ 0x9a8f260] Unable to parse option value "1:1"
> Invalid value '1:1' for option 'sar'
> //-----------------------------
>
> :(
>
> Pb
>
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list