Quantcast Mencoder: Mencoder and File Prediction to Reduce File Size - digitalFAQ.com Forums [Archives]
03-03-2004, 09:33 AM
ladiaz ladiaz is offline
Free Member
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hello All -

Is there a recommended method to do file prediction using mencoder? What's the easiest way to adjust the quality setting? Trying to increase the amount of time i can store on a DVD. Current settings are producing MPG files of 114MB for every 4 minutes (w/ 192 Audio Stream) for an average of 125 minutes per DVD - 720x480 video.

Using PVR-250 video Output with the following AVS script. Thanks for your help!

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")

video = mpeg2source("f:\VIDEO.D2V")
audio = MPASource("f:\VIDEO MPA T01 DELAY 0MS.MPA", normalize=false)
AudioDub(video, audio)

Smoothdeinterlace(doublerate=true, TFF=true, blend=false).selectodd()

MenCoder Batch File
@echo off
set mencpath=d:\video\mplayer
set output=d:\video\out
set intra="8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,3 7,12,14,18,27,29,34 \
,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,4 0,48,27,29,34,37,38, \
40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58 ,69,79"
set inter="16,18,20,22,24,26,28,30,18,20,22,24,26,28,3 0,32,20,22,24,26,28, \
30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34 ,36,38,26,28,30,32, \
34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38 ,40,42,44"

%mencpath%\mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg2video:ildct:ilme:intra_matrix=%intra%: inter_matrix=%inter%:mbd=2:vrc_minrate=300:vrc_max rate=8000:vbitrate=3000: \
vrc_buf_size=1835:keyint=18:vmax_b_frames=2:vqblur =0:aspect=4/3: \
vstrict=-1 -ofps 29.97 -nosound %1 -o %output%\%~n1.mpg

%mencpath%\bbdmux %output%\%~n1.mpg 0xe0 \

del %output%\%~n1.mpg
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
03-03-2004, 12:20 PM
digitall.doc digitall.doc is offline
Free Member
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Originally Posted by ladiaz
Is there a recommended method to do file prediction using mencoder?
Wellcome ladiaz,
I still didn't explore file prediction with mencoder. But for every encoder I use, I employ the same method from incredible: the ping-pong method (make use of search to find the thread, I don't exactly remember where is). Is based in Slicer avisynth filter. I'll try it with mencoder. But through file prediction you won't reduce file size, you'll just get the predicted final file size.
Originally Posted by ladiaz
What's the easiest way to adjust the quality setting?
Sorry, I again send you to another thread, and this is a little hard to read (for the number of posts), but you'll get a lot of nice parameters: http://www.kvcd.net/forum/viewtopic.php?t=9074
If you want to decrease quality and file size you can use mbd=0, vlelim and vcelim (look for better parameters, the JVT are nice), set vrc_maxrate=5000 and vbitrate=2000,... If you want to increase quality instead, make use of quality settings as trell, cbp,...
But is better you read the thread
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mencoder: Mencoder and 1-file-VOBs J-Wo Video Encoding and Conversion 5 06-08-2004 11:13 AM
File size prediction formula girv Avisynth Scripting 39 01-10-2003 05:23 PM
File Size Prediction For PAL... Jellygoose Avisynth Scripting 8 01-01-2003 09:18 PM
FitCD File Size Prediction Paul0889 Avisynth Scripting 2 12-21-2002 01:03 AM
TMPGEnc: File size prediction akrein62 Video Encoding and Conversion 0 11-15-2002 10:16 PM

Thread Tools

All times are GMT -5. The time now is 03:44 AM  —  vBulletin © Jelsoft Enterprises Ltd