[MPlayer-users] prompt_command

troels knak-nielsen troelskn at gmail.com
Sat Oct 20 23:13:52 CEST 2007


On 10/17/07, troels knak-nielsen <troelskn at gmail.com> wrote:
> Hi,
>
> Is it possible to have mplayer use the PROMPT_COMMAND feature of bash
> to dynamically update the title, whenever the song changes?
>
> Thanks.
>
> --
> troels
>

Since this feature doesn't seem to exist for mplayer, I put together a
bash one-liner, which does the trick. I post it here, in case anybody
else looks to do the same:

mplayer -quiet http://207.200.96.231:8014 | sed
"s/StreamTitle='\([^']*\)/\x1B]0;\1\x07\0/"

-- 
troels



More information about the MPlayer-users mailing list