W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] Including FLAC output in Audio Specs

From: Charles Pritchard <chuck@jumis.com>
Date: Wed, 12 Oct 2011 09:18:24 -0700
Message-ID: <4E95BDD0.7010306@jumis.com>
Currently, PNG and the Canvas tag set a solid precedent for including a 
lossless file format in media APIs. The PNG format, at its most basic, 
simply compresses a bitmap using deflate.

I'd like to see the same precedent followed in some of the new media 
APIs. FLAC provides a lossless audio format which can be used to package 
audio data from items like the MediaStream .record method.

How would we go about adding this into specifications?

I'll point out that many vendors support JPEG in addition to PNG, but 
that's not part of the specs, and it is a lossy format. It'd be nice to 
see something like Speex supported by vendors on audio APIs, but like 
JPEG, it's something that should remain a lesser priority to supporting 
a lossless format.

MediaStream record seems like it could accept a mime type, much as 
toBlob / toDataURL do on Canvas. That's one possible point of entry.

Does anyone have feedback on this issue? Is there any push-back out 
there on supporting FLAC as a baseline format for <audio> input and 
output? Obviously, it is bandwidth heavy, as is PNG.


-Charles
Received on Wednesday, 12 October 2011 09:18:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC