Mercurial > mplayer.hg
comparison DOCS/tech/slave.txt @ 34987:bdf9478e9374
Change "run" command to expand properties.
Patch by Jan Christoph Uhde [Jan UhdeJc com], documentation
part changed by me.
author | reimar |
---|---|
date | Sun, 12 Aug 2012 17:57:35 +0000 |
parents | 9c19ed884ee2 |
children | 0bd0297b073a |
comparison
equal
deleted
inserted
replaced
34986:0eeb639da30e | 34987:bdf9478e9374 |
---|---|
506 | 506 |
507 hide | 507 hide |
508 Hides the OSD menu console. Clicking a menu command unhides it. Other | 508 Hides the OSD menu console. Clicking a menu command unhides it. Other |
509 keybindings act as usual. | 509 keybindings act as usual. |
510 | 510 |
511 run <value> | 511 run <string> |
512 Run <value> as shell command. In OSD menu console mode stdout and stdin | 512 Run <string> with properties expanded as shell command. In OSD menu |
513 are through the video output driver. | 513 console mode stdout and stdin are through the video output driver. |
514 Property expansion happens in the same way as for osd_show_property_text. | |
515 Note: MPlayer will do property expansion on anything of the form | |
516 ${somevar} before it is passed to the shell. | |
517 This means that you cannot use this syntax for anything you actually | |
518 want the shell to handle, though any other form like $somevar will | |
519 be passed on to and processed by the shell. | |
520 | |
521 Example: | |
522 run "echo ${filename} ${stream_pos} >> <path_to_file>" | |
514 | 523 |
515 | 524 |
516 Available properties: | 525 Available properties: |
517 | 526 |
518 name type min max get set step comment | 527 name type min max get set step comment |