Page 1 of 1

Transcoding issue on MusicCabinet for flac files with images

PostPosted: Fri Mar 01, 2013 4:01 pm
by haven
Hi,

I'm having an issue with transcoding with MusicCabinet using ffmpeg (I've tried various ffpmeg versions from 1.0.3 through to latest git and all had the same issue).

It took a little while to figure it out but it appears to be an issue with playing flac files with embedded pictures. They won't play in music cabinet, but they play fine in other apps. When trying to play in music cabinet the player just hangs (quite often after downloading a file anyway).

I found a related post here: viewtopic.php?f=2&t=9434

Removing the padding and picture via:
Code: Select all
metaflac --remove --block-type=PICTURE,PADDING --dont-use-padding <my flac file>

Meant that subsonic could play the file again.

I assume this is a bug in the way the flac's are being parsed?

Thanks

Re: Transcoding issue on MusicCabinet for flac files with im

PostPosted: Sun Mar 10, 2013 11:42 pm
by hakko
I don't know what to add that's not being explained by BKKKPewsey and GJ51 in that other thread.

Subsonic is built to capture the standard output from ffmpeg (or whatever command you give it). If ffmpeg produces output that's OK when transcoding FLAC -> WAV -> OGG but output that doesn't work when transcoding FLAC -> OGG (in this second approach, ffmpeg tries to keep tags, while it doesn't when producing wav files), then it's not the parsing of FLAC files that is wrong, but rather that ffmpeg produces bad OGG files when the FLAC file contains weird tags?