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

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



Dear Sharon,

Sharon Kimble wrote:
> On Tue, 27 Aug 2013 19:40:35 +0200
> Claudius Hubig <debian_1308@chubig.net> wrote:
> > 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'

What does ~/.mpd/playlists/beeb-radio.m3u look like (cat
~/.mpd/playlists/beeb-radio.m3u)? From what I understand, it should
have the following form for MPD to successfully find the files:

beeb-radio/yoursongone.mp3
beeb-radio/yoursongtwo.m4a

whereas it likely looks like that:

yoursongone.mp3
yoursongtwo.m4a

Best,

Claudius
-- 
Please don’t CC me.

Attachment: signature.asc
Description: PGP signature


Reply to: