add files to playlist via command line to a playing vlc

*nix specific usage questions
alegria
New Cone
New Cone
Posts: 9
Joined: 02 Jun 2008 19:39

add files to playlist via command line to a playing vlc

Postby alegria » 14 Sep 2009 11:25

Hey!

I can play multiple files with:

Code: Select all

vlc "Song1.mp3" "Song2.mp3"
I can add files to the playlist without starting to play the songs with:

Code: Select all

vlc --play-and-stop "Song1.mp3" "Song2.mp3"
Now my question is, how can I combine these two commands? Maybe there is an open VLC Player and playing some songs (or not) and now i like to add to this specifically VLC Playlist some new song... How can I do this???

In Windows XP the command for my question is:

Code: Select all

vlc.exe --started-from-file --playlist-enqueue "Song1.mp3"
But this doesn't work with Linux?

Anyone can help me???

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: add files to playlist via command line to a playing vlc

Postby xtophe » 14 Sep 2009 15:30

You need to activate the dbus control interface and activate one-instance in the preferences
Xtophe

alegria
New Cone
New Cone
Posts: 9
Joined: 02 Jun 2008 19:39

Re: add files to playlist via command line to a playing vlc

Postby alegria » 14 Sep 2009 20:08

Mmhhh... There are differences in my VLC 0.8.6 (Debian) and VLC 0.9.1 (openSuse)

For example the command to add files to the playlist

Code: Select all

vlc --play-and-stop "Song1.mp3" "Song2.mp3"
works for me only in 0.8.6

On the other side, I can choose the preferences you described (dbus and one-instance) only in 0.9.1

Maybe you know a suitable command for the 0.9.1 version???
And is there a way to set the preferences with a script/command???

alegria
New Cone
New Cone
Posts: 9
Joined: 02 Jun 2008 19:39

Re: add files to playlist via command line to a playing vlc

Postby alegria » 17 Sep 2009 13:38

Nobody has an idea??? There isn't a possibility to add songs to the playlist via commandline in Linux??? I can't believe that...

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: add files to playlist via command line to a playing vlc

Postby xtophe » 17 Sep 2009 14:42

I was (of course) speaking about the current version.
What are you doing with a verson 3 years old ?
Xtophe

alegria
New Cone
New Cone
Posts: 9
Joined: 02 Jun 2008 19:39

Re: add files to playlist via command line to a playing vlc

Postby alegria » 18 Sep 2009 20:04

Ok, you're right! I've installed the current version which is available for openSuse - 1.0.1 Goldeneye

If I want to add a File to the playlist and type

Code: Select all

vlc --no-play-and-stop "Song1.mp3" "Song2.mp3"
But VLC is playling the song instead of adding it only to the playlist!

So is this is a bug or doesn't exist a command to add files???

gurucbm
New Cone
New Cone
Posts: 3
Joined: 12 Oct 2009 15:22

Re: add files to playlist via command line to a playing vlc

Postby gurucbm » 14 Oct 2009 15:19

Cool.. I also faced the same problem but I have got a solution.

I am using VLC version 1.0.1

The solution is very simple:

Say i want to play a file 1.wmv and then later I want to add it to a playlist.

Step 1: Type in the command
vlc.exe --started-from-file --playlist-enqueue "1.wmv"

The above command starts the vlc and file begins to play.

Step 2 : Type in the command
vlc.exe --started-from-file --playlist-enqueue "2.wmv"

the above command adds the file 2.wmv to the same playlist.


I hope it helps !!!!


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 31 guests