[libav-bugs] [Bug 203] New: scale filter has a rounding error

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Fri Jan 13 19:27:58 CET 2012


           Summary: scale filter has a rounding error
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: libavfilter
        AssignedTo: bugzilla at libav.org
        ReportedBy: john.vansickle at gmail.com

The output from this command should be "640x360 [PAR 1:1 DAR 16:9]". Let me
know if any further info is needed.

Source sample (2M): http://dl.dropbox.com/u/24633983/sample.mpg


avconv -i sample.mpg -an -filter:v 'scale=640:ih*ow/sar/iw' out.mkv
avconv version v0.8b1-165-gafb2aa5, Copyright (c) 2000-2011 the Libav
  built on Jan 13 2012 12:57:40 with gcc 4.6.2
Input #0, mpeg, from 'sample.mpg':
  Duration: 00:00:03.00, start: 0.200000, bitrate: 5592 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45
DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
[buffer @ 0x30a4ca0] w:720 h:576 pixfmt:yuv420p
[scale @ 0x3094560] w:720 h:576 fmt:yuv420p -> w:640 h:359 fmt:yuv420p
[libx264 @ 0x309a7e0] height not divisible by 2 (640x359)
Output #0, matroska, to 'out.mkv':
    Stream #0.0: Video: libx264, yuv420p, 640x359 [PAR 359:360 DAR 16:9],
q=-1--1, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters
such as bit_rate, rate, width or height

Configure bugmail: http://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the libav-bugs mailing list