Log in

View Full Version : Mencoder usage


vlada
3rd January 2009, 19:57
Hello,

I'd like to ask for help regarding Mencoder usage. I'm interested in codec's settings. How can I find out, which parameters can be used for XviD, x264 or lame and what are the default values. I searched for it on the Internet, but I couldn't find anything.

Also are there any reasons why (not) use Mencoder over ffmpeg?

buzzqw
3rd January 2009, 20:20
here you will found all the info
http://www.mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html

BHH

vlada
3rd January 2009, 22:17
Thanks for the quick reply. I feel stupid, 'cause I read the MPlayer documentation many times and always have overlooked it.

Selur
3rd January 2009, 23:30
Also are there any reasons why (not) use Mencoder over ffmpeg?
Reasons for ffmpeg:
- can reencode audio only clips
- handles .flv files better
Reasons for mencoder:
- more filters
-> in general I would prefer mencoder over ffmpeg :)

vlada
4th January 2009, 00:49
OK, thanks, I probably will have to combine both depending on the output I want. I definitely need the MPlayer video filters but I also need the ffmpeg's audio processing ability.

Anyway now I came across one problem I can't solve. Let's say I have 4 VOB files which I want to transcode to AVI (XviD) while keeping the original sound. I could demux the individual AC3 streams, but how do I combine them? I need a multiplatform solution (Windows and Linux). Using this command:

mencoder.exe VTS_01_1.VOB VTS_01_2.VOB VTS_01_3.VOB -o test.avi -oac copy -ovc xvid -xvidencopts bitrate=500

I get an error regarding incorrect audio format. Searching on the Internet I found hat I should probably add -fafmttag 0x2000 option. But is this a universal solution?

The transcoding runs, let's wait for the result...

Selur
4th January 2009, 09:50
in sx264 and some code I did for an online platform I used:
dvd://TITLE-NUMBER -dvd-device "Path to VIDEO_TS Folder"
to open multiple vobs.
audiotracks can than be selected via -aid TRACK-NUMBER or -alang LANGUAGE-ID (side node: if -alang does not find the specified language it will take the first one it finds)

Got no experience with encoding to .avi with mencoder, so not sure if "-fafmttag 0x2000" is enough. :)
If you find out please post, may be I'll write a xvid and could need it sometime in the future. ;)

Cu Selur

vlada
4th January 2009, 14:07
I tried it with a single file first. The conversion went without any problems but the final file plays in MPC and WMP without sound and in MPlayer it doesn't play at all. The identifier is certainly wrong, VirtualDub complains about an unknown audio format and non-zero starting point.

Now I see my fault, the audio is PCM, so I probably have to use a different code or simply -oac pcm. I'll try it with AC3...

vlada
4th January 2009, 23:56
This seem to work correctly: mencoder.exe VTS_02_1.VOB VTS_02_2.VOB VTS_02_3.VOB VTS_02_4.VOB -o video.avi -fafmttag 0x2000 -oac copy -ovc xvid -xvidencopts bitrate=500

Selur
6th January 2009, 11:48
Thanks for the info :)