Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mplayer [2013/06/28 17:36] – beandog | mplayer [2013/06/28 21:58] (current) – beandog | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== mplayer ====== | ====== mplayer ====== | ||
| - | === mplayer | + | **mplayer** is my multimedia player of choice. |
| - | <code bash> | + | * [[mplayer helper scripts]] |
| - | # Always use X11 display | + | * [[mplayer slave protocol]] |
| - | # This is helpful if you are logging in remotely through a shell, but watching it on a screen | + | |
| - | display=:0 | + | |
| + | === blu-ray === | ||
| + | |||
| + | Playing Blu-Rays (unencrypted) | ||
| + | |||
| + | < | ||
| + | mplayer br:// -bluray-device / | ||
| + | </ | ||
| + | |||
| + | === Dolby Digital (AC3) through SPDIF === | ||
| + | |||
| + | Send audio through the SPDIF device to the audio receiver | ||
| + | |||
| + | < | ||
| + | mplayer movie.mkv -ao alsa: | ||
| + | </ | ||
| + | |||
| + | === PAL playback === | ||
| + | |||
| + | For movies with the wrong aspect (PAL), that should be flat but show up | ||
| + | in 4/3 try this: | ||
| + | |||
| + | < | ||
| + | mplayer airborne.vob -monitoraspect 1.00 | ||
| + | </ | ||
| + | |||
| + | That should straighten it out. :) | ||
| + | |||
| + | Also, sometimes mplayer < | ||
| + | |||
| + | === archives: ~/ | ||
| + | |||
| + | < | ||
| + | # *** Please leave notes as to reasons for each config | ||
| + | # | ||
| + | # MythVideo does *not* call any profiles by default. | ||
| + | # Default player setting is: mplayer-resume --filename | ||
| + | |||
| + | # *** DEFAULTS *** | ||
| + | |||
| + | # Testing VDPAU by default | ||
| + | vo=vdpau | ||
| + | display=:0 | ||
| # This will also use " | # This will also use " | ||
| use-filedir-conf=1 | use-filedir-conf=1 | ||
| - | |||
| - | # Cache 25 MB of the file before playing | ||
| - | # This is helpful on older hardware or ones that just need a second to start up | ||
| # Could try cache-min x% instead | # Could try cache-min x% instead | ||
| cache=24576 | cache=24576 | ||
| - | + | fontconfig=1 | |
| - | # Always fullscreen | + | |
| fs=1 | fs=1 | ||
| - | |||
| - | # Use Dolby Digital / DTS passthrough to audio receiver | ||
| # Make sure to unmute " | # Make sure to unmute " | ||
| ao=alsa: | ao=alsa: | ||
| ac=hwac3, | ac=hwac3, | ||
| - | </ | ||
| - | === MPlayer config profiles === | + | # *** PROFILES: IN USE *** |
| - | Force pan & scan | + | # Redundant |
| + | [hdmi] | ||
| + | ao=alsa: | ||
| - | < | + | # TODO: Experiment with -vf crop exact measures |
| [panscan] | [panscan] | ||
| panscan=1 | panscan=1 | ||
| aspect=4:3 | aspect=4:3 | ||
| - | </ | ||
| - | |||
| - | Use SPDIF hardware for output | ||
| - | < | ||
| [spdif] | [spdif] | ||
| ao=alsa: | ao=alsa: | ||
| ac=hwac3, | ac=hwac3, | ||
| - | </ | ||
| - | Specific entries for extensions | + | # All my wishlist features have been ported to LAVF demuxer. |
| - | + | # play around with switching it on and off as the default. | |
| - | < | + | # always. |
| [extension.mkv] | [extension.mkv] | ||
| demuxer=lavf | demuxer=lavf | ||
| Line 63: | Line 93: | ||
| [extension.m2ts] | [extension.m2ts] | ||
| vo=vdpau,xv | vo=vdpau,xv | ||
| - | </ | ||
| - | == Force VDPAU to use codecs == | + | # Called by MythVideo on Series_Name.sh |
| + | [series] | ||
| - | It used to be that MPlayer would need these passed specifically | ||
| - | < | + | # *** PROFILES: EXPERIMENTAL *** |
| + | |||
| + | [vo.xvmc] | ||
| + | vo=xvmc, | ||
| + | vc=ffmpeg12mc, | ||
| + | # | ||
| + | |||
| + | # Much to my annoyance, mplayer will not use the vdpau playback video codecs by default. | ||
| [vo.vdpau] | [vo.vdpau] | ||
| vo=vdpau | vo=vdpau | ||
| vc=ffmpeg12vdpau, | vc=ffmpeg12vdpau, | ||
| + | |||
| + | [letterbox] | ||
| + | vf=crop=720: | ||
| + | # | ||
| + | #aspect=4:3 | ||
| + | |||
| + | [playlist] | ||
| + | lircconf=/ | ||
| + | |||
| + | [extension.mp3] | ||
| + | ac=mp3 | ||
| + | lircconf=/ | ||
| + | </ | ||
| + | |||
| + | === archives: ~/ | ||
| + | |||
| + | < | ||
| + | RIGHT seek +3 | ||
| + | LEFT seek -2 | ||
| + | UP seek +30 | ||
| + | DOWN seek -30 | ||
| + | </ | ||
| + | |||
| + | === archives: ~/ | ||
| + | |||
| + | < | ||
| + | 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 " | ||
| + | config = osd_show_text "" | ||
| + | #config = osd_show_property_text " | ||
| + | #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 | ||
| </ | </ | ||
| Line 204: | Line 486: | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| + | === archives: mplayer notes === | ||
| + | |||
| + | ** Rip embedded media ** | ||
| + | |||
| + | < | ||
| + | mplayer -dumpstream -dumpfile matrix.mov http:// | ||
| + | mplayer -dumpaudio -dumpfile radio.mp3 http:// | ||
| + | </ | ||
| + | |||
| + | ** Rip Realplayer movies ** | ||
| + | |||
| + | < | ||
| + | |||
| + | ** Capture a few frames for a screenshot ** | ||
| + | |||
| + | < | ||
| + | |||
| + | ** List options ** | ||
| + | |||
| + | < | ||
| + | |||
| + | ** Screenshot ** | ||
| + | |||
| + | Works for MPEG2 | ||
| + | |||
| + | < | ||
| + | |||
| + | ** -playing-msg ** | ||
| + | |||
| + | < | ||
| + | Not really sure where you would use this, but getting it to work was a | ||
| + | bit tricky: | ||
| + | |||
| + | mplayer / | ||
| + | -playing-msg \$\{filename\}\\n -vo null | ||
| + | |||
| + | prints out the filename and then a line break | ||
| + | </ | ||
| + | |||
| + | ** Print out options ** | ||
| + | |||
| + | < | ||
| + | mplayer −list−options <command line> | ||
| + | mplayer -input cmdlist < | ||
| + | mplayer -input keylist < | ||
| + | </ | ||
| + | |||
| + | ** Display MKV title ** | ||
| + | |||
| + | < | ||
| + | osd_show_property_text " | ||
| </ | </ | ||