Streaming Apple Lossless to Unsupporting Clients
Posted: Fri Aug 03, 2007 2:44 am
Just bought twonkyvision, and I'm happy with it so far, especially the transcoding.
I took the cgi-flac model and created a similar construct for transcoding Apple Lossless to WAV. The plugin itself seems to work, but now I have a problem with clients that support M4A but not Apple Lossless. (Apple Lossless uses the M4A container, but a proprietary codec.)
The problem is that Apple Lossless files are reported with the "audio/m4a" mime type, and since the client supports m4a, it doesn't ask for a wav version, and thus twonkyvision doesn't try to transcode the m4a to wav. The client then discovers that it can't support the file, and subsequently gives up.
I need a way to force twonkyvision to transcode the file to wav regardless of whether or not the client thinks it can support it. Is there any way to "force" transcoding? Or is there another solution to this problem? Or can I force Apple Lossless files to map to a different mime type?
I took the cgi-flac model and created a similar construct for transcoding Apple Lossless to WAV. The plugin itself seems to work, but now I have a problem with clients that support M4A but not Apple Lossless. (Apple Lossless uses the M4A container, but a proprietary codec.)
The problem is that Apple Lossless files are reported with the "audio/m4a" mime type, and since the client supports m4a, it doesn't ask for a wav version, and thus twonkyvision doesn't try to transcode the m4a to wav. The client then discovers that it can't support the file, and subsequently gives up.
I need a way to force twonkyvision to transcode the file to wav regardless of whether or not the client thinks it can support it. Is there any way to "force" transcoding? Or is there another solution to this problem? Or can I force Apple Lossless files to map to a different mime type?