You are not logged in.

#1 2014-02-06 03:32:32

Proinsias
Member
From: Glasgow
Registered: 2013-08-19
Posts: 121

[SOLVED]Burn m3u flac playlist to mp3 cd

I've started to rip my cd collection again. It's been about a decade and this time I'm using flac & ruby ripper or asunder. I'm using mpd & ncmpcpp for my tunes.

What I would like to be able to do is to create a platlist in mpd of flac files and burn them to cd as mp3/wav files to play in the car.  The wiki has scripts to convert files from flac to mp3 which I can then burn to cd, which is fine for an album but I'm struggling to find something that will allow me to create a playlist in mpd and then transcode it to mp3/wav and burn it.   

Any ideas?

Last edited by Proinsias (2014-04-08 00:55:44)

Offline

#2 2014-02-06 04:36:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Burn m3u flac playlist to mp3 cd

Do you want to have an AudioCD or one with mp3s on it?
The quality of mp3s is lower than the original audio. If you do care about the quality, why not skip the mp3 creation and go from flac straight to AudioCD?

Offline

#3 2014-02-06 16:10:41

Proinsias
Member
From: Glasgow
Registered: 2013-08-19
Posts: 121

Re: [SOLVED]Burn m3u flac playlist to mp3 cd

The car stereo plays mp3 & wma cd's. The idea is to put a hundred or so mp3's on each disc. I had already done this last year using iTunes, the 5 cd's have been on heavy rotation and I'd like to burn another few discs. 192Kbps mp3 is plenty for the car stereo and having access to 100+ songs per disc makes me, and my wife, happy.

Offline

#4 2014-02-09 10:30:54

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED]Burn m3u flac playlist to mp3 cd

You can save your playlists with ncmpcpp.

I had to search for the burnplaylist script. You have to change the ffmpeg and the wodim command since I used it the other way around. But it could be a start if you havn't already one.

#!/bin/sh

if ! [ -f "$1" -a "${1##*.} = 'm3u' ] ; then
  echo "usage:
  > burnplaylist playlist.m3u"
  exit 1
fi

mkdir -p /tmp/burnfiles
i=0
padding="00"
while read f ; do
  echo "processing: $(basename "$f")"
  i=$[i+1]
  ffmpeg -i "$f" "/tmp/burnfiles/${padding:${#i}}$(basename "$f" .mp3 ).wav"
done < "$1"

sudo wodim -v -pad speed=1 dev=/dev/sr0 -dao -swab /tmp/burnfiles/*.wav

eject sr0

rm -r /tmp/burnfiles

Last edited by wirr (2014-02-09 12:44:00)

Offline

#5 2014-02-09 19:34:58

DrZaius
Member
Registered: 2008-01-02
Posts: 193

Re: [SOLVED]Burn m3u flac playlist to mp3 cd

Not an answer to your question, but MP3FS may interest you:

MP3FS is a read-only FUSE filesystem which transcodes audio formats (currently FLAC) to MP3 on the fly when opened and read. This was written to enable me to use my FLAC collection with software and/or hardware which only understands the MP3 format e.g. gmediaserver to a Netgear MP101 MP3 player.

It is also a novel alternative to traditional MP3 encoders. Just use your favorite file browser to select the files you want encoded and copy them somewhere!

Offline

#6 2014-02-09 19:40:07

progandy
Member
Registered: 2012-05-17
Posts: 5,306

Re: [SOLVED]Burn m3u flac playlist to mp3 cd

DrZaius wrote:

Not an answer to your question, but MP3FS may interest you:

MP3FS is a read-only FUSE filesystem which transcodes audio formats (currently FLAC) to MP3 on the fly when opened and read. This was written to enable me to use my FLAC collection with software and/or hardware which only understands the MP3 format e.g. gmediaserver to a Netgear MP101 MP3 player.

It is also a novel alternative to traditional MP3 encoders. Just use your favorite file browser to select the files you want encoded and copy them somewhere!

That's interesting. Read the playlist, s/.flac/.mp3, and generate the iso from the mp3fs. If you want to modify the directory structure, create symlinks somewhere I guess and use that as iso source.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2014-04-08 00:55:20

Proinsias
Member
From: Glasgow
Registered: 2013-08-19
Posts: 121

Re: [SOLVED]Burn m3u flac playlist to mp3 cd

I can now manage my playlists with mpd/ncmpcpp, move the playlists to a directory, convert to mp3 & burn for the car, which is nice.

Uncommented:

save_absolute_paths_in_playlists	"yes"

in mpd.conf

Copy files in playlist to directory:

#!/bin/bash
cat ~/.config/mpd/playlists/cartunes.m3u | grep -v '#' | \
while read "i"; do cp "${i}" ~/storage/media/cartunes/ ; done

Convert to mp3 with mp3ify:

mp3ify storage/media/cartunes/ storage/media/cartunes/mp3/

Create iso:

genisoimage -V "cartunes07042014" -J -r -o cartunes.iso ./storage/media/cartunes/mp3

Burn

wodim -v -sao dev=/dev/sr0 cartunes.iso

Play in car.

As trying to convert various formats to mp3, and fill up a CD, the playlist size involves some guess work. I've been overshooting and using ranger after mp3ify to trim the playlist down to size.

Last edited by Proinsias (2014-04-08 00:56:56)

Offline

Board footer

Powered by FluxBB