diff mbox

[FFmpeg-devel,2/2] fate: add a monoscopic spherical matroska test

Message ID 20161208181104.4552-2-jamrial@gmail.com
State Accepted
Commit 06c62ce09c572a5875f6855a4cf1cd1a287d494b
Headers show

Commit Message

James Almer Dec. 8, 2016, 6:11 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
Sample can be found in http://0x0.st/Lpj.mkv

 tests/fate/matroska.mak                |  4 ++++
 tests/ref/fate/matroska-spherical-mono | 16 ++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 tests/ref/fate/matroska-spherical-mono

Comments

Michael Niedermayer Dec. 9, 2016, 3:32 a.m. UTC | #1
On Thu, Dec 08, 2016 at 03:11:04PM -0300, James Almer wrote:
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---

> Sample can be found in http://0x0.st/Lpj.mkv

sample uploaded

[...]
Michael Niedermayer Dec. 9, 2016, 12:17 p.m. UTC | #2
On Thu, Dec 08, 2016 at 03:11:04PM -0300, James Almer wrote:
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
> Sample can be found in http://0x0.st/Lpj.mkv
> 
>  tests/fate/matroska.mak                |  4 ++++
>  tests/ref/fate/matroska-spherical-mono | 16 ++++++++++++++++
>  2 files changed, 20 insertions(+)
>  create mode 100644 tests/ref/fate/matroska-spherical-mono

Tested-by: Michael on linux x86-32/64, qemu-arm, qemu-mips and mingw32/64

[...]
diff mbox

Patch

diff --git a/tests/fate/matroska.mak b/tests/fate/matroska.mak
index 35ed41f..f131f2e 100644
--- a/tests/fate/matroska.mak
+++ b/tests/fate/matroska.mak
@@ -6,4 +6,8 @@  fate-matroska-remux: CMD = md5 -i $(TARGET_SAMPLES)/vp9-test-vectors/vp90-2-2pas
 fate-matroska-remux: CMP = oneline
 fate-matroska-remux: REF = 9b8398b42804ba12c39d2f47299a0996
 
+FATE_MATROSKA_FFPROBE-$(call ALLYES, MATROSKA_DEMUXER) += fate-matroska-spherical-mono
+fate-matroska-spherical-mono: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_entries stream_side_data_list -select_streams v -v 0 $(TARGET_SAMPLES)/mkv/spherical.mkv
+
 FATE_SAMPLES_AVCONV += $(FATE_MATROSKA-yes)
+FATE_SAMPLES_FFPROBE += $(FATE_MATROSKA_FFPROBE-yes)
diff --git a/tests/ref/fate/matroska-spherical-mono b/tests/ref/fate/matroska-spherical-mono
new file mode 100644
index 0000000..9f4b4f8
--- /dev/null
+++ b/tests/ref/fate/matroska-spherical-mono
@@ -0,0 +1,16 @@ 
+[STREAM]
+[SIDE_DATA]
+side_data_type=Stereo 3D
+side_data_size=8
+type=2D
+inverted=0
+[/SIDE_DATA]
+[SIDE_DATA]
+side_data_type=Spherical Mapping
+side_data_size=16
+projection=equirectangular
+yaw=45
+pitch=30
+roll=15
+[/SIDE_DATA]
+[/STREAM]