On 02/07/2014 12:43 PM, Andrew Kelley wrote:
Since 2007, the Xipth.org Foundation recommends that .ogg only be used
for Ogg Vorbis audio files.

Source: http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
---
  libavformat/oggenc.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index e96cde7..9e49327 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -616,7 +616,7 @@ AVOutputFormat ff_ogg_muxer = {
      .mime_type         = "application/ogg",
      .extensions        = "ogg,ogv,spx,opus",
      .priv_data_size    = sizeof(OGGContext),
-    .audio_codec       = AV_CODEC_ID_FLAC,
+    .audio_codec       = AV_CODEC_ID_VORBIS,
      .video_codec       = AV_CODEC_ID_THEORA,
      .write_header      = ogg_write_header,
      .write_packet      = ogg_write_packet,

As you can see from .extensions, the ogg muxer isn't only used for .ogg files (although maybe we could add .oga to that list). FLAC was chosen for the default because it is lossless and we have a good native encoder. An alternative could be to default to Vorbis only if the libvorbis encoder is enabled, similar to what we do for H.264 in the mov/mp4 muxer.

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to