[FFmpeg-devel] [PATCH 2/2] avformat/dashenc: Set mp4 as the default format for VP9

Karthick J kjeyapal at akamai.com
Wed Apr 18 15:03:26 EEST 2018


From: Karthick Jeyapal <kjeyapal at akamai.com>

There is a separate muxer(webmdashenc.c) for supporting VP9+webm output in DASH.
Hence in this muxer we will focus on supporting VP9 in MP4
Have verified playout support of VP9+MP4 in Chrome and Firefox.
---
 libavformat/dashenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 5443e31..301ea1a 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1016,11 +1016,10 @@ static int dash_init(AVFormatContext *s)
         if (!ctx)
             return AVERROR(ENOMEM);
 
-        // choose muxer based on codec: webm for VP8/9 and opus, mp4 otherwise
+        // choose muxer based on codec: webm for VP8 and opus, mp4 otherwise
         // note: os->format_name is also used as part of the mimetype of the
         //       representation, e.g. video/<format_name>
         if (s->streams[i]->codecpar->codec_id == AV_CODEC_ID_VP8 ||
-            s->streams[i]->codecpar->codec_id == AV_CODEC_ID_VP9 ||
             s->streams[i]->codecpar->codec_id == AV_CODEC_ID_OPUS ||
             s->streams[i]->codecpar->codec_id == AV_CODEC_ID_VORBIS) {
             snprintf(os->format_name, sizeof(os->format_name), "webm");
-- 
2.7.4



More information about the ffmpeg-devel mailing list