[FFmpeg-devel] [PATCH 2/2] Support playing SMV files.

Ash Hughes ashes-iontach at hotmail.com
Fri May 24 16:06:00 CEST 2013


Attached is a patch with the test in video.mak, using a conversion of clock.avi to smv, available at https://www.dropbox.com/s/2zsv9r02ou6189o/clock.smv

Ash
---
>From 5f183f11f9703b6d351340c218d20d9487424bff Mon Sep 17 00:00:00 2001
From: Ash Hughes <ashes-iontach at hotmail.com>
Date: Fri, 24 May 2013 14:50:30 +0100
Subject: [PATCH] add wav demux/SMV fate test

---
 tests/fate/video.mak   |    3 +++
 tests/ref/fate/smvjpeg |   13 +++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 tests/ref/fate/smvjpeg

diff --git a/tests/fate/video.mak b/tests/fate/video.mak
index ca0789b..39ff207 100644
--- a/tests/fate/video.mak
+++ b/tests/fate/video.mak
@@ -287,6 +287,9 @@ fate-yop: CMD = framecrc -i $(SAMPLES)/yop/test1.yop -pix_fmt rgb24 -an
 FATE_VIDEO-$(call DEMDEC, AVI, XAN_WC4) += fate-xxan-wc4
 fate-xxan-wc4: CMD = framecrc -i $(SAMPLES)/wc4-xan/wc4trailer-partial.avi -an
 
+FATE_VIDEO-$(call DEMDEC, WAV, SMVJPEG) += fate-smvjpeg
+fate-smvjpeg: CMD = framecrc -i $(SAMPLES)/smv/clock.smv -an
+
 FATE_VIDEO += $(FATE_VIDEO-yes)
 
 FATE_SAMPLES_FFMPEG += $(FATE_VIDEO)
diff --git a/tests/ref/fate/smvjpeg b/tests/ref/fate/smvjpeg
new file mode 100644
index 0000000..e941233
--- /dev/null
+++ b/tests/ref/fate/smvjpeg
@@ -0,0 +1,13 @@
+#tb 0: 1/1
+0,          0,          0,        1,    30720, 0x3a821807
+0,          1,          1,        1,    30720, 0x80248e58
+0,          2,          2,        1,    30720, 0xd4d98e45
+0,          3,          3,        1,    30720, 0x0bcba7e7
+0,          4,          4,        1,    30720, 0xb832a22d
+0,          5,          5,        1,    30720, 0x1f3eb488
+0,          6,          6,        1,    30720, 0x6429ce43
+0,          7,          7,        1,    30720, 0xf44da231
+0,          8,          8,        1,    30720, 0x5c02aeff
+0,          9,          9,        1,    30720, 0x4c7b1c9a
+0,         10,         10,        1,    30720, 0x6f7a8313
+0,         11,         11,        1,    30720, 0xaa32fd72
-- 
1.7.1


> Date: Thu, 23 May 2013 21:59:05 -0300
> From: jamrial at gmail.com
> To: ffmpeg-devel at ffmpeg.org
> Subject: Re: [FFmpeg-devel] [PATCH 2/2] Support playing SMV files.
> 
> On 23/05/13 8:39 PM, Ash Hughes wrote:
> > Hi,
> > 
> > Here's a fate test, I hope it's acceptable. Also, if it's suitable, please add apple.smv from http://multimedia.cx/samples/smv/ to fate $(SAMPLES)/smv/
> > 
> > 
> > Thanks,
> > 
> > Ash
> > 
> [...]
> > +FATE_SAMPLES_DEMUX-$(CONFIG_WAV_DEMUXER) += fate-wav-demux
> > +fate-wav-demux: CMD = framecrc -i $(SAMPLES)/smv/apple.smv -c copy
> > +
> 
> You want to test a decoder, not a demuxer. You should instead add a test to 
> video.mak, something like
> 
> FATE_VIDEO-$(call DEMDEC, WAV, SMVJPEG) += fate-smvjpeg
> fate-smvjpeg: CMD = framecrc -i $(SAMPLES)/smv/apple.smv -an
> 
> Plus any extra commands it might need (-pix_fmt or such).
> Also, like Michael asked, try to get a smaller file since 6mb is a bit much.
> You can use dd to cut the file down if you don't have any other sample.
> 
> Regards.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 		 	   		  


More information about the ffmpeg-devel mailing list