INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
Mencoder

Forum Index -> Video -> Linux Printer-friendly version
Reply to topic
Author Message
juanpedro01
Member


Joined: 26 May 2007
Location: United States

Post Posted: May 26, 2007 14:54 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: May 27, 2007 08:15 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: May 27, 2007 12:58 Posts Comp View users profile Send private message Reply with quote

Thanks for the help.

Reply to topic All times are GMT - 6 Hours
Forum Index -> Video -> Linux Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics