How do you add a file to playlist?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
alexbib
New Cone
New Cone
Posts: 6
Joined: 06 Sep 2008 07:17

How do you add a file to playlist?

Postby alexbib » 10 Sep 2008 05:11

This may sound like a stupid question, but is there a way to add a file to the playlist using the command line? If I want to play a file, I type "vlc filename". What do I type to add to playlist instead?

Thanks,
Alex

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: How do you add a file to playlist?

Postby dionoea » 10 Sep 2008 11:46

Which OS and VLC version do you use?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alexbib
New Cone
New Cone
Posts: 6
Joined: 06 Sep 2008 07:17

Re: How do you add a file to playlist?

Postby alexbib » 10 Sep 2008 20:56

Oh, sorry, I forgot about that. I run vlc 0.9.1 on linux.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: How do you add a file to playlist?

Postby dionoea » 13 Sep 2008 00:51

You need to enable one instance mode first in the preferences. Then restart all your vlcs and it'll work as you expected.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alexbib
New Cone
New Cone
Posts: 6
Joined: 06 Sep 2008 07:17

Re: How do you add a file to playlist?

Postby alexbib » 13 Sep 2008 21:15

Thanks, but that's not quite what I'm trying to do. I want to make a custom action for my file manager so I can right-click on a file and add it to the vlc playlist (like you can do in windows). That way depending on what I want to do, I can either run the file and cancel what's playing now, or simply add the file to the playlist, without having to change the preferences every time.

Cheers,
Alex

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: How do you add a file to playlist?

Postby dionoea » 14 Sep 2008 00:19

And doesn't what I just suggested do that? (except the enqueue bit)

On windows, we add the following options to file associations:
--started-from-file --playlist-enqueue
or --started-from-file --no-playlist-enqueue.
And we provide a --one-instance-when-started-from-file option (to set in the prefs) which makes it possible to disable the normal one instance mode and enable it only if you double click on a file (because that would add the --started-from-file option to the command line). Of course all of this would work on linux too ... if the code wasn't ifdef-ed out. I'll fix that right away so the options will be available in 0.9.2 for linux.
(The --playlist-enqueue option is already available in 0.9.0/0.9.1 on linux so you could use it with the --one-instance mode option I mentioned in my previous comment)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: How do you add a file to playlist?

Postby dionoea » 14 Sep 2008 00:38

The change is done. Will be available both in the dev version and in tomorrow's 0.9.2 release. See our win32 install script for an example of how to use the new "--started-from-file" option:
http://git.videolan.org/gitweb.cgi?p=vl ... =HEAD#l272

This adds 2 contextual menu items: "Play with VLC" and "Add to VLC playlist".
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alexbib
New Cone
New Cone
Posts: 6
Joined: 06 Sep 2008 07:17

Re: How do you add a file to playlist?

Postby alexbib » 20 Sep 2008 06:54

Thanks a lot! Your effort is greatly appreciated.

Cheers,
Alex


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 61 guests