VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    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:bi trate=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
    Quote Quote  
  2. Member tekkieman's Avatar
    Join Date
    Mar 2004
    Location
    Over the hill
    Search Comp PM
    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.
    Quote Quote  
  3. Member
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    Thanks for the help.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!