Christian Ebert <[email protected]> added the comment:

Workaround - scaling before cropping (I guess), thanks to FFmichael on 
ffmpeg-user:

$ ffmpeg -i test.vob -y -b 500k -ab 128k -s 640:480 -aspect 4:3 -vf
crop=640:360,yadif test.mp4   FFmpeg version SVN-r25+++ 818, Copyright (c)
2000-2010 the FFmpeg developers built on Nov 24 2010 02:43:17 with gcc 4.0.1
(Apple Inc. build 54+++ 93) configuration: --enable-gpl --enable-version3
--enable-nonfree --disable-network --disable-ffserver --disable-ff+++ play
--enable-shared --enable-pthreads --enable-postproc --enable-libx264
--enable-libxvid --enable-libfaac --enable+++ -libmp3lame --enable-libtheora
--enable-libvorbis --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.14. 0 /  0.14. 0
  libavcodec    52.97. 2 / 52.97. 2
  libavformat   52.86. 1 / 52.86. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.64. 0 /  1.64. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mpeg @ 0x1802600] max_analyze_duration reached
Input #0, mpeg, from 'test.vob':
  Duration: 00:01:32.59, start: 0.360000, bitrate: 5666 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
7000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 +++ tbc
    Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
[buffer @ 0x1701c80] w:720 h:576 pixfmt:yuv420p
[yadif @ 0x1702040] mode:0 parity:-1
[scale @ 0x1701ec0] w:720 h:576 fmt:yuv420p -> w:640 h:480 fmt:yuv420p
flags:0xa0000004
[crop @ 0x1702070] w:640 h:480 -> w:640 h:360
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf52.86.1
    Stream #0.0: Video: mpeg4, yuv420p, 640x360 [PAR 1:1 DAR 16:9], q=2-31, 500
kb/s, 25 tbn, 25 tbc
    Stream #0.1: Audio: libfaac, 48000 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding


a) This probably scales twice; ideally crop before scale would be better.
b) It is extremely obscure, if and when and how -vf, -s, -aspect are to be used
and how they cooperate.

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2378>
________________________________________________

Reply via email to