mplayer-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Original]

Re: [MPlayer-users] mencoder failing to encode atdesired bitrate/filesiz


To: "MPlayer usage questions, feature requests, bug reports" <mplayer-users@xxxxxxxxxxxx>
Subject: Re: [MPlayer-users] mencoder failing to encode atdesired bitrate/filesize
From: Ed Sweetman <safemode@xxxxxxxxxxx>
Date: Sat, 27 May 2006 13:02:19 -0400
Delivered-to: itdp@localhost
Delivered-to: mplayer-users@mplayerhq.hu
In-reply-to: <20060527131530.GB14362@rathann.pekin.waw.pl>
References: <4477BE32.8050300@comcast.net> <200605271828.14794.hephooey@gmail.com><20060527131530.GB14362@rathann.pekin.waw.pl>
User-agent: Thunderbird 1.5.0.2 (X11/20060517)

Dominik 'Rathann' Mierzejewski wrote:
On Saturday, 27 May 2006 at 12:28, éç wrote:
Hi,

On Saturday 27 May 2006 10:49, Ed Sweetman wrote:
Every now and then I get a video source that simply refuses to encode
over a seemingly random bitrate, no matter what I set it at. I've seen
this happen with the xvid codec and ffmpeg's mpeg4 codec (those are the
two I use). Nothing seems to be special about these files. I was just
wondering if anyone else has seen this problem, where mencoder wont
encode over some arbituary bitrate, no matter what the value on the
command line is.
I've seen similar problems. Once I decided to encoding 12 videos, all captured by a dv with almost the same setting, and I use mencoder with xvid and libavcodecs, there are two of them cannot be encoded with the bitrate I set, (I want a 1500 kbps, but the encoding always resulted at about 700~800 kbps). I tried fiddle with different options but no success, ended up encoding it on a windows with virtualdub and xvid :(

If mencoder maxes out below your target bitrate it simply means it doesn't need any more bits to encode your video (i.e. using the lowest quantizer). There's no point in artificially inflating the bitrate because the quality won't increase.

Show us the command line you used and we may be able to say more.

Regards,
R.

I'm not encoding at a "quality setting" i'm encoding at a bitrate setting, so if mencoder is refusing to encode at that bitrate, and the bitrate is valid, then that is a problem, either with the codec, or with the encoder.

mencoder -sws 10 -vf pullup,softskip,crop=720:352:0:66,scale=640:-2 -ofps 24000/1001 -oac copy -ovc xvid -xvidencopts pass=1:bitrate=-409600:vhq=4 -o /dev/null some.vob; mencoder -sws 10 -vf pullup,softskip,crop=720:352:0:66,scale=640:-2 -ofps 24000/1001 -oac mp3lame -lameopts abr:br=112:aq=0 -ovc xvid -xvidencopts pass=2:bitrate=-409600:vhq=4 -o test1.avi some.vob;



Results in a file that is about 350MB instead of the ~400 that the rest all encoded at. Audio and video is complete in the avi, bitrate is about 300kbit/sec lower than the other files for video, audio is the same.

Same exact command line used for the others, same runtime same dimensions and same source bitrate.

I too, have had this happen numerous times before over the years and have had to use a different encoder to get it done. It would be interesting to see if maybe anyone not using mencoder has had this happen. That would narrow down the search for the cause.
_______________________________________________
MPlayer-users mailing list
MPlayer-users@xxxxxxxxxxxx
http://mplayerhq.hu/cgi-bin/mailman/listinfo/mplayer-users



[Prev in Thread] Current Thread [Next in Thread]