Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1260306
  • 博文数量: 548
  • 博客积分: 7597
  • 博客等级: 少将
  • 技术积分: 4224
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-15 13:21
个人简介

嵌入式软件工程师&&太极拳

文章分类

全部博文(548)

文章存档

2014年(10)

2013年(76)

2012年(175)

2011年(287)

分类: LINUX

2011-03-14 21:43:00

  1. SLAVE MODE PROTOCOL
  2. -------------------
  3. The -slave option switches on slave mode, in which MPlayer works as a backend
  4. for other programs. Instead of intercepting keyboard events, MPlayer will read
  5. commands separated by a newline (\n) from stdin.
  6. To try slave mode out by hand, run
  7. mplayer -slave -quiet
  8. and type slave commands into the console window.
  9. You can also use a fifo file (named pipe):
  10. mkfifo
  11. mplayer -slave -input file=
  12. Most slave mode commands are equivalent to command line options, though not
  13. necessarily under the same name. Detailed descriptions can be found in the
  14. man page.
  15. All commands can be prefixed with one of "pausing ", "pausing_keep ", or
  16. "pausing_toggle ". "pausing " tells MPlayer to pause as soon as possible
  17. after processing the command. "pausing_keep " tells MPlayer to do so only if
  18. it was already in paused mode. "pausing_toggle " tells MPlayer to do so
  19. only if it was not already in paused mode. Please note that "as soon as
  20. possible" can be before the command is fully executed.
  21. As a temporary hack, there is also the _experimental_ "pausing_keep_force "
  22. prefix, with which MPlayer will not exit the pause loop at all.
  23. Like this you can avoid the "frame stepping" effect of "pausing_keep "
  24. but most commands will either not work at all or behave in unexpected ways.
  25. For "set_mouse_pos" and "key_down_event", "pausing_keep_force" is the default
  26. since other values do not make much sense for them.
  27. Various tips and tricks (please help expand it!):
  28. - Try using something like
  29. pausing_keep_force pt_step 1
  30. get_property pause
  31. to switch to the next file. It avoids audio playback starting to play
  32. the old file for a short time before switching to the new one.
  33. - To ensure the user can't control MPlayer "behind your back" use
  34. something like -input nodefault-bindings -noconfig all
  35. Available commands ('mplayer -input cmdlist' will print a list):
  36. af_add (comma separated list of audio filters with parameters)
  37. (experimental) Load the given list of audio filters.
  38. af_clr
  39. (experimental) Unload all loaded audio filters.
  40. af_cmdline
  41. (experimental) Send new command-line options to a filter with the given name.
  42. af_del (comma separated list of audio filter's names)
  43. (experimental) Unload the first occurrence of the filters, if loaded.
  44. af_switch (comma separated list of audio filters with parameters)
  45. (experimental) Remove all the audio filters and replace them with the given list.
  46. alt_src_step (ASX playlist only)
  47. When more than one source is available it selects the next/previous one.
  48. audio_delay [abs]
  49. Set/adjust the audio delay.
  50. If [abs] is not given or is zero, adjust the delay by seconds.
  51. If [abs] is nonzero, set the delay to seconds.
  52. [brightness|contrast|gamma|hue|saturation] [abs]
  53. Set/adjust video parameters.
  54. If [abs] is not given or is zero, modifies parameter by .
  55. If [abs] is non-zero, parameter is set to .
  56. is in the range [-100, 100].
  57. capturing [value]
  58. Toggle/set capturing the primary stream like -dumpstream.
  59. Requires the -capture parameter to be given.
  60. change_rectangle
  61. Change the position of the rectangle filter rectangle.
  62. Must be one of the following:
  63. 0 = width
  64. 1 = height
  65. 2 = x position
  66. 3 = y position
  67. If is 0 or 1:
  68. Integer amount to add/subtract from the width/height.
  69. Positive values add to width/height and negative values
  70. subtract from it.
  71. If is 2 or 3:
  72. Relative integer amount by which to move the upper left
  73. rectangle corner. Positive values move the rectangle
  74. right/down and negative values move the rectangle left/up.
  75. dvb_set_channel
  76. Set DVB channel.
  77. dvdnav
  78. Press the given dvdnav button.
  79. up
  80. down
  81. left
  82. right
  83. menu
  84. select
  85. prev
  86. mouse
  87. edl_loadfile
  88. Load new EDL file.
  89. edl_mark
  90. Write the current position into the EDL file.
  91. frame_drop [value]
  92. Toggle/set frame dropping mode.
  93. get_audio_bitrate
  94. Print out the audio bitrate of the current file.
  95. get_audio_codec
  96. Print out the audio codec name of the current file.
  97. get_audio_samples
  98. Print out the audio frequency and number of channels of the current file.
  99. get_file_name
  100. Print out the name of the current file.
  101. get_meta_album
  102. Print out the 'Album' metadata of the current file.
  103. get_meta_artist
  104. Print out the 'Artist' metadata of the current file.
  105. get_meta_comment
  106. Print out the 'Comment' metadata of the current file.
  107. get_meta_genre
  108. Print out the 'Genre' metadata of the current file.
  109. get_meta_title
  110. Print out the 'Title' metadata of the current file.
  111. get_meta_track
  112. Print out the 'Track Number' metadata of the current file.
  113. get_meta_year
  114. Print out the 'Year' metadata of the current file.
  115. get_percent_pos
  116. Print out the current position in the file, as integer percentage [0-100).
  117. get_property
  118. Print out the current value of a property.
  119. get_sub_visibility
  120. Print out subtitle visibility (1 == on, 0 == off).
  121. get_time_length
  122. Print out the length of the current file in seconds.
  123. get_time_pos
  124. Print out the current position in the file in seconds, as float.
  125. get_vo_fullscreen
  126. Print out fullscreen status (1 == fullscreened, 0 == windowed).
  127. get_video_bitrate
  128. Print out the video bitrate of the current file.
  129. get_video_codec
  130. Print out the video codec name of the current file.
  131. get_video_resolution
  132. Print out the video resolution of the current file.
  133. screenshot
  134. Take a screenshot. Requires the screenshot filter to be loaded.
  135. 0 Take a single screenshot.
  136. 1 Start/stop taking screenshot of each frame.
  137. key_down_event
  138. Inject key code event into MPlayer.
  139. loadfile
  140. Load the given file/URL, stopping playback of the current file/URL.
  141. If is nonzero playback continues and the file/URL is
  142. appended to the current playlist instead.
  143. loadlist
  144. Load the given playlist file, stopping playback of the current file.
  145. If is nonzero playback continues and the playlist file is
  146. appended to the current playlist instead.
  147. loop [abs]
  148. Adjust/set how many times the movie should be looped. -1 means no loop,
  149. and 0 forever.
  150. menu
  151. Execute an OSD menu command.
  152. up Move cursor up.
  153. down Move cursor down.
  154. ok Accept selection.
  155. cancel Cancel selection.
  156. hide Hide the OSD menu.
  157. set_menu
  158. Display the menu named .
  159. mute [value]
  160. Toggle sound output muting or set it to [value] when [value] >= 0
  161. (1 == on, 0 == off).
  162. osd [level]
  163. Toggle OSD mode or set it to [level] when [level] >= 0.
  164. osd_show_progression
  165. Show the progression bar, the elapsed time and the total duration of the
  166. movie on the OSD.
  167. osd_show_property_text [duration] [level]
  168. Show an expanded property string on the OSD, see -playing-msg for a
  169. description of the available expansions. If [duration] is >= 0 the text
  170. is shown for [duration] ms. [level] sets the minimum OSD level needed
  171. for the message to be visible (default: 0 - always show).
  172. osd_show_text [duration] [level]
  173. Show on the OSD.
  174. panscan <-1.0 - 1.0> | <0.0 - 1.0>
  175. Increase or decrease the pan-and-scan range by , 1.0 is the maximum.
  176. Negative values decrease the pan-and-scan range.
  177. If is != 0, then the pan-and scan range is interpreted as an
  178. absolute range.
  179. pause
  180. Pause/unpause the playback.
  181. frame_step
  182. Play one frame, then pause again.
  183. pt_step [force]
  184. Go to the next/previous entry in the playtree. The sign of tells
  185. the direction. If no entry is available in the given direction it will do
  186. nothing unless [force] is non-zero.
  187. pt_up_step [force]
  188. Similar to pt_step but jumps to the next/previous entry in the parent list.
  189. Useful to break out of the inner loop in the playtree.
  190. quit [value]
  191. Quit MPlayer. The optional integer [value] is used as the return code
  192. for the mplayer process (default: 0).
  193. radio_set_channel
  194. Switch to . The 'channels' radio parameter needs to be set.
  195. radio_set_freq
  196. Set the radio tuner frequency.
  197. radio_step_channel <-1|1>
  198. Step forwards (1) or backwards (-1) in channel list. Works only when the
  199. 'channels' radio parameter was set.
  200. radio_step_freq
  201. Tune frequency by the (positive - up, negative - down).
  202. seek [type]
  203. Seek to some place in the movie.
  204. 0 is a relative seek of +/- seconds (default).
  205. 1 is a seek to % in the movie.
  206. 2 is a seek to an absolute position of seconds.
  207. seek_chapter [type]
  208. Seek to the start of a chapter.
  209. 0 is a relative seek of +/- chapters (default).
  210. 1 is a seek to chapter .
  211. switch_angle
  212. Switch to the angle with the ID [value]. Cycle through the
  213. available angles if [value] is omitted or negative.
  214. set_mouse_pos
  215. Tells MPlayer the coordinates of the mouse in the window.
  216. This command doesn't move the mouse!
  217. set_property
  218. Set a property.
  219. speed_incr
  220. Add to the current playback speed.
  221. speed_mult
  222. Multiply the current speed by .
  223. speed_set
  224. Set the speed to .
  225. step_property [value] [direction]
  226. Change a property by value, or increase by a default if value is
  227. not given or zero. The direction is reversed if direction is less
  228. than zero.
  229. stop
  230. Stop playback.
  231. sub_alignment [value]
  232. Toggle/set subtitle alignment.
  233. 0 top alignment
  234. 1 center alignment
  235. 2 bottom alignment
  236. sub_delay [abs]
  237. Adjust the subtitle delay by +/- seconds or set it to
  238. seconds when [abs] is nonzero.
  239. sub_load
  240. Loads subtitles from .
  241. sub_log
  242. Logs the current or last displayed subtitle together with filename
  243. and time information to ~/.mplayer/subtitle_log. Intended purpose
  244. is to allow convenient marking of bogus subtitles which need to be
  245. fixed while watching the movie.
  246. sub_pos [abs]
  247. Adjust/set subtitle position.
  248. sub_remove [value]
  249. If the [value] argument is present and non-negative, removes the subtitle
  250. file with index [value]. If the argument is omitted or negative, removes
  251. all subtitle files.
  252. sub_select [value]
  253. Display subtitle with index [value]. Turn subtitle display off if
  254. [value] is -1 or greater than the highest available subtitle index.
  255. Cycle through the available subtitles if [value] is omitted or less
  256. than -1 (forward or backward respectively).
  257. Supported subtitle sources are -sub options on the command
  258. line, VOBsubs, DVD subtitles, and Ogg and Matroska text streams.
  259. This command is mainly for cycling all subtitles, if you want to set
  260. a specific subtitle, use sub_file, sub_vob, or sub_demux.
  261. sub_source [source]
  262. Display first subtitle from [source]. Here [source] is an integer:
  263. SUB_SOURCE_SUBS (0) for file subs
  264. SUB_SOURCE_VOBSUB (1) for VOBsub files
  265. SUB_SOURCE_DEMUX (2) for subtitle embedded in the media file or DVD subs.
  266. If [source] is -1, will turn off subtitle display.
  267. If [value] is omitted or less than -1, will cycle between the first subtitle
  268. of each currently available source (forward or backward respectively).
  269. sub_file [value]
  270. Display subtitle specifid by [value] for file subs. The [value] is
  271. corresponding to ID_FILE_SUB_ID values reported by '-identify'.
  272. If [value] is -1, will turn off subtitle display.
  273. If [value] is omitted or less than -1, will cycle all file subs
  274. (forward or backward respectively).
  275. sub_vob [value]
  276. Display subtitle specifid by [value] for vobsubs. The [value] is
  277. corresponding to ID_VOBSUB_ID values reported by '-identify'.
  278. If [value] is -1, will turn off subtitle display.
  279. If [value] is omitted or less than -1, will cycle all vobsubs
  280. (forward or backward respectively).
  281. sub_demux [value]
  282. Display subtitle specifid by [value] for subtitles from DVD or embedded
  283. in media file. The [value] is corresponding to ID_SUBTITLE_ID values
  284. reported by '-identify'. If [value] is -1, will turn off subtitle display.
  285. If [value] is omitted or less than -1, will cycle all DVD subs or embedded subs
  286. (forward or backward respectively).
  287. sub_scale [abs]
  288. Adjust the subtitle size by +/- or set it to when [abs]
  289. is nonzero.
  290. vobsub_lang
  291. This is a stub linked to sub_select for backwards compatibility.
  292. sub_step
  293. Step forward in the subtitle list by steps or backwards if
  294. is negative.
  295. sub_visibility [value]
  296. Toggle/set subtitle visibility.
  297. forced_subs_only [value]
  298. Toggle/set forced subtitles only.
  299. switch_audio [value] (currently MPEG*, AVI, Matroska and streams handled by libavformat)
  300. Switch to the audio track with the ID [value]. Cycle through the
  301. available tracks if [value] is omitted or negative.
  302. switch_angle [value] (DVDs only)
  303. Switch to the DVD angle with the ID [value]. Cycle through the
  304. available angles if [value] is omitted or negative.
  305. switch_ratio [value]
  306. Change aspect ratio at runtime. [value] is the new aspect ratio expressed
  307. as a float (e.g. 1.77778 for 16/9).
  308. There might be problems with some video filters.
  309. switch_title [value] (DVDNAV only)
  310. Switch to the DVD title with the ID [value]. Cycle through the
  311. available titles if [value] is omitted or negative.
  312. switch_vsync [value]
  313. Toggle vsync (1 == on, 0 == off). If [value] is not provided,
  314. vsync status is inverted.
  315. teletext_add_digit
  316. Enter/leave teletext page number editing mode and append given digit to
  317. previously entered one.
  318. 0..9 - Append apropriate digit. (Enables editing mode if called from normal
  319. mode, and switches to normal mode when third digit is entered.)
  320. - - Delete last digit from page number. (Backspace emulation, works only
  321. in page number editing mode.)
  322. teletext_go_link <1-6>
  323. Follow given link on current teletext page.
  324. tv_start_scan
  325. Start automatic TV channel scanning.
  326. tv_step_channel
  327. Select next/previous TV channel.
  328. tv_step_norm
  329. Change TV norm.
  330. tv_step_chanlist
  331. Change channel list.
  332. tv_set_channel
  333. Set the current TV channel.
  334. tv_last_channel
  335. Set the current TV channel to the last one.
  336. tv_set_freq
  337. Set the TV tuner frequency.
  338. tv_step_freq
  339. Set the TV tuner frequency relative to current value.
  340. tv_set_norm
  341. Set the TV tuner norm (PAL, SECAM, NTSC, ...).
  342. tv_set_brightness <-100 - 100> [abs]
  343. Set TV tuner brightness or adjust it if [abs] is set to 0.
  344. tv_set_contrast <-100 -100> [abs]
  345. Set TV tuner contrast or adjust it if [abs] is set to 0.
  346. tv_set_hue <-100 - 100> [abs]
  347. Set TV tuner hue or adjust it if [abs] is set to 0.
  348. tv_set_saturation <-100 - 100> [abs]
  349. Set TV tuner saturation or adjust it if [abs] is set to 0.
  350. use_master
  351. Switch volume control between master and PCM.
  352. vo_border [value]
  353. Toggle/set borderless display.
  354. vo_fullscreen [value]
  355. Toggle/set fullscreen mode.
  356. vo_ontop [value]
  357. Toggle/set stay-on-top.
  358. vo_rootwin [value]
  359. Toggle/set playback on the root window.
  360. volume [abs]
  361. Increase/decrease volume or set it to if [abs] is nonzero.
  362. overlay_add
  363. Add an overlay bitmap. must be a PGM file without comments.
  364. is an arbitrary integer used to identify the overlay.
  365. overlay_remove
  366. Remove all overlays identified by .
  367. The following commands are really only useful for OSD menu console mode:
  368. help
  369. Displays help text, currently empty.
  370. exit
  371. Exits from OSD menu console. Unlike 'quit', does not quit MPlayer.
  372. hide
  373. Hides the OSD menu console. Clicking a menu command unhides it. Other
  374. keybindings act as usual.
  375. run
  376. Run as shell command. In OSD menu console mode stdout and stdin
  377. are through the video output driver.
  378. Available properties:
  379. name type min max get set step comment
  380. =================================================================
  381. osdlevel int 0 3 X X X as -osdlevel
  382. speed float 0.01 100 X X X as -speed
  383. loop int -1 X X X as -loop
  384. pause flag 0 1 X 1 if paused, use with pausing_keep_force
  385. filename string X file playing wo path
  386. path string X file playing
  387. demuxer string X demuxer used
  388. stream_pos pos 0 X X position in stream
  389. stream_start pos 0 X start pos in stream
  390. stream_end pos 0 X end pos in stream
  391. stream_length pos 0 X (end - start)
  392. stream_time_pos time 0 X present position in stream (in seconds)
  393. chapter int 0 X X X select chapter
  394. chapters int X number of chapters
  395. angle int 0 X X X select angle
  396. length time X length of file in seconds
  397. percent_pos int 0 100 X X X position in percent
  398. time_pos time 0 X X X position in seconds
  399. metadata str list X list of metadata key/value
  400. metadata/* string X metadata values
  401. volume float 0 100 X X X change volume
  402. balance float -1 1 X X X change audio balance
  403. mute flag 0 1 X X X
  404. audio_delay float -100 100 X X X
  405. audio_format int X
  406. audio_codec string X
  407. audio_bitrate int X
  408. samplerate int X
  409. channels int X
  410. switch_audio int -2 255 X X X select audio stream
  411. switch_angle int -2 255 X X X select DVD angle
  412. switch_title int -2 255 X X X select DVD title
  413. capturing flag 0 1 X X X dump primary stream if enabled
  414. fullscreen flag 0 1 X X X
  415. deinterlace flag 0 1 X X X
  416. ontop flag 0 1 X X X
  417. rootwin flag 0 1 X X X
  418. border flag 0 1 X X X
  419. framedropping int 0 2 X X X 1 = soft, 2 = hard
  420. gamma int -100 100 X X X
  421. brightness int -100 100 X X X
  422. contrast int -100 100 X X X
  423. saturation int -100 100 X X X
  424. hue int -100 100 X X X
  425. panscan float 0 1 X X X
  426. vsync flag 0 1 X X X
  427. video_format int X
  428. video_codec string X
  429. video_bitrate int X
  430. width int X "display" width
  431. height int X "display" height
  432. fps float X
  433. aspect float X
  434. switch_video int -2 255 X X X select video stream
  435. switch_program int -1 65535 X X X (see TAB default keybind)
  436. sub int -1 X X X select subtitle stream
  437. sub_source int -1 2 X X X select subtitle source
  438. sub_file int -1 X X X select file subtitles
  439. sub_vob int -1 X X X select vobsubs
  440. sub_demux int -1 X X X select subs from demux
  441. sub_delay float X X X
  442. sub_pos int 0 100 X X X subtitle position
  443. sub_alignment int 0 2 X X X subtitle alignment
  444. sub_visibility flag 0 1 X X X show/hide subtitles
  445. sub_forced_only flag 0 1 X X X
  446. sub_scale float 0 100 X X X subtitles font size
  447. tv_brightness int -100 100 X X X
  448. tv_contrast int -100 100 X X X
  449. tv_saturation int -100 100 X X X
  450. tv_hue int -100 100 X X X
  451. teletext_page int 0 799 X X X
  452. teletext_subpage int 0 64 X X X
  453. teletext_mode flag 0 1 X X X 0 - off, 1 - on
  454. teletext_format int 0 3 X X X 0 - opaque,
  455. 1 - transparent,
  456. 2 - opaque inverted,
  457. 3 - transp. inv.
  458. teletext_half_page int 0 2 X X X 0 - off, 1 - top half,
  459. 2- bottom half
阅读(812) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~