Log in

View Full Version : New to encoding with MEncoder, a few questions


MKVCrazy
5th February 2010, 18:26
I have Linux 64-Bit OS running and I'm planning to encode MKV-MKV or VOB-MKV using MEncoder but I have some questions as all my Windows life has been with MeGUI. Now it's Linux and I don't know where to start.

Where do I find the commandline options? I want to study them.
Is the order of the commands important?
Can I use FFT3DFilter or FFT3DGPU with MEncoder?

If you think there's a good website to read about encoding using MEncoder please provide that also if you don't mind. But I would surely like to know the answers to the above questions though.

Thank you,
MKVCrazy

nm
5th February 2010, 18:36
I have Linux 64-Bit OS running and I'm planning to encode MKV-MKV or VOB-MKV using MEncoder but I have some questions as all my Windows life has been with MeGUI. Now it's Linux and I don't know where to start.

Where do I find the commandline options? I want to study them.

Run man mplayer (or man mencoder) in a terminal.

Is the order of the commands important?

No, except when dealing with filter chains.

Can I use FFT3DFilter or FFT3DGPU with MEncoder?

Nope. Run avs2yuv (http://akuvian.org/src/avisynth/avs2yuv/) in Wine to pipe the video from AviSynth to x264.

If you think there's a good website to read about encoding using MEncoder please provide that also if you don't mind. But I would surely like to know the answers to the above questions though.
In addition to the manual page, there's HTML documentation (http://www.mplayerhq.hu/DOCS/HTML/en/index.html) (chapters 10 and 11 are MEncoder-specific). Parts concerning x264 are somewhat obsolete though.

MKVCrazy
5th February 2010, 19:07
I see. Thx for the link I'll read on there for now. Much appreciated.

ricardo.santos
7th February 2010, 23:26
Altough on Windows im also interested on how to convert a video with x264 using mencoder, ive seen some outdated examples while googling about it but how can one for example use the x264 presets in mencoder?

nm
7th February 2010, 23:49
how can one for example use the x264 presets in mencoder?

Since presets are handled by x264 CLI and not libx264, you can't use them directly through MEncoder. Alternatives are to pipe raw video from MPlayer or MEncoder to x264, or to set equivalent parameters manually.

ricardo.santos
8th February 2010, 00:04
Thanks Nm

So when someone says "use mencoder compiled with x264" it doesnt actually mean we can use the presets?

if possible can you give a "piping" example?

Thanks

Pitti
8th February 2010, 09:12
create a bashscript

#!/bin/bash

ls *.mkv | while read file; do

mkfifo "$file"\.fifo

mencoder "$file" -really-quiet -ovc raw -noskip -mc 0 -vf format=i420 -fps 23.976 -nosound -of rawvideo -o "$file"\.fifo &
x264 --demuxer yuv --crf 20 --preset slow --tune film --fps 23.976 --output "$file"\.reencode.mkv "$file"\.fifo 720x576

done

rm *.fifo
this will convert all mkv-files in the directory.

ricardo.santos
8th February 2010, 12:02
do the bash scripts work on windows? Im using Windows unlike teh first poster.

This is what i use at the moment:

mencoder video.avi -of rawvideo -nosound -ovc x264 -x264encopts subq=1:frameref=1:bitrate=450:bframes=1:pass=1 -vf scale=480:-10,harddup -o outfile.264

mencoder video.avi -of rawvideo -nosound -ovc x264 -x264encopts subq=6:frameref=5:bitrate=450:me=umh:partitions=all:bframes=1:me_range=16:cabac:weightb:deblock:pass=2 -vf scale=480:-10,harddup -o outfile.264

J_Darnley
8th February 2010, 13:44
If you have bash, yes. Otherwise you can probably piece together a batch file to the same thing.

ricardo.santos
8th February 2010, 15:22
J_Darnley thanks for the info, got any examples? i use a batch script that uses mencoder+mediainfo+mp4box to create a mp4 file.

1- mediainfo checks source fps
2- mencoder converts audio and video
3- muxing done with mp4 taking in account the details from step 1

ricardo.santos
13th February 2010, 15:12
anyone?