[FFmpeg-devel] [PATCH] avformat/matroskaenc: change default audio codec for Matroska output

James Almer jamrial at gmail.com
Sat May 20 15:42:33 EEST 2023


Vorbis is not usually supported by Smart TVs, receivers and set top boxes, so
it's not a good idea to have it as the default.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/matroskaenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 41e13b273d..ae05f528e3 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -3431,8 +3431,7 @@ const FFOutputFormat ff_matroska_muxer = {
     .p.mime_type       = "video/x-matroska",
     .p.extensions      = "mkv",
     .priv_data_size    = sizeof(MatroskaMuxContext),
-    .p.audio_codec     = CONFIG_LIBVORBIS_ENCODER ?
-                         AV_CODEC_ID_VORBIS : AV_CODEC_ID_AC3,
+    .p.audio_codec     = AV_CODEC_ID_AC3,
     .p.video_codec     = CONFIG_LIBX264_ENCODER ?
                          AV_CODEC_ID_H264 : AV_CODEC_ID_MPEG4,
     .init              = mkv_init,
-- 
2.40.1



More information about the ffmpeg-devel mailing list