Change playing file on the fly ?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
bzImage
New Cone
New Cone
Posts: 7
Joined: 18 Nov 2008 18:56

Change playing file on the fly ?

Postby bzImage » 18 Nov 2008 19:00

There is any way to instruct a running instance of VLC to change the playing file ?

Right now im closing and opening vlc via a script (linux shell script) using different files, but there is a way to tell vlc to change the current video file and reproduce another without closing it ? (using vlc for linux btw)

Thanks

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Change playing file on the fly ?

Postby Arite » 18 Nov 2008 20:37

Have you tried enabling only one running instance? In the (Advanced) Preferences:
Advanced >> Allow only one running instance

Arite.
Don't use PMs for support questions.

bzImage
New Cone
New Cone
Posts: 7
Joined: 18 Nov 2008 18:56

Re: Change playing file on the fly ?

Postby bzImage » 19 Nov 2008 01:30

I think that im lost in the answer...

So i will make the question again but in other words:

How can i via a shell script or programming languaje (in linux) tell a running vlc player (in a X11 environment) to stop reproducing the current video file and now reproduce another video file ?

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Change playing file on the fly ?

Postby Arite » 19 Nov 2008 01:49

My previous post said to enable only one running instance for VLC (in the Qt4 interface go "Tools >> Preferences..." etc.), meaning that executing e.g. VLC from commandline would not create a new instance. However it does not appear to work (using nightly build) - may with 0.9.x though.

Alternatively (a better more flexible method) you could use VLM with the telnet or http interface.

Arite.
Don't use PMs for support questions.

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: Change playing file on the fly ?

Postby erwan10 » 19 Nov 2008 15:22

Using rc interface should work fine
vlc --extraintf=rc --rc-host=localhost:9999 .....

and within a script shell :

nc locahost 9999 <<EOF
stop
add new.avi
play
EOF

see rc help for the whole command set available

bzImage
New Cone
New Cone
Posts: 7
Joined: 18 Nov 2008 18:56

Re: Change playing file on the fly ?

Postby bzImage » 19 Nov 2008 16:37

Yes !!! thats what i was looking for... thanks a lot!!!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 20 guests