Todd Walton wrote:
> On Jan 22, 2008 1:01 AM, Tyrion <[EMAIL PROTECTED]> wrote:
>
>> libavformat file format detected.
>> [mp3 @ 0x87f4834]ID3v2.4 tag skipped, cannot handle unsynchronization
>> [mp3 @ 0x87f4834]Could not find codec parameters (Audio: mp1, 64 kb/s)
>> LAVF_header: av_find_stream_info() failed
>>
>> <snip>
>>
>> so it seems to not be processing the file. Ideas?
>>
>
> Bad tags? Remove all tags? You could try it.
>
> -todd
>
Yes, removing the tags was key, for anyone interested, here is the final
script:
for i in *.wma
do
eyeD3 --to-v1.1 $i
artist=`mp3info -p %a $i`
album=`mp3info -p %l $i`
title=`mp3info -p %t $i`
track=`mp3info -p %n $i |gawk '{printf "%02s", $1};'`
name=`echo "$track""_""$title"".mp3"`
name=`echo $name | tr ' ' '_'`
eyeD3 --remove-all $i
mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i && lame
-m s audiodump.wav -o $name
id3 -a "$artist" -A "$album" -t "$title" -T "$track" "$name"
done
rm audiodump.wav
I realized later that lame could have been used to add the tags, but
didn't feel like making the changes. I also use the following for tracks
that were encoded by itunes:
for i in *.m4a
do
info=`faad -i "$i" 2>&1`
artist=`echo "$info" | grep artist: | sed s/artist:\ //g`
album=`echo "$info" | grep album: | sed s/album:\ //g`
title=`echo "$info" | grep title: | sed s/title:\ //g`
track=`echo "$info" | grep track: | sed s/track:\ //g | gawk '{printf
"%02s", $1};'`
year=`echo "$info" | grep date: | sed s/date:\ //g`
genre=`echo "$info" | grep genre: | sed s/genre:\ //g`
name=`echo "$track""_""$title"".mp3"`
name=`echo $name | tr ' ' '_'`
faad -w "$i"| lame -h -b 128 - "$name"
id3 -a "$artist" -A "$album" -t "$title" -T "$track" "$name"
done
Hope that helps anyone who wants to do the same.
Tyrion
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list