I have a situation where I can only listen through one earbud of my mp3 player (Sansa Clip). Obviously, stereo files don't work well for that.
So I have .flac files that I want to re-encode in mono lossy format (preferably vorbis, but mp3 works). I tried ffmpeg (2.2.1) to encode to vorbis mono, but the Clip played them with horrible static sound even though they played fine on my home stereo.
This is the script I'm using (not worried about tags right now).
I'll update this more when I have time tonight. I just wanted to see if anyone has done something similar.Code:#!/bin/sh for f in *.flac; do # give output correct extension #OUTF="${a[@]/%flac/mp3}" # get the tags #ARTIST=$(metaflac "$f" --show-tag=ARTIST | sed s/.*=//g) #TITLE=$(metaflac "$f" --show-tag=TITLE | sed s/.*=//g) #ALBUM=$(metaflac "$f" --show-tag=ALBUM | sed s/.*=//g) flac -c -d "$f" | lame -m m --preset extreme --noreplaygain - "$f"mono.mp3 done
Bookmarks