You are not logged in.
I usually use this script
oggenc -q6 *.flac mv *.ogg /path/to/my/rockbox(kinda)
Works!
Thanks but really want it to .create the folder ./artist/album/ automatically
Last edited by Hantabaru (2010-07-21 20:20:41)
Offline
The script i was talking about was for batch converting lots of flac files and the one supplied by Foucault worked well.
Batch converting is as easy as running
oggenc -q 6 *flacA script for something like that is overkill. If you're lazy, you could add set an alias for that. But a script...
I hope the info you got from this thread gets your problem solved though
.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Hantabaru wrote:The script i was talking about was for batch converting lots of flac files and the one supplied by Foucault worked well.
Batch converting is as easy as running
oggenc -q 6 *flacA script for something like that is overkill. If you're lazy, you could add set an alias for that. But a script...
I hope the info you got from this thread gets your problem solved though
.
D'oh!
Obviously, this is the simplest solution...
Yes, got all the info I needed...have marked thread as solved.
Offline
...
... title=`metaflac --show-tag="title" "$file.flac" | sed "s/title=//"` ... flac -c -d "$file.flac" | oggenc -t "$title" -a "$artist" -G "$genre" -l "$album" \ -d "$date" -n "$track" -o $file.ogg -q $qual -
The tag fields in sed may should be capitalized ("TITLE" and not "title").
Also there are double quotes missing in the last call to "$file".
Thx for the script.
Offline
The script in the above posts has a disadvantage - it doesn't copy all tags, only the ones that are specified. After reading some manpages, I found out that metaflac --export-tags-to can be used with vorbiscomment to transfer all the tags.
However, after some testing, it turned out that metaflac supports neither escaping nor \0-terminated output, so I had to process tags one by one.
This script will copy most tags correctly, even if they have newlines (lyrics etc); it will however break on tags that contain null characters or lines starting with "foo=". If someone has an idea how to fix this, please share
#!/bin/bash
inf=${1}
outf=${2}
if [[ -z ${quality} ]]; then
quality=7
fi
echo " File: $inf"
flac -scd "$inf" | oggenc -o "$outf" -q ${quality} -
metaflac "$inf" --export-tags-to=- \
| perl -ne 'if (m/^([\w]+)\=/) {print "$1\n"}' \
| while read tag; do
metaflac "$inf" --show-tag="$tag" \
| perl -0777pe 's/\n$//;s/\//\/\//g;s/[\n\r]/\\n/g;s/(.)$/$1\n/'
done | vorbiscomment -ea "$outf"The best solution to a problem is usually the easiest one.
Offline