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

Krzysztof Duchnowski amidk75 at gmail.com
Wed Apr 25 10:51:55 CEST 2012


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
###


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.

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list