[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to create an m3u playlist containing mp3 and m4a files?



On Tue, 27 Aug 2013 19:40:35 +0200
Claudius Hubig <debian_1308@chubig.net> wrote:

> Dear Sharon,
> 
> Sharon Kimble wrote:
> > how can I create a .m3u playlist file with .mp3 and .m4a files in it
> > please?
> > 
> > I tried this but the end-result is non-playable 'ls -w 1 *.m4a
> > *.mp3> ~/.mpd/playlists/beeb-radio.m3u' .
> > 
> > It lists all the files with the correct extensions but when I try to
> > load it in MPD, it says that the song is non-playable.
> 
> This is only a guess:
> 
> ls -w 1 *.m4a *.mp3
> 
> will only print the actual filename, not the full path to the file.
> However, MPD playlists have the following format:
> 
> $ cat /var/lib/mpd2/playlists/Dvorak\:\ 8.\ Symphonie.m3u 
> antonín_dvořák/dvorak__sym8__1__allegro_con_brio.ogg
> antonín_dvořák/dvorak__sym8__2__adagio.ogg
> antonín_dvořák/dvorak__sym8__3__allegretto_grazioso.ogg
> antonín_dvořák/dvorak__sym8__4__allegro_ma_non_troppo.ogg
> 
> where the folder antonín_dvořák exists in the music root directory of
> MPD:
> 
> $ grep ^music_directory /etc/mpd2.conf
> music_directory		"/datapub/media/audio"
> $ ls -d /datapub/media/audio/antonín_dvořák/
> /datapub/media/audio/antonín_dvořák//
> 
music_directory		"/home/boudiccas/Music"
target directory 	"/home/boudiccas/Music/beeb-radio"

and when I ran 'ls -w 1 *.m4a *.mp3 > ~/.mpd/playlists/beeb-radio.m3u'
from the target directory it creates 'beeb-radio.m3u' but it is
non-playable. 

When I try to play it from mpd there is zero sound, although others
play okay with mpd, and says 'No such song'

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.0.4
Registered Linux user 334501 

Attachment: signature.asc
Description: PGP signature


Reply to: