2011-04-03

Subsonic refusing to play some OGG files

I stumbled upon some tracks refusing to be played in subsonic when using the web-player (no problem in jukebox mode). The web-player mode is doing some transcoding with ffmpeg, the jukebox mode does not requires it. OGG files were not affected by this problem.

Some errors from the log file around the problematic file:
DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) [NULL @ 0x9b45bc0]Format detected only with low score of 24, misdetection possible!
DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) [mp3 @ 0x9b46df0]Header missing

Looking closer to the problematic files showed an ID3v2 header at begin of the file, followed by the expected Ogg header. After removing the ID3v2 header (using the great 'tag'), the problem was gone.

This just showed that ffmpeg is a bit sensible to the tags in the audio files. Of course, these tags should not have been there. However, VLC and foobar had no problem with these (buggy) files.

No comments:

Post a Comment