[MPlayer-users] mencoder and HD videos on multimedia player

Mathieu Westphal mathieu.westphal at gmail.com
Thu Apr 26 10:32:46 CEST 2012


On 04/25/2012 10:51 AM, Krzysztof Duchnowski wrote:
> On 25.04.2012 08:38, Mathieu Westphal wrote:
>
>>> Try this:
>>>
>>> $~: mkfifo /tmp/mplayer.fifo
>>> $~: mplayer -noconfig all -correct-pts -benchmark -nosound -ass -vo
>>> yuv4mpeg:file=/tmp/mplayer.fifo input.mkv&   x264 --profile high --preset
>>> slow --tune film --ref 5 --mixed-refs --bframes 3 --b-pyramid strict
>>> --direct auto --filter -1:-1 --trellis 2 --partitions all --8x8dct
>>> --vbv-bufsize 50000 --vbv-maxrate 20000 --me umh --keyint 300
>>> --min-keyint 15 --crf 18 --sar 1:1 --threads 3 --level 4.1 -o output.mp4
>>>
>> [5] 2555
>> bash: x264: command not found
>> glow at glowDebian:~/Vidéos$ MPlayer SVN-r34809 (C) 2000-2012 MPlayer Team
>> Can't open joystick device /dev/input/js0: No such file or directory
>> Can't init input joystick
>> mplayer: could not connect to socket
>> mplayer: No such file or directory
>> Failed to open LIRC support. You will not be able to use your remote
>> control.
>>
>>
>> I'm sorry but i don't understand what this command is trying to do so i
>> cannot correct it.
> You don't have x264 encoder installed and there was typo in command:
> ###
> wget -O - http://www.bunkus.org/gpg-pub-moritzbunkus.txt | sudo apt-key
> add -
>
> su
>
> echo -e "deb http://www.bunkus.org/debian/wheezy/ ./\ndeb-src
> http://www.bunkus.org/debian/wheezy/ ./\n"
>> /etc/apt/sources.list.d/mkvtoolnix.list
> aptitude update&&  aptitude install x264 mkvtoolnix mkvtoolnix-gui
> ###
>
>
> You must use 2 terminal window as one liner mess up with x264.
> The "input.mkv" is your oryginal file that you want to re-encode, then
> in one terminal window do this:
> ###
> mkfifo /tmp/mplayer.y4m&&  mplayer -noconfig all -correct-pts -benchmark
> -nosound -ass -vo yuv4mpeg:file=/tmp/mplayer.y4m input.mkv
> ###
>
>
> and in second terminal window do this:
> ###
> x264 --profile high --preset slow --tune film --ref 5 --mixed-refs
> --bframes 3 --b-pyramid strict --direct auto --filter -1:-1 --trellis 2
> --partitions all --8x8dct --vbv-bufsize 50000 --vbv-maxrate 20000 --me
> umh --keyint 300 --min-keyint 15 --crf 18 --sar 1:1 --threads 3 --level
> 4.1 -o output.mp4 /tmp/mplayer.y4m
> ###
>
>
> then merge everything into mkv:
> ###
> mkvmerge -o output.mkv output.mp4 input.mkv -D -S
> ###
Well, it's works well, can be played on my multimedia player and all !
But it take like 6hours to process 40minutes of movie...

>
>
> And why don't use mencoder?
> - It could merge/mux into AVI only (MKV and MP4 is messed up);
> - It have no level limiter in x264 options.
I would like to use mencoder ! The problem is i don't know wich codec i 
can use !
What mencoder command can i use to obtain the same process as above, in 
a shorter period of time ?

Also i would like to uderstend what is the difference between a standard 
mencoder encoding (like let's say -ovc lavc -lavcopts codec=mpeg4 ) and 
what your command do ?
As far as i understand the first command uncompress the video into a 
temporary file and the second reencode it, all the thing in streaming.
The reencoing process only the video with a lot of options i don't 
really understand.

The last command take the sound of the original video and the video we 
reencode into the final output.

So i can guess that can be done with one or two mencoder command, but i 
need your help for that.

Am i right?

Thanks

Mathieu



More information about the MPlayer-users mailing list