I normally download podcasts in Ogg-vorbis if available. Then I'll run a script to convert them to mp3's if I want to use my media player.
This past weekend, I've been unable to tag a number of podcasts using amarok or easytag and my conversion script sometimes doesn't work. Using mplayer -identify and tcprobe, I found out that they started using the flac codec.
The latest Techie Geek is OK. Ditto for many others. So I don't think the problem is at my end. Plus I'm seeing the same thing on two different computers.
Bad Podcasts:
Linux Action Show #089 isn't.
Linux Outlaws Episodes #063 - #066
Bad Apples Linuxcast 2x18
Has anyone else noticed this, or an unability to add pictures to the tags?
In case anyone is interested here is the script I use for converting oggs to mp3s.
Note that I don't copy the image however.
Code:
cat ~/bin/get_tags
get_tags()
{
# clear out old tags
ALBUM='';
ARTIST='';
DATE='';
GENRE='';
TITLE='';
# the tags returned by ogginfo are of the form NAME=VALUE.
# put single quotes around the values to encapsulate white space.
# eval will set the tag variables ALBUM, ARTIST, DATE, GENRE, TITLE
eval $(ogginfo ${1} | sed '/[A-Z][A-Z]*=/!d;s/=\(.*\)$/='"'"'\1'"'"'/;s/^\t//')
}
jschiwal@qosmio:~> cat bin/ogg2mp3
#!/usr/bin/env bash
# convert ogg file to wav file using mplayer
# ${1} is the ogg filename
oggfile="${1}"
echo "$oggfile" # debug
mplayer -vo null -vc null -ao pcm:waveheader:file="${oggfile%.ogg}.wav" "${oggfile}"
# Extract the tag variables TITLE, YEAR, ARTIST, ALBUM
# define get_tags() function
. ~/bin/get_tags "${oggfile}"
get_tags ${oggfile}
if [ -d $DATE ]; then YEAR=$DATE; fi
# Convert .wav file to .mp3 file. Set the tags as well.
lame "${oggfile%.ogg}.wav" \
--tt "${TITLE}" \
--ty "${DATE}" \
--ta "${ARTIST}" \
--tl "${ALBUM}" \
--tg "${GENRE}" \
--tn "${TRACKNUMBER}" \
"${oggfile%.ogg}.mp3"
# remove the temporary file
rm "${oggfile%.ogg}.wav"