2003-05-31 16:41:41 +00:00
|
|
|
SLAVE MODE PROTOCOL
|
|
|
|
-------------------
|
|
|
|
|
2005-04-26 09:59:16 +00:00
|
|
|
The -slave option switches on slave mode, in which MPlayer works as a backend
|
|
|
|
for other programs. Instead of intercepting keyboard events, MPlayer will read
|
|
|
|
commands separated by a newline (\n) from stdin.
|
2005-04-25 09:20:21 +00:00
|
|
|
|
2005-04-26 09:59:16 +00:00
|
|
|
To try slave mode out by hand, run
|
|
|
|
|
|
|
|
mplayer -slave -quiet <movie>
|
|
|
|
|
|
|
|
and type slave commands into the console window.
|
|
|
|
|
2008-03-21 19:05:12 +00:00
|
|
|
You can also use a fifo file (named pipe):
|
2007-11-03 21:12:07 +00:00
|
|
|
|
2008-03-21 19:05:12 +00:00
|
|
|
mkfifo </tmp/fifofile>
|
2008-10-25 13:13:17 +00:00
|
|
|
mplayer -slave -input file=</tmp/fifofile> <movie>
|
2007-11-03 21:12:07 +00:00
|
|
|
|
2005-04-26 09:59:16 +00:00
|
|
|
Most slave mode commands are equivalent to command line options, though not
|
|
|
|
necessarily under the same name. Detailed descriptions can be found in the
|
|
|
|
man page.
|
2004-08-24 10:52:28 +00:00
|
|
|
|
2010-12-18 10:38:45 +00:00
|
|
|
NOTE: the following paragraph is mostly obsolete; tricky pause handling
|
|
|
|
was required in old MPlayer versions where all commands unpaused by default.
|
|
|
|
Now running commands does not require leaving pause state any more, and
|
|
|
|
the prefixes described here should not be required in normal use.
|
2005-12-25 19:22:48 +00:00
|
|
|
All commands can be prefixed with one of "pausing ", "pausing_keep ", or
|
|
|
|
"pausing_toggle ". "pausing " tells MPlayer to pause as soon as possible
|
|
|
|
after processing the command. "pausing_keep " tells MPlayer to do so only if
|
|
|
|
it was already in paused mode. "pausing_toggle " tells MPlayer to do so
|
|
|
|
only if it was not already in paused mode. Please note that "as soon as
|
|
|
|
possible" can be before the command is fully executed.
|
2008-09-25 17:40:33 +00:00
|
|
|
As a temporary hack, there is also the _experimental_ "pausing_keep_force "
|
|
|
|
prefix, with which MPlayer will not exit the pause loop at all.
|
|
|
|
Like this you can avoid the "frame stepping" effect of "pausing_keep "
|
|
|
|
but most commands will either not work at all or behave in unexpected ways.
|
2009-03-07 13:25:55 +00:00
|
|
|
For "set_mouse_pos" and "key_down_event", "pausing_keep_force" is the default
|
|
|
|
since other values do not make much sense for them.
|
2005-04-25 09:20:21 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
|
2009-11-11 11:38:41 +00:00
|
|
|
Various tips and tricks (please help expand it!):
|
|
|
|
|
2010-07-01 16:48:03 +00:00
|
|
|
- To ensure the user can't control MPlayer "behind your back" use
|
|
|
|
something like -input nodefault-bindings -noconfig all
|
2009-11-11 11:38:41 +00:00
|
|
|
|
|
|
|
|
2005-04-26 09:59:16 +00:00
|
|
|
Available commands ('mplayer -input cmdlist' will print a list):
|
2003-05-31 16:41:41 +00:00
|
|
|
|
2010-04-11 18:59:19 +00:00
|
|
|
af_add <filter_arguments_list> (comma separated list of audio filters with parameters)
|
|
|
|
(experimental) Load the given list of audio filters.
|
|
|
|
|
|
|
|
af_clr
|
|
|
|
(experimental) Unload all loaded audio filters.
|
|
|
|
|
2010-10-17 15:54:55 +00:00
|
|
|
af_cmdline <filter_name> <filter_arguments>
|
|
|
|
(experimental) Send new command-line options to a filter with the given name.
|
|
|
|
|
2010-04-11 18:59:19 +00:00
|
|
|
af_del <filter_name_list> (comma separated list of audio filter's names)
|
|
|
|
(experimental) Unload the first occurrence of the filters, if loaded.
|
|
|
|
|
|
|
|
af_switch <filter_arguments_list> (comma separated list of audio filters with parameters)
|
|
|
|
(experimental) Remove all the audio filters and replace them with the given list.
|
2005-02-12 17:22:49 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
alt_src_step <value> (ASX playlist only)
|
|
|
|
When more than one source is available it selects the next/previous one.
|
2004-02-09 15:49:42 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
audio_delay <value> [abs]
|
2006-03-24 19:59:30 +00:00
|
|
|
Set/adjust the audio delay.
|
2006-03-26 10:02:04 +00:00
|
|
|
If [abs] is not given or is zero, adjust the delay by <value> seconds.
|
|
|
|
If [abs] is nonzero, set the delay to <value> seconds.
|
2004-10-20 20:07:50 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
[brightness|contrast|gamma|hue|saturation] <value> [abs]
|
2005-09-04 16:08:18 +00:00
|
|
|
Set/adjust video parameters.
|
2006-03-26 10:02:04 +00:00
|
|
|
If [abs] is not given or is zero, modifies parameter by <value>.
|
|
|
|
If [abs] is non-zero, parameter is set to <value>.
|
2005-12-12 01:34:41 +00:00
|
|
|
<value> is in the range [-100, 100].
|
2004-10-20 20:07:50 +00:00
|
|
|
|
2010-11-02 01:17:41 +00:00
|
|
|
capturing [value]
|
|
|
|
Toggle/set capturing the primary stream like -dumpstream.
|
|
|
|
Requires the -capture parameter to be given.
|
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
dvb_set_channel <channel_number> <card_number>
|
|
|
|
Set DVB channel.
|
|
|
|
|
2008-06-19 18:51:42 +00:00
|
|
|
dvdnav <button_name>
|
2005-09-04 16:08:18 +00:00
|
|
|
Press the given dvdnav button.
|
2008-06-19 18:51:42 +00:00
|
|
|
up
|
|
|
|
down
|
|
|
|
left
|
|
|
|
right
|
|
|
|
menu
|
|
|
|
select
|
|
|
|
prev
|
|
|
|
mouse
|
2005-09-04 16:08:18 +00:00
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
edl_mark
|
2005-01-03 15:01:58 +00:00
|
|
|
Write the current position into the EDL file.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
frame_drop [value]
|
2005-09-04 16:08:18 +00:00
|
|
|
Toggle/set frame dropping mode.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-08-26 09:53:06 +00:00
|
|
|
get_audio_bitrate
|
|
|
|
Print out the audio bitrate of the current file.
|
|
|
|
|
|
|
|
get_audio_codec
|
|
|
|
Print out the audio codec name of the current file.
|
|
|
|
|
|
|
|
get_audio_samples
|
|
|
|
Print out the audio frequency and number of channels of the current file.
|
|
|
|
|
|
|
|
get_file_name
|
|
|
|
Print out the name of the current file.
|
|
|
|
|
|
|
|
get_meta_album
|
|
|
|
Print out the 'Album' metadata of the current file.
|
|
|
|
|
|
|
|
get_meta_artist
|
|
|
|
Print out the 'Artist' metadata of the current file.
|
|
|
|
|
|
|
|
get_meta_comment
|
|
|
|
Print out the 'Comment' metadata of the current file.
|
|
|
|
|
|
|
|
get_meta_genre
|
|
|
|
Print out the 'Genre' metadata of the current file.
|
|
|
|
|
|
|
|
get_meta_title
|
|
|
|
Print out the 'Title' metadata of the current file.
|
|
|
|
|
|
|
|
get_meta_track
|
|
|
|
Print out the 'Track Number' metadata of the current file.
|
|
|
|
|
|
|
|
get_meta_year
|
|
|
|
Print out the 'Year' metadata of the current file.
|
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
get_percent_pos
|
|
|
|
Print out the current position in the file, as integer percentage [0-100).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-22 20:17:48 +00:00
|
|
|
get_property <property>
|
|
|
|
Print out the current value of a property.
|
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
get_sub_visibility
|
|
|
|
Print out subtitle visibility (1 == on, 0 == off).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
get_time_length
|
|
|
|
Print out the length of the current file in seconds.
|
|
|
|
|
|
|
|
get_time_pos
|
|
|
|
Print out the current position in the file in seconds, as float.
|
|
|
|
|
|
|
|
get_vo_fullscreen
|
|
|
|
Print out fullscreen status (1 == fullscreened, 0 == windowed).
|
2004-10-12 22:10:56 +00:00
|
|
|
|
2006-08-26 09:53:06 +00:00
|
|
|
get_video_bitrate
|
|
|
|
Print out the video bitrate of the current file.
|
|
|
|
|
|
|
|
get_video_codec
|
|
|
|
Print out the video codec name of the current file.
|
|
|
|
|
|
|
|
get_video_resolution
|
|
|
|
Print out the video resolution of the current file.
|
|
|
|
|
2011-10-06 18:46:01 +00:00
|
|
|
screenshot <each_frame> <full_window>
|
2005-09-13 18:48:57 +00:00
|
|
|
Take a screenshot. Requires the screenshot filter to be loaded.
|
2011-10-06 18:46:01 +00:00
|
|
|
each_frame:
|
|
|
|
0 Take a single screenshot. (Default.)
|
2006-09-16 22:10:11 +00:00
|
|
|
1 Start/stop taking screenshot of each frame.
|
2011-10-06 18:46:01 +00:00
|
|
|
full_window:
|
|
|
|
0 Save the video image, in its original resolution. Typically without
|
|
|
|
OSD or subtitles. (Default.)
|
|
|
|
1 Save the contents of the mplayer window. Typically with OSD and
|
|
|
|
subtitles. If not available (no VO support), this may act as if 0 was
|
|
|
|
passed.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-09-10 20:15:02 +00:00
|
|
|
key_down_event <value>
|
2006-10-08 15:58:05 +00:00
|
|
|
Inject <value> key code event into MPlayer.
|
2005-09-10 20:15:02 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
loadfile <file|url> <append>
|
|
|
|
Load the given file/URL, stopping playback of the current file/URL.
|
|
|
|
If <append> is nonzero playback continues and the file/URL is
|
|
|
|
appended to the current playlist instead.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
loadlist <file> <append>
|
|
|
|
Load the given playlist file, stopping playback of the current file.
|
|
|
|
If <append> is nonzero playback continues and the playlist file is
|
|
|
|
appended to the current playlist instead.
|
2004-08-24 10:52:28 +00:00
|
|
|
|
2007-07-09 14:52:46 +00:00
|
|
|
loop <value> [abs]
|
|
|
|
Adjust/set how many times the movie should be looped. -1 means no loop,
|
|
|
|
and 0 forever.
|
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
mute [value]
|
2006-03-26 10:03:26 +00:00
|
|
|
Toggle sound output muting or set it to [value] when [value] >= 0
|
2006-03-22 20:17:48 +00:00
|
|
|
(1 == on, 0 == off).
|
2005-06-09 20:13:53 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
osd [level]
|
|
|
|
Toggle OSD mode or set it to [level] when [level] >= 0.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2010-04-09 19:20:52 +00:00
|
|
|
osd_show_progression
|
|
|
|
Show the progression bar, the elapsed time and the total duration of the
|
|
|
|
movie on the OSD.
|
|
|
|
|
2006-04-23 14:31:54 +00:00
|
|
|
osd_show_property_text <string> [duration] [level]
|
|
|
|
Show an expanded property string on the OSD, see -playing-msg for a
|
|
|
|
description of the available expansions. If [duration] is >= 0 the text
|
2006-04-23 14:58:14 +00:00
|
|
|
is shown for [duration] ms. [level] sets the minimum OSD level needed
|
|
|
|
for the message to be visible (default: 0 - always show).
|
2006-04-23 14:31:54 +00:00
|
|
|
|
2006-04-23 14:48:15 +00:00
|
|
|
osd_show_text <string> [duration] [level]
|
2005-01-03 15:01:58 +00:00
|
|
|
Show <string> on the OSD.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:03:26 +00:00
|
|
|
panscan <-1.0 - 1.0> | <0.0 - 1.0> <abs>
|
2005-09-04 16:08:18 +00:00
|
|
|
Increase or decrease the pan-and-scan range by <value>, 1.0 is the maximum.
|
|
|
|
Negative values decrease the pan-and-scan range.
|
2006-03-26 10:03:26 +00:00
|
|
|
If <abs> is != 0, then the pan-and scan range is interpreted as an
|
2005-09-04 16:08:18 +00:00
|
|
|
absolute range.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
pause
|
2010-12-18 10:38:45 +00:00
|
|
|
Pause/unpause the playback (use "set_property pause X" to set a particular
|
|
|
|
value regardless of whether the player is already paused or not).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
frame_step
|
|
|
|
Play one frame, then pause again.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
pt_step <value> [force]
|
2005-09-04 16:08:18 +00:00
|
|
|
Go to the next/previous entry in the playtree. The sign of <value> tells
|
|
|
|
the direction. If no entry is available in the given direction it will do
|
2006-03-26 10:02:04 +00:00
|
|
|
nothing unless [force] is non-zero.
|
2005-04-03 15:10:24 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
pt_up_step <value> [force]
|
2005-09-04 16:08:18 +00:00
|
|
|
Similar to pt_step but jumps to the next/previous entry in the parent list.
|
|
|
|
Useful to break out of the inner loop in the playtree.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
quit [value]
|
|
|
|
Quit MPlayer. The optional integer [value] is used as the return code
|
2005-09-04 16:08:18 +00:00
|
|
|
for the mplayer process (default: 0).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-08-29 18:23:09 +00:00
|
|
|
radio_set_channel <channel>
|
2006-08-31 18:43:53 +00:00
|
|
|
Switch to <channel>. The 'channels' radio parameter needs to be set.
|
2006-08-29 18:23:09 +00:00
|
|
|
|
|
|
|
radio_set_freq <frequency in MHz>
|
|
|
|
Set the radio tuner frequency.
|
|
|
|
|
2006-08-31 18:43:53 +00:00
|
|
|
radio_step_channel <-1|1>
|
|
|
|
Step forwards (1) or backwards (-1) in channel list. Works only when the
|
|
|
|
'channels' radio parameter was set.
|
|
|
|
|
2006-11-19 16:15:05 +00:00
|
|
|
radio_step_freq <value>
|
2009-07-06 23:26:13 +00:00
|
|
|
Tune frequency by the <value> (positive - up, negative - down).
|
2006-11-19 16:15:05 +00:00
|
|
|
|
2011-10-25 04:05:47 +00:00
|
|
|
run <value>
|
|
|
|
Run <value> as shell command.
|
|
|
|
|
2010-12-14 23:09:47 +00:00
|
|
|
seek <value> [type] [hr-seek]
|
2005-09-04 16:08:18 +00:00
|
|
|
Seek to some place in the movie.
|
2010-12-14 23:09:47 +00:00
|
|
|
type = 0 is a relative seek of +/- <value> seconds (default).
|
|
|
|
type = 1 is a seek to <value> % in the movie.
|
|
|
|
type = 2 is a seek to an absolute position of <value> seconds.
|
|
|
|
The hr-seek parameter controls whether to use precise seeks (not limited
|
|
|
|
to keyframe positions in video).
|
|
|
|
hr-seek = 0 means use default set with option -hr-seek (default).
|
|
|
|
hr-seek = 1 means force precise seek if possible.
|
|
|
|
hr-seek = -1 means force non-precise seek.
|
2005-09-04 16:08:18 +00:00
|
|
|
|
2006-08-06 18:55:34 +00:00
|
|
|
seek_chapter <value> [type]
|
|
|
|
Seek to the start of a chapter.
|
2006-08-06 22:55:29 +00:00
|
|
|
0 is a relative seek of +/- <value> chapters (default).
|
|
|
|
1 is a seek to chapter <value>.
|
2006-08-06 18:55:34 +00:00
|
|
|
|
2008-01-05 14:33:44 +00:00
|
|
|
switch_angle <value>
|
2008-01-25 01:11:54 +00:00
|
|
|
Switch to the angle with the ID [value]. Cycle through the
|
2008-01-05 14:33:44 +00:00
|
|
|
available angles if [value] is omitted or negative.
|
|
|
|
|
2006-09-16 17:58:30 +00:00
|
|
|
set_mouse_pos <x> <y>
|
2006-09-17 15:06:28 +00:00
|
|
|
Tells MPlayer the coordinates of the mouse in the window.
|
|
|
|
This command doesn't move the mouse!
|
2006-09-16 17:58:30 +00:00
|
|
|
|
2006-03-22 20:17:48 +00:00
|
|
|
set_property <property> <value>
|
|
|
|
Set a property.
|
|
|
|
|
2009-09-19 02:10:46 +00:00
|
|
|
set_property_osd <property> <value>
|
|
|
|
Same as above, but show the new value on the OSD in the standard
|
|
|
|
manner defined for that property (if any).
|
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
speed_incr <value>
|
|
|
|
Add <value> to the current playback speed.
|
|
|
|
|
|
|
|
speed_mult <value>
|
|
|
|
Multiply the current speed by <value>.
|
|
|
|
|
|
|
|
speed_set <value>
|
|
|
|
Set the speed to <value>.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2007-05-31 09:42:14 +00:00
|
|
|
step_property <property> [value] [direction]
|
|
|
|
Change a property by value, or increase by a default if value is
|
|
|
|
not given or zero. The direction is reversed if direction is less
|
|
|
|
than zero.
|
2006-11-14 19:52:21 +00:00
|
|
|
|
2009-09-19 02:10:46 +00:00
|
|
|
step_property_osd <property> [value] [direction]
|
|
|
|
Same as above, but show the new value on the OSD in the standard
|
|
|
|
manner defined for that property (if any).
|
|
|
|
|
2008-05-27 18:39:57 +00:00
|
|
|
stop
|
|
|
|
Stop playback.
|
|
|
|
|
2006-03-27 16:43:02 +00:00
|
|
|
sub_alignment [value]
|
2006-03-24 19:59:30 +00:00
|
|
|
Toggle/set subtitle alignment.
|
2006-03-27 16:43:02 +00:00
|
|
|
0 top alignment
|
|
|
|
1 center alignment
|
|
|
|
2 bottom alignment
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
sub_delay <value> [abs]
|
2005-09-04 16:08:18 +00:00
|
|
|
Adjust the subtitle delay by +/- <value> seconds or set it to <value>
|
2006-03-26 10:02:04 +00:00
|
|
|
seconds when [abs] is nonzero.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
sub_load <subtitle_file>
|
|
|
|
Loads subtitles from <subtitle_file>.
|
2004-08-22 18:47:48 +00:00
|
|
|
|
2005-02-12 14:45:54 +00:00
|
|
|
sub_log
|
|
|
|
Logs the current or last displayed subtitle together with filename
|
|
|
|
and time information to ~/.mplayer/subtitle_log. Intended purpose
|
|
|
|
is to allow convenient marking of bogus subtitles which need to be
|
|
|
|
fixed while watching the movie.
|
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
sub_pos <value> [abs]
|
2006-03-24 19:59:30 +00:00
|
|
|
Adjust/set subtitle position.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
sub_remove [value]
|
|
|
|
If the [value] argument is present and non-negative, removes the subtitle
|
|
|
|
file with index [value]. If the argument is omitted or negative, removes
|
2005-09-04 16:08:18 +00:00
|
|
|
all subtitle files.
|
2005-05-18 11:38:06 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
sub_select [value]
|
|
|
|
Display subtitle with index [value]. Turn subtitle display off if
|
|
|
|
[value] is -1 or greater than the highest available subtitle index.
|
|
|
|
Cycle through the available subtitles if [value] is omitted or less
|
2010-12-11 12:44:39 +00:00
|
|
|
than -1 (forward or backward respectively).
|
|
|
|
Supported subtitle sources are -sub options on the command
|
2005-09-04 16:08:18 +00:00
|
|
|
line, VOBsubs, DVD subtitles, and Ogg and Matroska text streams.
|
2007-11-25 04:09:04 +00:00
|
|
|
This command is mainly for cycling all subtitles, if you want to set
|
|
|
|
a specific subtitle, use sub_file, sub_vob, or sub_demux.
|
|
|
|
|
|
|
|
sub_source [source]
|
|
|
|
Display first subtitle from [source]. Here [source] is an integer:
|
|
|
|
SUB_SOURCE_SUBS (0) for file subs
|
|
|
|
SUB_SOURCE_VOBSUB (1) for VOBsub files
|
|
|
|
SUB_SOURCE_DEMUX (2) for subtitle embedded in the media file or DVD subs.
|
2010-12-11 12:44:39 +00:00
|
|
|
If [source] is -1, will turn off subtitle display.
|
|
|
|
If [value] is omitted or less than -1, will cycle between the first subtitle
|
|
|
|
of each currently available source (forward or backward respectively).
|
2007-11-25 04:09:04 +00:00
|
|
|
|
|
|
|
sub_file [value]
|
|
|
|
Display subtitle specifid by [value] for file subs. The [value] is
|
|
|
|
corresponding to ID_FILE_SUB_ID values reported by '-identify'.
|
2010-12-11 12:44:39 +00:00
|
|
|
If [value] is -1, will turn off subtitle display.
|
|
|
|
If [value] is omitted or less than -1, will cycle all file subs
|
|
|
|
(forward or backward respectively).
|
2007-11-25 04:09:04 +00:00
|
|
|
|
|
|
|
sub_vob [value]
|
|
|
|
Display subtitle specifid by [value] for vobsubs. The [value] is
|
|
|
|
corresponding to ID_VOBSUB_ID values reported by '-identify'.
|
2010-12-11 12:44:39 +00:00
|
|
|
If [value] is -1, will turn off subtitle display.
|
|
|
|
If [value] is omitted or less than -1, will cycle all vobsubs
|
|
|
|
(forward or backward respectively).
|
2007-11-25 04:09:04 +00:00
|
|
|
|
|
|
|
sub_demux [value]
|
|
|
|
Display subtitle specifid by [value] for subtitles from DVD or embedded
|
|
|
|
in media file. The [value] is corresponding to ID_SUBTITLE_ID values
|
|
|
|
reported by '-identify'. If [value] is -1, will turn off subtitle display.
|
2010-12-11 12:44:39 +00:00
|
|
|
If [value] is omitted or less than -1, will cycle all DVD subs or embedded subs
|
|
|
|
(forward or backward respectively).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2007-07-09 11:19:21 +00:00
|
|
|
sub_scale <value> [abs]
|
|
|
|
Adjust the subtitle size by +/- <value> or set it to <value> when [abs]
|
|
|
|
is nonzero.
|
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
vobsub_lang
|
|
|
|
This is a stub linked to sub_select for backwards compatibility.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
sub_step <value>
|
|
|
|
Step forward in the subtitle list by <value> steps or backwards if <value>
|
|
|
|
is negative.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
sub_visibility [value]
|
2006-03-24 19:59:30 +00:00
|
|
|
Toggle/set subtitle visibility.
|
2003-11-30 16:36:10 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
forced_subs_only [value]
|
2006-03-24 19:59:30 +00:00
|
|
|
Toggle/set forced subtitles only.
|
2004-08-22 19:01:56 +00:00
|
|
|
|
2007-11-10 19:48:17 +00:00
|
|
|
switch_audio [value] (currently MPEG*, AVI, Matroska and streams handled by libavformat)
|
2008-01-25 01:11:54 +00:00
|
|
|
Switch to the audio track with the ID [value]. Cycle through the
|
2006-03-26 10:02:04 +00:00
|
|
|
available tracks if [value] is omitted or negative.
|
2004-09-04 09:29:08 +00:00
|
|
|
|
2008-01-24 22:36:06 +00:00
|
|
|
switch_angle [value] (DVDs only)
|
2008-01-25 01:11:54 +00:00
|
|
|
Switch to the DVD angle with the ID [value]. Cycle through the
|
2008-01-24 22:36:06 +00:00
|
|
|
available angles if [value] is omitted or negative.
|
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
switch_ratio [value]
|
|
|
|
Change aspect ratio at runtime. [value] is the new aspect ratio expressed
|
2004-09-17 15:38:59 +00:00
|
|
|
as a float (e.g. 1.77778 for 16/9).
|
2004-09-19 18:36:18 +00:00
|
|
|
There might be problems with some video filters.
|
2004-09-17 15:38:59 +00:00
|
|
|
|
2008-01-24 22:36:06 +00:00
|
|
|
switch_title [value] (DVDNAV only)
|
2008-01-25 01:11:54 +00:00
|
|
|
Switch to the DVD title with the ID [value]. Cycle through the
|
2008-01-24 22:36:06 +00:00
|
|
|
available titles if [value] is omitted or negative.
|
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
switch_vsync [value]
|
|
|
|
Toggle vsync (1 == on, 0 == off). If [value] is not provided,
|
2005-09-04 16:08:18 +00:00
|
|
|
vsync status is inverted.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2007-07-29 17:58:20 +00:00
|
|
|
teletext_add_digit <value>
|
|
|
|
Enter/leave teletext page number editing mode and append given digit to
|
|
|
|
previously entered one.
|
|
|
|
0..9 - Append apropriate digit. (Enables editing mode if called from normal
|
|
|
|
mode, and switches to normal mode when third digit is entered.)
|
|
|
|
- - Delete last digit from page number. (Backspace emulation, works only
|
|
|
|
in page number editing mode.)
|
|
|
|
|
2007-08-28 14:10:47 +00:00
|
|
|
teletext_go_link <1-6>
|
2007-08-28 22:48:01 +00:00
|
|
|
Follow given link on current teletext page.
|
2007-08-28 14:10:47 +00:00
|
|
|
|
2007-08-23 16:09:30 +00:00
|
|
|
tv_start_scan
|
2007-08-28 22:48:01 +00:00
|
|
|
Start automatic TV channel scanning.
|
2007-08-23 16:09:30 +00:00
|
|
|
|
2003-11-08 01:33:38 +00:00
|
|
|
tv_step_channel <channel>
|
2004-08-24 10:52:28 +00:00
|
|
|
Select next/previous TV channel.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
tv_step_norm
|
2003-11-08 01:33:38 +00:00
|
|
|
Change TV norm.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
tv_step_chanlist
|
2003-11-08 01:33:38 +00:00
|
|
|
Change channel list.
|
|
|
|
|
|
|
|
tv_set_channel <channel>
|
|
|
|
Set the current TV channel.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
tv_last_channel
|
2003-11-08 01:33:38 +00:00
|
|
|
Set the current TV channel to the last one.
|
|
|
|
|
2003-08-04 09:13:10 +00:00
|
|
|
tv_set_freq <frequency in MHz>
|
2004-08-24 10:52:28 +00:00
|
|
|
Set the TV tuner frequency.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2007-03-17 11:51:17 +00:00
|
|
|
tv_step_freq <frequency offset in MHz>
|
|
|
|
Set the TV tuner frequency relative to current value.
|
|
|
|
|
2003-08-04 09:13:10 +00:00
|
|
|
tv_set_norm <norm>
|
2004-08-24 10:52:28 +00:00
|
|
|
Set the TV tuner norm (PAL, SECAM, NTSC, ...).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-04-22 19:34:49 +00:00
|
|
|
tv_set_brightness <-100 - 100> [abs]
|
|
|
|
Set TV tuner brightness or adjust it if [abs] is set to 0.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-04-22 19:34:49 +00:00
|
|
|
tv_set_contrast <-100 -100> [abs]
|
|
|
|
Set TV tuner contrast or adjust it if [abs] is set to 0.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-04-22 19:34:49 +00:00
|
|
|
tv_set_hue <-100 - 100> [abs]
|
|
|
|
Set TV tuner hue or adjust it if [abs] is set to 0.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-04-22 19:34:49 +00:00
|
|
|
tv_set_saturation <-100 - 100> [abs]
|
|
|
|
Set TV tuner saturation or adjust it if [abs] is set to 0.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-09-04 16:08:18 +00:00
|
|
|
use_master
|
|
|
|
Switch volume control between master and PCM.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
vo_border [value]
|
2006-03-24 19:59:30 +00:00
|
|
|
Toggle/set borderless display.
|
2005-11-10 23:26:55 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
vo_fullscreen [value]
|
2006-03-24 19:59:30 +00:00
|
|
|
Toggle/set fullscreen mode.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
vo_ontop [value]
|
2006-03-24 19:59:30 +00:00
|
|
|
Toggle/set stay-on-top.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
vo_rootwin [value]
|
2006-03-24 19:59:30 +00:00
|
|
|
Toggle/set playback on the root window.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2006-03-26 10:02:04 +00:00
|
|
|
volume <value> [abs]
|
|
|
|
Increase/decrease volume or set it to <value> if [abs] is nonzero.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
|
2007-01-29 19:01:32 +00:00
|
|
|
Available properties:
|
|
|
|
|
2007-01-29 19:38:31 +00:00
|
|
|
name type min max get set step comment
|
|
|
|
=================================================================
|
|
|
|
|
|
|
|
osdlevel int 0 3 X X X as -osdlevel
|
|
|
|
speed float 0.01 100 X X X as -speed
|
2007-07-09 14:52:46 +00:00
|
|
|
loop int -1 X X X as -loop
|
2010-12-14 23:09:47 +00:00
|
|
|
hr_seek string X X X as -hr-seek
|
2010-12-18 06:02:48 +00:00
|
|
|
pts_association_mode string X X X as -pts-association-mode
|
2010-12-18 10:38:45 +00:00
|
|
|
pause flag 0 1 X 1 if paused
|
2007-01-29 19:38:31 +00:00
|
|
|
filename string X file playing wo path
|
|
|
|
path string X file playing
|
|
|
|
demuxer string X demuxer used
|
|
|
|
stream_pos pos 0 X X position in stream
|
|
|
|
stream_start pos 0 X start pos in stream
|
|
|
|
stream_end pos 0 X end pos in stream
|
|
|
|
stream_length pos 0 X (end - start)
|
2010-07-25 09:06:37 +00:00
|
|
|
stream_time_pos time 0 X present position in stream (in seconds)
|
2007-12-14 08:33:11 +00:00
|
|
|
chapter int 0 X X X select chapter
|
2008-09-26 21:17:01 +00:00
|
|
|
chapters int X number of chapters
|
2008-01-05 14:33:44 +00:00
|
|
|
angle int 0 X X X select angle
|
2007-05-31 13:02:51 +00:00
|
|
|
length time X length of file in seconds
|
2007-05-31 13:07:52 +00:00
|
|
|
percent_pos int 0 100 X X X position in percent
|
|
|
|
time_pos time 0 X X X position in seconds
|
2007-05-31 10:43:35 +00:00
|
|
|
metadata str list X list of metadata key/value
|
|
|
|
metadata/* string X metadata values
|
2007-01-29 19:38:31 +00:00
|
|
|
volume float 0 100 X X X change volume
|
2007-06-20 02:26:20 +00:00
|
|
|
balance float -1 1 X X X change audio balance
|
2007-01-29 19:38:31 +00:00
|
|
|
mute flag 0 1 X X X
|
|
|
|
audio_delay float -100 100 X X X
|
|
|
|
audio_format int X
|
2007-05-31 10:43:35 +00:00
|
|
|
audio_codec string X
|
2007-01-29 19:38:31 +00:00
|
|
|
audio_bitrate int X
|
|
|
|
samplerate int X
|
|
|
|
channels int X
|
|
|
|
switch_audio int -2 255 X X X select audio stream
|
2008-01-24 22:36:06 +00:00
|
|
|
switch_angle int -2 255 X X X select DVD angle
|
|
|
|
switch_title int -2 255 X X X select DVD title
|
2010-11-02 01:17:41 +00:00
|
|
|
capturing flag 0 1 X X X dump primary stream if enabled
|
2007-01-29 19:38:31 +00:00
|
|
|
fullscreen flag 0 1 X X X
|
|
|
|
deinterlace flag 0 1 X X X
|
|
|
|
ontop flag 0 1 X X X
|
|
|
|
rootwin flag 0 1 X X X
|
|
|
|
border flag 0 1 X X X
|
|
|
|
framedropping int 0 2 X X X 1 = soft, 2 = hard
|
|
|
|
gamma int -100 100 X X X
|
|
|
|
brightness int -100 100 X X X
|
|
|
|
contrast int -100 100 X X X
|
|
|
|
saturation int -100 100 X X X
|
|
|
|
hue int -100 100 X X X
|
|
|
|
panscan float 0 1 X X X
|
|
|
|
vsync flag 0 1 X X X
|
video, options: implement better YUV->RGB conversion control
Rewrite control of the colorspace and input/output level parameters
used in YUV-RGB conversions, replacing VO-specific suboptions with new
common options and adding configuration support to more cases.
Add new option --colormatrix which selects the colorspace the original
video is assumed to have in YUV->RGB conversions. The default
behavior changes from assuming BT.601 to colorspace autoselection
between BT.601 and BT.709 using a simple heuristic based on video
size. Add new options --colormatrix-input-range and
--colormatrix-output-range which select input YUV and output RGB range.
Disable the previously existing VO-specific colorspace and level
conversion suboptions in vo_gl and vo_vdpau. Remove the
"yuv_colorspace" property and replace it with one named "colormatrix"
and semantics matching the new option. Add new properties matching the
options for level conversion.
Colorspace selection is currently supported by vo_gl, vo_vdpau, vo_xv
and vf_scale, and all can change it at runtime (previously only
vo_vdpau and vo_xv could). vo_vdpau now uses the same conversion
matrix generation as vo_gl instead of libvdpau functionality; the main
functional difference is that the "contrast" equalizer control behaves
somewhat differently (it scales the Y component around 1/2 instead of
around 0, so that contrast 0 makes the image gray rather than black).
vo_xv does not support level conversion. vf_scale supports range
setting for input, but always outputs full-range RGB.
The value of the slave properties is the policy setting used for
conversions. This means they can be set to any value regardless of
whether the current VO supports that value or whether there currently
even is any video. Possibly separate properties could be added to
query the conversion actually used at the moment, if any.
Because the colorspace and level settings are now set with a single
VF/VO control call, the return value of that is no longer used to
signal whether all the settings are actually supported. Instead code
should set all the details it can support, and ignore the rest. The
core will use GET_YUV_COLORSPACE to check which colorspace details
have been set and which not. In other words, the return value for
SET_YUV_COLORSPACE only signals whether any kind of YUV colorspace
conversion handling exists at all, and VOs have to take care to return
the actual state with GET_YUV_COLORSPACE instead.
To be changed in later commits: add missing option documentation.
2011-10-15 21:50:21 +00:00
|
|
|
colormatrix choice X X X as --colormatrix
|
|
|
|
colormatrix_input_range choice X X X as --colormatrix-input-range
|
|
|
|
colormatrix_output_range choice X X X as --colormatrix-output-range
|
2007-01-29 19:38:31 +00:00
|
|
|
video_format int X
|
2007-05-31 10:43:35 +00:00
|
|
|
video_codec string X
|
2007-01-29 19:38:31 +00:00
|
|
|
video_bitrate int X
|
|
|
|
width int X "display" width
|
|
|
|
height int X "display" height
|
|
|
|
fps float X
|
|
|
|
aspect float X
|
|
|
|
switch_video int -2 255 X X X select video stream
|
|
|
|
switch_program int -1 65535 X X X (see TAB default keybind)
|
|
|
|
sub int -1 X X X select subtitle stream
|
2007-11-25 04:09:04 +00:00
|
|
|
sub_source int -1 2 X X X select subtitle source
|
|
|
|
sub_file int -1 X X X select file subtitles
|
|
|
|
sub_vob int -1 X X X select vobsubs
|
|
|
|
sub_demux int -1 X X X select subs from demux
|
2007-01-29 19:38:31 +00:00
|
|
|
sub_delay float X X X
|
|
|
|
sub_pos int 0 100 X X X subtitle position
|
|
|
|
sub_alignment int 0 2 X X X subtitle alignment
|
|
|
|
sub_visibility flag 0 1 X X X show/hide subtitles
|
|
|
|
sub_forced_only flag 0 1 X X X
|
2007-07-09 11:19:21 +00:00
|
|
|
sub_scale float 0 100 X X X subtitles font size
|
2011-08-04 19:47:36 +00:00
|
|
|
ass_vsfilter_aspect_compat flag 0 1 X X X SSA/ASS aspect ratio correction
|
2007-01-29 19:38:31 +00:00
|
|
|
tv_brightness int -100 100 X X X
|
|
|
|
tv_contrast int -100 100 X X X
|
|
|
|
tv_saturation int -100 100 X X X
|
|
|
|
tv_hue int -100 100 X X X
|
2007-07-29 17:58:20 +00:00
|
|
|
teletext_page int 0 799 X X X
|
|
|
|
teletext_subpage int 0 64 X X X
|
|
|
|
teletext_mode flag 0 1 X X X 0 - off, 1 - on
|
|
|
|
teletext_format int 0 3 X X X 0 - opaque,
|
2009-07-06 23:26:13 +00:00
|
|
|
1 - transparent,
|
2007-07-29 17:58:20 +00:00
|
|
|
2 - opaque inverted,
|
|
|
|
3 - transp. inv.
|
|
|
|
teletext_half_page int 0 2 X X X 0 - off, 1 - top half,
|
|
|
|
2- bottom half
|