| Author |
Message |
juanpedro01 Member
Joined: 26 May 2007 Location: United States
|
|
How do you tell mencoder to output a file to a certian size such as 25 mb (I know the quality may suffer but I would like to get a consistent size on some of my files)?
Below is an example of the command line code I am using but I am constatnly have to alter the bit rate to get desired file size.
mencoder '/path/to/file' -o movie.avi -ovc x264 -x264encopts subq=4:bframes=4:b_pyramid:weight_b:pass=2:psnr:bitrate=170:turbo=2 -vf scale=320:240,harddup -oac mp3lame -lameopts abr:br=64
Also can any one tell me how the pentium d 2.66 perform's at encoding? I usually get a 20-30 fps wright now and get a 24 min video done in 20-30 min.
Thanks for the help
|
|
tekkieman Grizzled
Joined: 23 Mar 2004 Location: Over the hill
|
|
You can set the file size by changing your bitrate parameter. In the bitrate parameter, put the filesize you want preceded by a "-". That tells mencoder to calculate the bitrate to produce that file size. So for a cd size file, you would use bitrate=-700000 (size is in kilobytes). In your case, you mention 25M, so bitrate=-25000.
_________________
|
|
juanpedro01 Member
Joined: 26 May 2007 Location: United States
|
|
|
|