Quantcast Mencoder: Mencoder Two-Pass Encoding Questions - digitalFAQ.com Forums [Archives]
  #1  
05-04-2004, 07:41 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Incredible
mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=1 %videoa%.avi -o %videoa%.m2v
mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=2 %videoa%.avi -o %videoa%.m2v
2 pass encoding line must contain "-include xxx.conf" if xxx.conf is:

Code:
of=rawvideo=1
ovc=lavc=1
nosound=1
sws=2
lavcopts=vcodec=mpeg1video:vrc_eq=tex:vmax_b_frames=2:vrc_maxrate=2500:aspect=1.3333:keyint=24:vrc_buf_size=917:preme=2:precmp=2:vstrict=-1:autoaspect=1:scplx_mask=0.3:vqblur=0:mbqmin=1:vqmin=1:mbqmin=1:lmin=1:intra_matrix=(notch matrix)
ofps=25
or all necessary information is in first "%videoa%.m2v " created?
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
  #2  
05-04-2004, 07:48 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
The first encoding command line does output the fist encoded m2v!
During encoding that first m2v the mencoder engine creates a "divx2pass.log" in the mencoder folder.
So the second pass (second m2v encoding) refers to that generated "divx2pass.log" while it overwrites the first m2v
Reply With Quote
  #3  
05-04-2004, 09:17 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Why when i try to run a batch encode with besweet included, encoding stop at first pass?
Reply With Quote
  #4  
05-04-2004, 09:27 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible

What got besweet to do when talking about mencoders 2 passes?
Or did I misunderstand you?

http://www.kvcd.net/forum/viewtopic....weet&start=212
Quote:
Originally Posted by Incredible
Code:
REM ---------------------------- Setting Variables ------------------------ 

Set videoa="G:\TOY_STORY\toystory1" 
Set videob="G:\TOY_STORY\toystory2" 
Set videoc="G:\TOY_STORY\monsterinc" 
Set audioa="G:\TOY_STORY\toystory AC3 T02 3_2ch 384Kbps DELAY 0ms" 
Set audiob="G:\TOY_STORY\toystory2 AC3 T02 3_2ch 384Kbps DELAY 0ms" 
Set audioc="G:\TOY_STORY\monsterinc AC3 T02 3_2ch 384Kbps DELAY 0ms" 

REM --------------------------- Videoencoding Part ----------------------- 

mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=1 %videoa%.avi -o %videoa%.m2v 
mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=2 %videoa%.avi -o %videoa%.m2v 

mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=1 %videob%.avi -o %videob%.m2v 
mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=2 %videob%.avi -o %videob%.m2v 

mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=1 %videoc%.avi -o %videoc%.m2v 
mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=2 %videoc%.avi -o %videoc%.m2v 

REM --------------------------- Audioencoding Part* ----------------------- 

"C:\Programme\_Video Encoding&Editing\!New Besweet & AC3MAchine\BeSweet.exe" -core( -input %audioa%.ac3 -output %audioa%new.ac3* -substream SubS ) -azid( -L -3db ) -ac3enc( -b 256 ) -profile( The AC3Machine v0.4 ) 

"C:\Programme\_Video Encoding&Editing\!New Besweet & AC3MAchine\BeSweet.exe" -core( -input %audiob%.ac3 -output %audiob%new.ac3* -substream SubS ) -azid( -L -3db ) -ac3enc( -b 256 ) -profile( The AC3Machine v0.4 ) 

"C:\Programme\_Video Encoding&Editing\!New Besweet & AC3MAchine\BeSweet.exe" -core( -input %audioc%.ac3 -output %audioc%new.ac3* -substream SubS ) -azid( -L -3db ) -ac3enc( -b 256 ) -profile( The AC3Machine v0.4 ) 

REM --------------------------- Switch Computer off* ----------------------- 

shutdown -u

You see the logic?
Reply With Quote
  #5  
05-04-2004, 10:06 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
I was see that thread, but when i try to do batch encoding, and I write a batch file as:
mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=1 temp.avi -o temp.m2v
mencoder -include C:\Programme\MPlayer\templates\MakeAVISnew.conf -lavcopts vbitrate=2000:vpass=2 temp.avi -o temp.m2v
"C:\Programme\_Video Encoding&Editing\!My Besweet & AC3MAchine\BeSweet.exe" -core( -input %audioa%.ac3 -output %audioa%new.ac3 -substream SubS ) -azid( -L -3db ) -ac3

mencoder.exe stops after first pass.

(Maybe I don't have besweet last version. will be it?)
Reply With Quote
  #6  
05-04-2004, 11:10 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
a) Did you set the varaibles in the .bat right, like I did above?

b) You're still using a -include-link to my "MakeAVISnew.conf" I did create for my own needings (contained some special cropping resizing params).
So do watch out you point to an existing one like in Mencoders Template folder (now its called another way! in VM's new version, but you will see the logic).

The issue cant be a wrong besweet version as your batch wont even reach the audio encoding part but stops after the first pass video encoding.
So I do assume you should just update the name of the -include file!
Reply With Quote
  #7  
05-05-2004, 04:38 AM
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
Prodater, try as Inc advises, but I'm not completely sure the problem is in the .conf file, since it's the same used in first pass, and it seems first pass finishes well...
Does first pass complete well?. Do you get a .m2v file with all the film encoded?. And do you get a big divx2pass.log file?.
Try putting a pause command after first pass and after second pass. Then you can see if first pass finishes really well without an error, and see if second pass gives an error...
I think Inc is right when says that doesn't look the problem is in besweet, since it seems you don't arrive there
Reply With Quote
  #8  
05-05-2004, 07:23 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by digitall.doc
Prodater, try as Inc advises, but I'm not completely sure the problem is in the .conf file, since it's the same used in first pass, and it seems first pass finishes well...
Does first pass complete well?. Do you get a .m2v file with all the film encoded?. And do you get a big divx2pass.log file?.
Try putting a pause command after first pass and after second pass. Then you can see if first pass finishes really well without an error, and see if second pass gives an error...
I think Inc is right when says that doesn't look the problem is in besweet, since it seems you don't arrive there
It wasn't a besweet issue.
I used for my test a short clip and bat file generated for mencodeme (I used it) had a vbitrate > 50000 as it would want fill 1CD80. Now fixed.
Reply With Quote
  #9  
05-05-2004, 09:05 AM
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
Quote:
Originally Posted by Prodater64
It was't a besweet issue.
I used for my test a short clip and bat file generated for mencodeme (I used it) had a vbitrate > 50000 as it would want fill 1CD80. Now fixed.
A mencodeme issue then .

You could post this "too high vbitrate" issue in mencodeme bugs thread
Reply With Quote
  #10  
05-05-2004, 09:18 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
I do not understand...

Which vbitrate=xxxx is given to mencoder when using MencoderME (or if set manually in the command line)???
... as I understand you mean the resulted AVG bitrate after encoding??
Reply With Quote
  #11  
05-05-2004, 09:25 AM
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
Inc,
in mencodeme, when you load a file to be encoded, and set the destination (1cd KVCD i.e.), it automatically calculates the bitrate (average bitrate), that changes according to film length. If the film is too short, the bitrate calculated may be really high. And I guess that is the vbitrate that mencoder uses to encode.
Reply With Quote
  #12  
05-05-2004, 10:06 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Ahhhh yes ...

I did read "mencoder issue" instead of "mencodeME"
Reply With Quote
  #13  
05-05-2004, 10:49 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by digitall.doc
...
And I guess that is the vbitrate that mencoder uses to encode.
Exactly, but it is not a bug as you can set it for yourself (only need think in that and to see this high value in its box, and then to change it.)
Reply With Quote
  #14  
05-05-2004, 03:33 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
Well, Prodater, don't call it a bug. But I think it'll be "easy" for VM to make mencodeme check the value in bitrate box, and if vbitrate>vrc_maxrate then vbitrate=vrc_maxrate...
... or whatever. It would make "automatic mode" work better.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Mencoder: Question about MEncoder 1 pass black prince Video Encoding and Conversion 32 06-05-2004 08:06 AM
Mencoder: Some questions about libavcodec options Prodater64 Video Encoding and Conversion 16 05-26-2004 08:00 AM
Mencoder: Libavcodec library questions maurus Video Encoding and Conversion 2 05-10-2004 06:48 PM
Mencoder: MEncoding DivXs/DVDs using 2 pass VBR vmesquita Video Encoding and Conversion 53 04-16-2004 04:07 PM
FFMPEG: Mencoder 2-pass japie Video Encoding and Conversion 9 11-04-2003 09:20 AM

Thread Tools



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