Image 01
profile-image

ellocogato

Gus S
Transcogg

Amarok 1.x Scripts by zezinho 16 comments

transcogg is great. But I have an issue with MIME types. For some reason this only seems to happen with MP3 files, but I can get a number of different MIME types from 'file -bi' on .mp3 files:
audio/mpeg
audio/mpeg audio/mpeg (yes, twice)
audio/x-wav
application/octet-stream

Obviously transcogg fails to encode on anything other than audio/mpeg. But the problem is that when a .mp3 file that has any MIME type other than audio/mpeg is found, the whole script hangs until I cancel the Amarok transfer process.

(If I remove "return 1" from the default case in get_decoder, the script doesn't hang any more. But this is just a hack.)
- Jul 13 2008