aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2018-04-27 03:51:36 +0300
committerKarthick Jeyapal <kjeyapal@akamai.com>2018-05-03 10:40:32 +0530
commit48684d26057ad830f522fc94d073a26067b49e6f (patch)
treeb754aa13d63a2dd82304879624019e14377043ee
parent6f119dc32176e191c7fc796d4c4ca06c7be4ea71 (diff)
downloadffmpeg-48684d26057ad830f522fc94d073a26067b49e6f.tar.gz
lavf/dashenc: require experimental mode to be enabled for WebM
It has not ever been working and has not been validated, Additionally, mention that the segment file names should be changed to end with webm instead of m4s, which is utilized for ISOBMFF fragments.
-rw-r--r--libavformat/dashenc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 4f8f61b704..45f7830aec 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -966,6 +966,16 @@ static int dash_init(AVFormatContext *s)
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");
+
+ if (s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
+ av_log(s, AV_LOG_ERROR,
+ "WebM support in dashenc is experimental and has not "
+ "been validated. For testing purposes, make sure "
+ "to add -strict experimental and override "
+ "-init_seg_name and -media_seg_name to end with "
+ "the extension 'webm'.\n");
+ return AVERROR(EINVAL);
+ }
} else {
snprintf(os->format_name, sizeof(os->format_name), "mp4");
}