Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mplayer [2013/06/28 11:37]
beandog
mplayer [2013/06/28 15:58] (current)
beandog
Line 1: Line 1:
 ====== mplayer ====== ====== mplayer ======
 +
 +**mplayer** is my multimedia player of choice.
 +
 +  * [[mplayer helper scripts]]
 +  * [[mplayer slave protocol]]
 +
 +=== blu-ray ===
 +
 +Playing Blu-Rays (unencrypted)
 +
 +<​code>​
 +mplayer br:// -bluray-device /​path/​to/​disc
 +</​code>​
 +
 +=== Dolby Digital (AC3) through SPDIF ===
 +
 +Send audio through the SPDIF device to the audio receiver
 +
 +<​code>​
 +mplayer movie.mkv -ao alsa:​device=spdif -ac hwac3
 +</​code>​
 +
 +=== PAL playback ===
 +
 +For movies with the wrong aspect (PAL), that should be flat but show up 
 +in 4/3 try this:
 +
 +<​code>​
 +mplayer airborne.vob -monitoraspect 1.00
 +</​code>​
 +
 +That should straighten it out. :)
 +
 +Also, sometimes mplayer <​nowiki>​dvd://</​nowiki>​ will play them correctly.
  
 === archives: ~/​.mplayer/​config === === archives: ~/​.mplayer/​config ===
Line 87: Line 121:
 ac=mp3 ac=mp3
 lircconf=/​home/​steve/​.mplayer/​lirc/​music lircconf=/​home/​steve/​.mplayer/​lirc/​music
 +</​code>​
 +
 +=== archives: ~/​.mplayer/​input.conf ===
 +
 +<​code>​
 +RIGHT seek +3
 +LEFT seek -2
 +UP seek +30
 +DOWN seek -30
 +</​code>​
 +
 +=== archives: ~/​.mplayer/​lircrc ===
 +
 +<​code>​
 +begin
 + prog = irexec
 + button = 1
 + config = date > /tmp/steve
 +end
 +
 +begin
 + flags = startup_mode
 + mode = mplayer
 +end
 +begin osd_menu
 +begin
 + prog = mplayer
 + button = up
 + config = menu up
 + flags = quit
 +end
 +begin
 + prog = mplayer
 + button = down
 + config = menu down
 + flags = quit
 +end
 +begin
 + prog = mplayer
 + button = left
 + config = menu left
 + flags = quit
 +end
 +begin
 + prog = mplayer
 + button = right
 + config = menu right
 + flags = quit
 +end
 +begin
 + prog = mplayer
 + button = ok
 + config = menu ok
 + flags = quit
 +end
 +begin
 + prog = mplayer
 + button = exit
 + config = menu hide
 + mode = mplayer
 + flags = quit
 +end
 +begin
 + prog = mplayer
 + button = menu
 + config = menu hide
 + mode = mplayer
 + flags = quit
 +end
 +begin
 + prog = mplayer
 + button = stop
 + config = menu hide
 + mode = mplayer
 + flags = quit
 +end
 +end osd_menu
 +
 +
 +
 +begin
 + prog = mplayer
 + button = power
 + config = quit
 +end
 +begin
 + prog = mplayer
 + button = play
 + config = seek +0
 + config = speed_set 1
 +end
 +begin
 + prog = mplayer
 + button = pause
 + config = pause
 +end
 +begin
 + prog = mplayer
 + button = stop
 + config = quit
 +end
 +begin
 + prog = mplayer
 + button = |<<
 + config = seek_chapter -1 0
 +end
 +begin
 + prog = mplayer
 + button = >>|
 + config = seek_chapter +1 0
 +end
 +# cc / red
 +begin
 + prog = mplayer
 + button = red
 + config = vobsub_lang eng
 + config = vobsub_lang -1
 +end
 +# menu / menu
 +begin
 + prog = mplayer
 + button = green
 + config = switch_ratio 1.3333
 + config = switch_ratio 1.77778
 +end
 +# guide / green
 +begin
 + prog = mplayer
 + button = menu
 + config = osd_show_property_text "​${metadata/​title}"​ 2400
 + config = osd_show_text ""​
 + #config = osd_show_property_text "​${filename}"​ 2400
 + #config = set_menu view_metadata
 + #config = menu cancel
 + #mode = osd_menu
 +end
 +# info / yellow
 +begin
 + prog = mplayer
 + button = yellow
 + config = osd 3
 + config = osd 1
 +end
 +# exit / exit
 +begin
 + prog = mplayer
 + button = exit
 + # old
 + config = get_time_pos
 + # new
 + # config = get_property time_pos
 +end
 +begin
 + prog = mplayer
 + button = exit
 + config = get_property filename
 +end
 +begin
 + prog = mplayer
 + button = exit
 + config = quit
 +end
 +# prev / blue
 +# exit; if using series-resume will reset playlist
 +begin
 + prog = mplayer
 + button = blue
 + config = quit 255
 +end
 +begin
 + prog = mplayer
 + button = up
 + config = seek +30
 +end
 +begin
 + prog = mplayer
 + button = down
 + config = seek -10
 +end
 +begin
 + prog = mplayer
 + button = right
 + config = seek +30
 +end
 +begin
 + prog = mplayer
 + button = left
 + config = seek -10
 +end
 +begin
 + prog = mplayer
 + button = >>
 + config = seek +60
 +end
 +begin
 + prog = mplayer
 + button = <<
 + config = seek -60
 +end
 +begin
 + prog = mplayer
 + button = mute
 + config = mute
 +end
 +begin
 + prog = mplayer
 + button = ch_up
 + config = audio_delay 0.1
 +end
 +begin
 + prog = mplayer
 + button = ch_down
 + config = audio_delay -0.1
 +end
 +begin
 + prog = mplayer
 + button = 1
 + config = seek +60
 +end
 +begin
 + prog = mplayer
 + button = 2
 + config = seek +120
 +end
 +begin
 + prog = mplayer
 + button = 3
 + config = seek +180
 +end
 +begin
 + prog = mplayer
 + button = 4
 + config = seek +240
 +end
 </​code>​ </​code>​
  
Line 218: Line 486:
 </​cmdlist>​ </​cmdlist>​
  
 +</​code>​
 +
 +=== archives: mplayer notes ===
 +
 +** Rip embedded media **
 +
 +<​code>​
 +mplayer -dumpstream -dumpfile matrix.mov http://​embed.site.com/​movie.mov
 +mplayer -dumpaudio -dumpfile radio.mp3 http://​webradio.com/​radio.mp3
 +</​code>​
 +
 +** Rip Realplayer movies **
 +
 +<​code>​mencoder -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame -o filename.avi http://​url.to.streaming.video</​code>​
 +
 +** Capture a few frames for a screenshot **
 +
 +<​code>​mplayer dvd:// -vo jpeg -ss 90 -frames 30 -ao null</​code>​
 +
 +** List options **
 +
 +<​code>​mplayer -list-options</​code>​
 +
 +** Screenshot **
 +
 +Works for MPEG2
 +
 +<​code>​mplayer movie.mpg -noframedrop -ss 360 -vo jpeg:​quality=50 -frames 2 -nosound -vc ffmpeg12</​code>​
 +
 +** -playing-msg **
 +
 +<​code>​
 +Not really sure where you would use this, but getting it to work was a 
 +bit tricky:
 +
 +mplayer /​var/​media/​101._The_Force_Phantom.mkv -nosound -quiet ​
 +-playing-msg \$\{filename\}\\n -vo null
 +
 +prints out the filename and then a line break
 +</​code>​
 +
 +** Print out options **
 +
 +<​code>​
 +mplayer −list−options <command line>
 +mplayer -input cmdlist <​slave>​
 +mplayer -input keylist <​events>​
 +</​code>​
 +
 +** Display MKV title **
 +
 +<​code>​
 +osd_show_property_text "​${metadata/​title}"​ 2400
 </​code>​ </​code>​

Navigation