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

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Sun Feb 26 05:01:04 CET 2012


https://bugzilla.libav.org/show_bug.cgi?id=203

--- Comment #4 from relaxed <john.vansickle at gmail.com> 2012-02-26 05:01:04 CET ---
Sean,

Your command does work but I'm not sure if that's the solution. Today a user
was in #libav with a very similar problem and ceil() did not fix it.

To create a sample of the input he was using, run:

avconv -pix_fmt yuv420p -r 5 -s 854x480 -aspect 427:240 -f rawvideo -i
/dev/zero -frames:v 10 -q:v 3 -y sample.avi


Replacing "-1" with "ceil(-1)" doesn't work either. Here's the error:

avconv -i sample.avi -filter:v "scale=-1:320" out.mkv                           
avconv version v0.8-711-g03ca0a5, Copyright (c) 2000-2012 the Libav developers
  built on Feb 25 2012 11:15:03 with gcc 4.6.2
Input #0, avi, from 'sample.avi':
  Metadata:
    encoder         : Lavf54.1.0
  Duration: 00:00:02.00, start: 0.000000, bitrate: 50 kb/s
    Stream #0.0: Video: mpeg4 (Simple Profile), yuv420p, 854x480 [PAR 1:1 DAR
427:240], 5 tbr, 5 tbn, 5 tbc
[buffer @ 0x3027320] w:854 h:480 pixfmt:yuv420p
[scale @ 0x3025d60] w:854 h:480 fmt:yuv420p -> w:569 h:320 fmt:yuv420p
flags:0x4
[libx264 @ 0x302c860] width not divisible by 2 (569x320)
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf54.1.0
    Stream #0.0: Video: libx264, yuv420p, 569x320 [PAR 1708:1707 DAR 427:240],
q=-1--1, 90k tbn, 5 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 -> libx264)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters
such as bit_rate, rate, width or height

-- 
Configure bugmail: https://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