[vlc] Pause VLC
Brook Lin
gnu.fans at yahoo.com
Fri Sep 5 01:17:39 CEST 2008
Thanks Neil, your information is VERY helpful. Now I can control the VLC by
command. Such as, play it for 5 seconds then pause for 5 seconds, then play
again, etc. However, I want to change it like this, play it for 5 seconds
then pause for 1 seconds, continue to play again for 5 seconds then pause 1
second, etc. Could you or anyone give me some clue?
Thanks,
Brook
Neil Bertram-3 wrote:
>
> Brook Lin wrote:
>> Hi All,
>>
>> I would like to pause the VLC by every 5 seconds, then continue to play
>> it.
>> How to control it by command?
>>
>
> You could accomplish this by using VLC's telnet rc interface and some
> external script that handles the control.
>
> To do this in unix (including MacOS) with a shell script,
>
> Start VLC:
>
> vlc -I rc --rc-host localhost:5678 file.mpg
>
> Then write a shell script along these lines:
>
> #!/bin/sh
>
> while (true); do
> echo pause | nc -q0 localhost 5678 # toggles pause
> sleep 5
> done
>
>
> On other systems you could also use the rc interface, but you'd need to
> find another way to prod the commands at it periodically.
>
>
> Neil
> ______________________________________________________
> vlc mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc
>
>
--
View this message in context: http://www.nabble.com/Re%3A-Pause-VLC-tp19321949p19321949.html
Sent from the VLC (VideoLAN) mailing list archive at Nabble.com.
More information about the vlc
mailing list