[FFmpeg-trac] #1079(undetermined:new): Crop Keep_Aspect option not working

FFmpeg trac at avcodec.org
Fri Mar 16 00:55:17 CET 2012


#1079: Crop Keep_Aspect option not working
-------------------------------------+-------------------------------------
             Reporter:  ramitbhalla  |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 According to the documenation section 24.6 when the keep_aspect ratio is
 defined and set to a non zero number it is supposed to force the output
 SAR to match the inputs SAR.

 this is not happening and is causing ffmpeg to fail the conversion due to
 an invalid SAR

 the inputs SAR here is 1:1 and I'm trying to force the output SAR to 1:1
 also by setting this flag, but it isn't working.

 2012-03-15T19:36:19 MCEBuddy.AppWrapper.FFmpeg --> Process arguments
 -threads 0 -async 1 -y -i "D:\Test Videos\MCEBuddyArchive\Test6.ts" -ss 3
 -vf crop=1904:1072:6:6:1,scale=720:400,yadif=0:-1,hqdn3d -vcodec libxvid
 -b 1800000 -f avi -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g
 300 -bf 2 -acodec copy -map 0:2 -map 0:1 "D:\MCEBuddy\MCEBuddy
 2.x\MCEBuddy.ServiceCMD\bin\x86\Debug\working1\Test6.avi" -pass 1
 -passlogfile "D:\MCEBuddy\MCEBuddy
 2.x\MCEBuddy.ServiceCMD\bin\x86\Debug\working1\MCEBuddy2Pass.log"


 --> ffmpeg version N-37915-g6cb2085 Copyright (c) 2000-2012 the FFmpeg
 developers
 -->   built on Feb 15 2012 20:47:20 with gcc 4.6.2
 -->   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-
 frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
 --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-
 libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
 --enable-zlib
 -->   libavutil      51. 39.100 / 51. 39.100
 -->   libavcodec     54.  3.100 / 54.  3.100
 -->   libavformat    54.  1.100 / 54.  1.100
 -->   libavdevice    53.  4.100 / 53.  4.100
 -->   libavfilter     2. 62.100 /  2. 62.100
 -->   libswscale      2.  1.100 /  2.  1.100
 -->   libswresample   0.  6.100 /  0.  6.100
 -->   libpostproc    52.  0.100 / 52.  0.100
 --> [mpeg2video @ 02EA51A0] mpeg_decode_postinit() failure
 -->     Last message repeated 2 times
 --> [mpegts @ 01CBD280] PES packet size mismatch
 -->     Last message repeated 1 times
 --> Input #0, mpegts, from 'D:\Test Videos\MCEBuddyArchive\Test6.ts':
 -->   Duration: 00:29:51.92, start: 90226.333733, bitrate: 15080 kb/s
 --> Video duration=1791.92
 -->   Program 1004
 -->   No Program
 -->     Stream #0:0[0x7c2]: Audio: ac3, 48000 Hz, stereo, s16, 96 kb/s
 (visual impaired)
 -->     Stream #0:1[0x7c0]: Video: mpeg2video (Main), yuv420p, 1920x1080
 [SAR 1:1 DAR 16:9], 65000 kb/s, 30.38 fps, 29.97 tbr, 90k tbn, 59.94 tbc
 -->     Stream #0:2[0x7c1]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
 --> Please use -b:a or -b:v, -b is ambiguous
 --> [buffer @ 0391AF20] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:
 --> [yadif @ 034E6740] mode:0 parity:-1 auto_enable:0
 --> [hqdn3d @ 02EA6180] ls:4.000000 cs:3.000000 lt:6.000000 ct:4.500000
 --> [crop @ 03395520] w:1920 h:1080 -> w:1904 h:1072
 --> [scale @ 03395640] w:1904 h:1072 fmt:yuv420p -> w:720 h:400
 fmt:yuv420p flags:0x4
 --> Output #0, avi, to 'D:\MCEBuddy\MCEBuddy
 2.x\MCEBuddy.ServiceCMD\bin\x86\Debug\working1\Test6.avi':
 -->   Metadata:
 -->     ISFT            : Lavf54.1.100
 -->     Stream #0:0: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz,
 5.1(side), 384 kb/s
 -->     Stream #0:1: Video: mpeg4 (hq) (xvid / 0x64697678), yuv420p,
 720x400 [SAR 595:603 DAR 119:67], q=2-31, 1800 kb/s, 29.97 tbn, 29.97 tbc
 --> Stream mapping:
 -->   Stream #0:2 -> #0:0 (copy)
 -->   Stream #0:1 -> #0:1 (mpeg2video -> libxvid)
 --> Press [q] to stop, [?] for help
 --> frame=    0 fps=  0 q=0.0 size=      10kB time=00:00:00.00 bitrate=
 0.0kbits/s
 --> frame=    0 fps=  0 q=0.0 size=      10kB time=00:00:00.00 bitrate=
 0.0kbits/s
 --> Warning: data is not aligned! This can lead to a speedloss
 --> [libxvid @ 034E6020] Invalid pixel aspect ratio 595/603
 --> Video encoding failed

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1079>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list