LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2015, 06:59 PM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573

Rep: Reputation: 210Reputation: 210Reputation: 210
vlc playlists and other mysteries


Well, I still can't quite figure out how to fashion a playlist with vlc. Sometimes I'm successful, sometimes not. Because of this, I decided to just separate all my music into different directories to use instead of trying to create playlists. But, selecting a directory resulted in vlc picking music from one directory and music videos from another for reasons I cannot figure out.

Code:
mark@mark-OptiPlex-755:~$ vlc version
VLC media player 2.2.0-pre2 Weatherwax (revision 2.2.0-pre1-15-g5178b24)
mark@mark-OptiPlex-755:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.10
Release:	14.10
Codename:	utopic
mark@mark-OptiPlex-755:~$
 
Old 02-18-2015, 01:30 AM   #2
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
The trick with VLC is that when you go to save the playlist (File > Save Playlist To File), it won't automatically include the ".xspf" extension. This can cause problems when you go to open it, again. So, to create a new playlist, drag all your songs into VLC, in the order you want to play them, and then "Save Playlist To File", and make sure to put ".xspf" at the end of the filename.
 
1 members found this post helpful.
Old 02-18-2015, 08:08 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,915
Blog Entries: 13

Rep: Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948
I agree with DaneM, this is exactly behavior I encounter with vlc, it allows you to save the playlist, but (1) never remembers the directory where you last saved it, and (2) doesn't default add the xspf extension.

Admittedly what I've done is I click to browse to the correct directory and then click to select an existing playlist to get it into the file type, and then edit the name of the file to make my final choice.

However, ALSO admittedly, I've gone too far and overwritten a playlist unintentionally because I went too fast! So if you choose to mimic my style, just be careful. Sad that vlc works great, but has these shortcomings.
 
Old 02-20-2015, 11:47 AM   #4
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by DaneM View Post
The trick with VLC is that when you go to save the playlist (File > Save Playlist To File), it won't automatically include the ".xspf" extension. This can cause problems when you go to open it, again. So, to create a new playlist, drag all your songs into VLC, in the order you want to play them, and then "Save Playlist To File", and make sure to put ".xspf" at the end of the filename.
Thanks. I'll keep that in mind.

I can't get over how tricky I find even creating a playlist is within vlc, never mind saving the playlist file. I begin by trying to locate the playlist window. When I finally do locate it, I get a window that tells me, "Playlist is currently empty. Drag a file here or select a media source from the left." So, I go to the media sources, but then this eliminates the window where I'm to drag files to. No matter. I go into a directory from the selected media source, and begin choosing song files (using the Ctrl button to select several songs). After doing this I right-click and choose "Add to playlist". Instead of simply adding the files I chose, it adds the entire directory, and duplicates the files I chose along with this. Asinine. Talk about non-intuitive. Perhaps I'd have better luck working with a file manager along with vlc to create a playlist.

ETA: So, I tried to use a file manager to drag & drop to create a playlist. First I cleared the playlist, then dragged and dropped the files. Everything looked fine. Then I pressed play. It played one song from the actual playlist, and then just began randomly choosing files from the entire directory (and other subdirectories), ignoring the ones chosen from the playlist. Asinine. Apparently vlc's understanding of "drag and drop" and mine do not correspond.

ETA2: Okay, the file I saved ("selected.xspf") did work when I opened, in that it opened the songs that were selected and restricted itself to just songs on the playlist. I'll see if I can figure out how to edit it now.

ETA3: Okay, editing the file seemed to work too. So, seems that to make a playlist, the thing to do is to work with an external file manager for drag and drop, save the playlist to file, close vlc, open it and clear anything in the playlist window, then add the file and make sure to double-click it so that it's recognized, then viola! --> the files you wish to hear will actually be selected. I figured I'd write down what worked here because I suspect I'll forget the sequence later. It's kinda nuts that I can't just select files and play them without going through all this rig-amoral, but oh well.

Last edited by mark_alfred; 02-20-2015 at 12:20 PM.
 
Old 02-21-2015, 05:02 PM   #5
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
I'm glad you figured it out; it certainly does take some wrangling. I'm wondering if another application, like Rhapsody or SongBird might better do what you're going for? They're designed for managing your music collection from within the program.
 
Old 02-23-2015, 07:46 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,915
Blog Entries: 13

Rep: Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948
Regarding the creation and management of playlists as well as the play order controls, here's some of what I've noticed.

There are two widgets. One selects random versus not. You obviously want random off. The other widget selects between loop all, loop one, and no loop. You probably want "no loop". My issue with these widgets is that it's not really intuitive what you've selected. I believe however that they are both set correctly when you start a default player, but once changed it remembers where it was set.

As far as populating a playlist from the file manager, that's great IMHO. I select all the files I want in a given playlist and then right mouse and say "open with VLC". Granted it will open it in the order in which the files are there from the file manager, however then you can click and move things up or down. Unfortunately there appear to be no keyboard shortcuts to allow you to do the same. I'd prefer that. But then you can save that playlist and once saved it will be how you want it.
 
1 members found this post helpful.
  


Reply

Tags
ubuntu, vlc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A question about vlc command line and playlists... trist007 Linux - Newbie 1 12-13-2009 12:39 AM
Adding echo/delay/reverb effects with SOX using VLC playlists trox Linux - Software 0 09-07-2009 12:33 AM
VLC: Bookmarks, presets, saved playlists... Is this possible? rm_-rf_windows Linux - Software 3 07-01-2007 09:29 AM
mutt mysteries Peff Linux - Software 0 12-22-2003 08:34 PM
ahh, the mysteries of Linux frontier1 Linux - General 1 02-27-2003 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration