[MPlayer-users] slave mode question
Bahadir Yagan
bahadir.yagan at mentorsystem.com
Fri Feb 6 11:59:13 CET 2004
Jonas Beskow wrote:
> Greetings,
>
> I want to control mplayer from another program. I'm suspecting that the
> slave-option is the way to do it, but I can't find any documentation
> about how it works. Specifically, after launching mplayer as a
> sub-process to my application, i want to be able to
>
> - open a new file
> - go to a specific position in the movie and freeze the picture
> - play a movie from one given position to another
> - prevent mplayer from exiting when it reaches the end of the file
>
> I would be much grateful if someone could tell me how to accomplish
> this, or point me to other programs/frontends that use mplayer as a
> sub-process to acheive similar things!
>
> best regards
> - Jonas
>
SLAVE MODE PROTOCOL
-------------------
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=<0/\:1/\:2>]
Seek to some place in the movie.
Type 0 is a relative seek of +/\:- <value> seconds.
Type 1 seek to <value> % in the movie.
Type 2 is a seek to an absolute position of <value> seconds.
edl_mark
????
audio_delay <value>
Adjust the audio delay of value seconds
quit
Quit MPlayer
pause
Pause/\:unpause the playback
grap_frames
Somebody know ?
pt_step <value> [force=<value>]
Go to next/\:previous entry in the playtree.
pt_up_step <value> [force=<value>]
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=<value>]
Adjust the subtitles delay of +/\:- <value> seconds or set it to <value>
seconds when abs is non zero.
osd [level=<value>]
Toggle OSD mode or set it to level when level >= 0.
volume <dir>
Increase/\:decrease volume
use_master
Switch volume control between master and pcm.
mute
Mute/\:unmute sound output.
[contrast|brightness|hue|saturation] <-100-100> [abs=<value>]
Set/\:Adjust video parameters.
frame_drop [type=<value>]
Toggle/\:Set frame dropping mode.
sub_alignment <value>
Set subtitle alignment.
sub_visibility
Toggle subtitle visibility.
get_sub_visibility
Print out subtitle visibility (1 == on, 0 == off).
sub_pos <value>
Adjust subtitles position.
vobsub_lang
Switch the subtitle language when using VOBSub subtitles.
get_percent_pos
Print out the current position in the file, in 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).
panscan value [value2]
???
loadfile url
Load the given file/\:url.
loadlist file
Load the given playlist file.
change_rectangle val1 val2
??? used by the rectangle video filter.
dvdnav button
Press the given dvdnav button.
1 is up, 2 is down, 3 is left, 4 is right, 5 is menu and 6 is select.
tv_step_channel <dir>
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 and so on..
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_[loadsubtitle|about|play|stop]
GUI actions
--
Bahadır Yağan
Mentor Mühendislik
(312) 266 73 68
More information about the MPlayer-users
mailing list