[MEncoder-users] So does "target size" in xvid actually do anything?

Padraig Hogan padraig_hogan at yahoo.com
Sun Sep 18 01:00:59 CEST 2011



Somehow that email got sent when I was just trying to press control + v to paste the output... here is the main output fwiw:

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 B/s=14577 sample-0)
Movie-Aspect is undefined - no prescaling applied.0mb  A-V:0.000 [0:0]
[swscaler @ 00ffe6d4]using unscaled yuv420p -> yuv420p special converter
videocodec: XviD (720x576 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=720x576, sampled=720x576
xvid: CBR Rate Control -- bitrate=-400000kbit/s
Writing header...
ODML: vprp aspect is 16384:13107.
Setting audio delay to 0.048s.
Writing header...
ODML: vprp aspect is 16384:13107.
Setting audio delay to 0.048s.
[h264 @ 00ef7f14]number of reference frames exceeds max (probably corrupt input)
, discarding one
Pos:3394.9s  84876f (50%) 39.70fps Trem:  34min 809mb  A-V:0.040 [899:116]]


So has anyone ever managed to get this to work, where they would name a file size and it would really come out at the right size? One might think that if it were going to work, that mencoder/xvid would relay the average bitrate after calculating it, just like it calculates and relays the 576 pixels across from 720:-2. 


----- Original Message -----
> From: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> To: Padraig Hogan <padraig_hogan at yahoo.com>; MEncoder usage discussions <mencoder-users at mplayerhq.hu>
> Cc: 
> Sent: Saturday, 17 September 2011, 15:38
> Subject: Re: [MEncoder-users] So does "target size" in xvid actually do anything?
> 
> On Fri, Sep 16, 2011 at 06:37:42PM +0100, Padraig Hogan wrote:
>>  if %2==2 "C:\mencoder\mencoder" %1 -oac mp3lame -lameopts 
> abr:br=128 -ovc copy -o %1.btw
>>  if
>>   %2==2 "C:\mencoder\mencoder" %1.btw -oac copy -ovc xvid 
> -xvidencopts 
>>  bitrate=-1024000:threads=2 -vf scale=720:-2 -sub %filename:~0,-4%srt" 
>>  -utf8 -subfont-text-scale 2.7 -o %1.avi
>>  del %1.btw
>> 
>>  But it still just completely ignores the 1024,000 kb and it comes out as 
> 800mb. 
>> 
>>  Now the original file is 1054,859kb encoded with 192k audio, so it's 
> not as though xvid is saying it has no use of any extra bits to improve it at 
>>  all. 
>> 
>>  I've had similar problems with it before. It's almost as though it 
> doesn't even matter what size you put it, mencoder will just choose it's 
> own size that's around 750mb for a typicalk movie. 
> 
> First a caveat: xvid encode part is even less maintained, the FFmpeg
> MPEG-4 encoder is more considered the "default".
> Next, MPlayer/mencoder doesn't really do anything with the bitrate, it is
> just passed on to xvid.
> Minor thing: I suspect there might be some confusion of 1000 or 1024 as
> factor, so the value might be off that much.
> But most likely, it is not possible to encode your video to be bigger
> with the given constraints.
> To verify that theory, try encoding with a target size of e.g. 300 MB
> and/or a fixed quant of 2.
> You could avoid that by adjusting the min_?quant values, however
> lowering them to 1 can result in files that are not considered compliant
> and might not play (correctly) in some players.
> And lastly: no, this list is not moderated. And people try to help in
> whatever way they can. Often that is appreciated, and while it can
> be frustrating when not wanted being rude to them is not going to
> help anyone, including you.
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>


More information about the MEncoder-users mailing list