Unoffical empeg BBS

Quick Links: Empeg FAQ | Software | RioCar.Org | Hijack | jEmplode | emphatic
Repairs: Repairs | Addons: Eutronix | Cases

Topic Options
#366419 - 02/04/2016 20:18 Converting FLAC to MP3 using ffmpeg
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5539
Loc: London, UK
My FLAC collection's on my Synology NAS, and that has ffmpeg installed. So I'm just gonna leave this here:

Code:
#!/bin/sh
# Put this in 'flac2mp3', chmod +x

source=$1
oldroot=$2
newroot=$3

scratch=${1%.flac}.mp3
dest=$newroot${scratch#$oldroot}

mkdir -p "$(dirname "$dest")"
ffmpeg -y -i "$source" -vn -acodec libmp3lame -q:a 2 "$dest"


Code:
find /volume1/flac -name '*.flac' -exec ./flac2mp3 {} /volume1/flac/ /volume1/music/ {} \;


Note: I've not actually tried it on the NAS, yet, but it seems to work OK on my Linux desktop. I'm going to play with the metadata settings next.
_________________________
-- roger

Top
#366424 - 03/04/2016 16:05 Re: Converting FLAC to MP3 using ffmpeg [Re: Roger]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5690
Loc: Wivenhoe, Essex, UK
I've always used:

https://github.com/robinbowes/flac2mp3

(it can do thing like just syncing the tags to already encoded MP3s)
_________________________
Remind me to change my signature to something more interesting someday

Top
#366439 - 04/04/2016 08:52 Re: Converting FLAC to MP3 using ffmpeg [Re: andy]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5539
Loc: London, UK
That's useful, except that it requires me to cross-compile flac and lame for the diskstation. I'll have to dig into that.

Or, of course, I could patch it to run ffmpeg instead...
_________________________
-- roger

Top
#366451 - 05/04/2016 08:26 Re: Converting FLAC to MP3 using ffmpeg [Re: Roger]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5690
Loc: Wivenhoe, Essex, UK
I really should dig into it myself at some point, it still has some issues when it comes to creating MP3 tags that work well with iTunes (though it is much better than it was at one point, either that or iTunes has got more tolerant of oddities).


Edited by andy (05/04/2016 08:26)
_________________________
Remind me to change my signature to something more interesting someday

Top