[MEncoder-users] mencoder starter needs help

Diogo Franco diogomfranco at gmail.com
Wed May 21 18:45:36 CEST 2008


Em Qua, 2008-05-21 às 10:17 -0600, James Thomas Snell escreveu:
> You need to do something with the video.. I wouldn't expect "raw" to be a
> fun direction to take things for your video codec. Probably will use a few
> hundred gigs/hr of video.
> 
> Try running
> 
> mencoder -ovc help
> 
> to get a list of video codecs you can try.
> 
> 
> I'd suggest trying something like:
> 
> mencoder C:\goat.mpg -o goat.avi -of avi -ovc lavc -lavcopts
> vcodec=mpeg4:vbitrate=3000 -oac copy
> 
> Similarly, you can run "mencoder -oac help" to get a list of audio codecs to
> try rather than "copy", though I'm going to guess "copy" will be fine for
> now. At some point you may want to use "lame".
> 
> This is a pretty basic answer for you, but your question is also pretty
> basic. You should be able to find some great example usage in the
> documentation or if you google for it.
> 
> Does that answer your question sufficiently?
> 
> 
> 
> 
> mencoder C:\goat.mpg -o goat.avi -of avi -ovc raw -oac copy
> 
> 
> On Wed, May 21, 2008 at 9:36 AM, B K <b.kot at hotmail.com> wrote:
> 
> > I am a beginner who has a movie file taken from television in ac3 audio
> > format and mpeg2 video format.
> >
> > Mplayer can play the video with no hassles. Although Windows media player
> > will not play the audio, which is why I would like to encode this file into
> > a format that can be played anywhere no matter which codecs are present.
> >
> > I am assuming the file will be big as this will lose all forms of
> > compression, but are there any other disadvantages ?
> >
> > I am not familiar with mencoder to even know where to start but I have
> > given it a go.  I tried the following code:
> >
> > mencoder C:\goat.mpg -o goat.avi -of avi -ovc raw -oac copy
> >
> > The output was not what I expected. The video would hardly move, and the
> > sound was all distorted with plenty of jitter.
> >
> > Can you help me ? My main goal is to achieve the same quality but have it
> > so I can play on any computer, especially windows.
> >
> > Thank you, and sorry for previous post.
> > _________________________________________________________________
> > Never miss another e-mail with Hotmail on your mobile.
> > http://www.livelife.ninemsn.com.au/article.aspx?id=343869
> > _______________________________________________
> > MEncoder-users mailing list
> > MEncoder-users at mplayerhq.hu
> > https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
> >
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users

To play on a Windows XP fresh install, you need to use msmpeg4v2 as the
video codec (on lavc) and probably libmp3lame audio will do.

You can try using wmv2 for video and wmav2 for audio, but you will need
to mux them on a asf container with lavf. That forbids you from using
bframes, unless you use ffmpeg directly.

So you could try something like this:

mencoder -ovc lavc -oac lavc -of lavf -lavfopts format=asf -lavcopts \
	vcodec=wmv2:acodec=wmav2:<other options> <input> -o <output>.wmv




More information about the MEncoder-users mailing list