1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00
mpv/DOCS/tech/slave.txt
faust3 b63f5b3e85 switch_ratio may not work with some filter chains
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13391 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-19 18:36:18 +00:00

221 lines
4.8 KiB
Plaintext

SLAVE MODE PROTOCOL
-------------------
FIXME: Some of these options are still not documented, patches welcome.
Most slave mode commands are equivalent to command line options.
Have a look at the man page for more detailed descriptions.
If the -slave option is given, playback is controlled by a line-based protocol.
Each line must contain one of the following commands:
seek <value> [<type>]
Seek to some place in the movie.
0 is a relative seek of +/- <value> seconds (default).
1 is a seek to <value> % in the movie.
2 is a seek to an absolute position of <value> seconds.
edl_mark
???
audio_delay <value>
Adjust the audio delay by <value> seconds.
quit [<value>]
Quit MPlayer. The optional integer value is used as the return code
for the mplayer process (default: 0).
pause
Pause/unpause the playback.
grab_frames
???
pt_step <value> [<force>]
Go to the next/previous entry in the playtree.
pt_up_step <value> [<force>]
Like pt_step but it jumps to next/previous in the parent list.
alt_src_step <value>
When more than one source is available it selects the next/previous one
(only supported by ASX playlist).
sub_delay <value> [<abs>]
Adjust the subtitle delay by +/- <value> seconds or set it to <value>
seconds when <abs> is nonzero.
sub_step
???
osd [<level>]
Toggle OSD mode or set it to level when <level> >= 0.
osd_show_text <value>
???
volume <value>
Increase/decrease volume.
use_master
Switch volume control between master and PCM.
mute
Mute/unmute sound output.
[contrast|gamma|brightness|hue|saturation] <-100 - 100> [<abs>]
Set/adjust video parameters.
frame_drop [<value>]
Toggle/set frame dropping mode.
sub_pos <value>
Adjust subtitle position.
sub_alignment <value>
Set subtitle alignment.
sub_visibility
Toggle subtitle visibility.
get_sub_visibility
Print out subtitle visibility (1 == on, 0 == off).
sub_select
Cycle through the available subtitles. Supported subtitle sources are
-sub options on the command line, VOBsubs, DVD subtitles, and Ogg text
streams.
vobsub_lang
This is a stub linked to sub_select for backwards compatibility.
get_percent_pos
Print out the current position in the file, as integer percentage [0-100).
get_time_length
Print out the length of the current file in seconds.
vo_fullscreen
Switch to fullscreen mode.
get_vo_fullscreen
Print out fullscreen status (1 == fullscreened, 0 == windowed).
vo_ontop
Toggle stay-on-top.
vo_rootwin
Toggle playback on the root window.
switch_vsync [<value>]
Toggle vsync (1 == on, 0 == off). If no value is provided,
vsync status is inverted.
switch_ratio [<value>]
Change aspect ratio at runtime. Value is the new aspect ratio expressed
as a float (e.g. 1.77778 for 16/9).
There might be problems with some video filters.
panscan <value> [value2]
???
loadfile <file|url>
Load the given file/URL.
loadlist <file>
Load the given playlist file.
change_rectangle <val1> <val2>
Change the position of the rectangle filter rectangle.
<val1>
Must be one of the following:
0 = width
1 = height
2 = x position
3 = y position
<val2>
If <val1> is 0 or 1:
Integer amount to add/subtract from the width/height.
Positive values add to width/height and negative values
subtract from it.
If <val1> is 2 or 3:
Relative integer amount by which to move the upper left
rectangle corner. Positive values move the rectangle
right/down and negative values move the rectangle left/up.
dvdnav <button>
Press the given dvdnav button.
1 up
2 down
3 left
4 right
5 menu
6 select
dvdnav_event <value>
???
tv_step_channel <channel>
Select next/previous TV channel.
tv_step_norm
Change TV norm.
tv_step_chanlist
Change channel list.
tv_set_channel <channel>
Set the current TV channel.
tv_last_channel
Set the current TV channel to the last one.
tv_set_freq <frequency in MHz>
Set the TV tuner frequency.
tv_set_norm <norm>
Set the TV tuner norm (PAL, SECAM, NTSC, ...).
tv_set_brightness <-100 - 100>
Set TV tuner brightness.
tv_set_contrast <-100 -100>
Set TV tuner contrast.
tv_set_hue <-100 - 100>
Set TV tuner hue.
tv_set_saturation <-100 - 100>
Set TV tuner saturation.
gui_[loadfile|loadsubtitle|about|play|stop|gui_playlist|gui_preferences|skinbrowser]
GUI actions
forced_subs_only
Display forced subtitles only.
dvb_set_channel <channel_number> <card_number>
Set DVB channel.
screenshot
Take a screenshot.
menu <value>
???
set_menu <value>
???
help
???
exit
???
hide
???
run <value>
???