[FFmpeg-cvslog] Insert setdar at the begin of a filter chain instead the end.

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon Apr 4 17:45:31 CEST 2011


On date Monday 2011-04-04 12:31:03 +0200, Michael Niedermayer wrote:
> On Mon, Apr 04, 2011 at 02:46:47AM +0200, Stefano Sabatini wrote:
[...]
> > Check patch (not correct, working on it, some re-design required),
> > treat sample_aspect the same way w/h is treated.
> 
> doesnt work, try:
> ffmpeg -vframes 3 -y -i ~/videos/matrixbench_mpeg2.mpg test.avi
> ffprobe test.avi
> 
> Now:
> Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
> 
> Your patch:
> Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 16:15 DAR 4:3], PAR 1:1 DAR 5:4, 25 tbr, 25 tbn, 25 tbc

$ ffprobe test.avi 
Input #0, avi, from 'test.avi':
  Metadata:
    encoder         : Lavf52.104.0
  Duration: 00:00:00.12, start: 0.000000, bitrate: 3384 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s

Works fine here, please elaborate. Patch updated with a fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ffmpeg-fix-aspect-ratio-setting.patch
Type: text/x-diff
Size: 3593 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20110404/64e0b0f2/attachment.bin>


More information about the ffmpeg-cvslog mailing list