User User name Password  
   
Tuesday 26.8.2025 / 13:22
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > digital video > video - everything else > mencoder to go from mpeg2 -- xvid
Show topics
 
Forums
Forums
mencoder to go from mpeg2 -- xvid
  Jump to:
 
Posted Message
greysky
Newbie
_
8. October 2005 @ 13:34 _ Link to this message    Send private message to this user   
Here's the script I'm currently using to encode MPEG2 (720x480) --> xvid (512x384) on win32 using MPlayer-mingw32-dev-CVS-050928.

///batch file///
mencoder -ovc xvid -vf scale=512:384 -sws 9 -xvidencopts pass=1 -nosound -o test-1.avi test.mpg
mencoder -ovc xvid -vf scale=512:384 -sws 9 -xvidencopts bitrate=1100:pass=2 -oac mp3lame -lameopts fast:preset=standard -o test-final.avi test.mpg
///end of batch file///

Firstly, there are several questions I have for people who know:

1. Am I missing any options?
2. How can I alter this to be a 3 or 4 pass encode?

Secondly, when I use that script I do get a file out that plays under Windows (mplayerc) just fine; however, one problem is that the resulting file has problems in virtual dub and virtualdub mod giving an error, "Warning: nothing to output bframe decoder lag."

Also, if I demux the mp3 file and analyze it with mrquestionman or encspot, I don't see the correct results. Mrquestionman usually shows the switches one used to encode (in this case --alt-preset fast standard). Additionally, the vbrheader is all messed up. The bitrates usually jump between 128,224,256 etc. in normal files. The demuxed file just hovers around 190 jumping by 1 kbps or so.

Can anyone suggestion what I'm doing wrong?
celtic_d
AfterDawn Addict
_
8. October 2005 @ 22:19 _ Link to this message    Send private message to this user   
1. You are missing -passlogfile.
2. Doesn't look like you can since pass only accepts 1-2.

That is because the default settings are 2 bframes without packed bitstream and you are decoding via VfW. VfW can't properly handle bframes, the message is inserted by the decoder, however I thought it was removed and replaced with a black frame some time ago?
greysky
Newbie
_
9. October 2005 @ 02:49 _ Link to this message    Send private message to this user   
Thanks for the reply. I lookedup the passlogfile switch in the manual and this is what it said:
Quote:
−passlogfile <filename>

Dump first pass information to <filename> instead of the default divx2pass.log in two pass encoding mode.
Doesn't that just allow me to rename the log file?

About the 2 pass, you're right, I was reading the section on vpass=<1-3> and got confused... what's the difference?

http://ecoding.n3.net <--- for all your CD and DVD backup needs!
Advertisement
_
__
 
_
celtic_d
AfterDawn Addict
_
9. October 2005 @ 17:16 _ Link to this message    Send private message to this user   
vpass is for libavcodec. So you could for instance run three passes with libavcodecs mpeg-4 codec.

Better to specify a log file I think so as to not overwrite/use the wrong one.
Related links
Download XviD codec from here.
 
Related forum topics Posts Last post Forum room
where do i find xvid codecs for 360 2 29. November 2013 Xbox 360 - Everything else
Xvid file stops playing after a few seconds 5 26. August 2012 Video - Everything else
AVI / Xvid media player 5 5. July 2012 Sony PSP - Homebrew software
Xvid upgrading to Virtualdub 2 24. June 2012 Video - Everything else
Xvid resets to Xvid mobile after/while AutoGK 3 15. March 2012 Convert DVD to another format
End of Xvid movies suddenly cutting off? 5 17. February 2012 Video playback problems
New guide: Encode DVDs to XviD with MeGUI 1 11. February 2012 News comments
.mkv 720p to .avi 720p (matroska to XviD) 2 30. January 2012 Convert video to another format
Changing resolution with xvid 3 24. December 2011 Convert video to another format
DVD to AVI/Xvid oddities 2 2. November 2011 Convert DVD to another format

 
afterdawn.com > forums > digital video > video - everything else > mencoder to go from mpeg2 -- xvid
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork