From a9b10e1510ddfcae5119e616e0cc60350c99467c Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Date: Wed, 1 Oct 2014 10:13:32 -0700 Subject: lavf/webm_dash: some fields should go into Representation Width, Height and Sample Rate should be in the AdaptationSet tag only if all the contained representations have the same width, height and sampling rate. Otherwise they should go into the Representation tag. This patch adds this functionality and a fate test for the same. Signed-off-by: Vignesh Venkatasubramanian Signed-off-by: Michael Niedermayer --- tests/fate/vpx.mak | 3 +++ tests/ref/fate/webm-dash-manifest-representations | 30 +++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 tests/ref/fate/webm-dash-manifest-representations (limited to 'tests') diff --git a/tests/fate/vpx.mak b/tests/fate/vpx.mak index 0f84ef5ac3..be3e95672b 100644 --- a/tests/fate/vpx.mak +++ b/tests/fate/vpx.mak @@ -37,6 +37,9 @@ fate-webm-dash-manifest-unaligned-video-streams: CMD = run ffmpeg -f webm_dash_m FATE_VP8-$(call DEMDEC, WEBM_DASH_MANIFEST, VP8) += fate-webm-dash-manifest-unaligned-audio-streams fate-webm-dash-manifest-unaligned-audio-streams: CMD = run ffmpeg -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_audio1.webm -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_audio3.webm -c copy -map 0 -map 1 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1" - +FATE_VP8-$(call DEMDEC, WEBM_DASH_MANIFEST, VP8) += fate-webm-dash-manifest-representations +fate-webm-dash-manifest-representations: CMD = run ffmpeg -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_video1.webm -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_video4.webm -c copy -map 0 -map 1 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1" - + FATE_SAMPLES_AVCONV += $(FATE_VP6-yes) fate-vp6: $(FATE_VP6-yes) diff --git a/tests/ref/fate/webm-dash-manifest-representations b/tests/ref/fate/webm-dash-manifest-representations new file mode 100644 index 0000000000..8556ecebee --- /dev/null +++ b/tests/ref/fate/webm-dash-manifest-representations @@ -0,0 +1,30 @@ + + + + + +dash_video1.webm + + + + + +dash_video4.webm + + + + + + + -- cgit v1.2.3