Mercurial > mplayer.hg
diff 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 |
line wrap: on
line diff
--- a/DOCS/tech/slave.txt Sun Aug 12 17:31:47 2012 +0000 +++ b/DOCS/tech/slave.txt Sun Aug 12 17:57:35 2012 +0000 @@ -508,9 +508,18 @@ Hides the OSD menu console. Clicking a menu command unhides it. Other keybindings act as usual. -run <value> - Run <value> as shell command. In OSD menu console mode stdout and stdin - are through the video output driver. +run <string> + Run <string> with properties expanded as shell command. In OSD menu + console mode stdout and stdin are through the video output driver. + Property expansion happens in the same way as for osd_show_property_text. + Note: MPlayer will do property expansion on anything of the form + ${somevar} before it is passed to the shell. + This means that you cannot use this syntax for anything you actually + want the shell to handle, though any other form like $somevar will + be passed on to and processed by the shell. + + Example: + run "echo ${filename} ${stream_pos} >> <path_to_file>" Available properties: