openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #00128
[Merge] lp:~thealok/openlp/videotests into lp:openlp
ALok has proposed merging lp:~thealok/openlp/videotests into lp:openlp.
Requested reviews:
openlp.org Core (openlp-core)
Video test suite:
Aspect ratio tests.
Audio video sync tests.
--
https://code.launchpad.net/~thealok/openlp/videotests/+merge/7918
Your team openlp.org Core is subscribed to branch lp:openlp.
=== added directory 'resources/videos'
=== added file 'resources/videos/AspectRatioTest-16-9-ana.h264.mp4'
Binary files resources/videos/AspectRatioTest-16-9-ana.h264.mp4 1970-01-01 00:00:00 +0000 and resources/videos/AspectRatioTest-16-9-ana.h264.mp4 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/AspectRatioTest-16-9-squ.h264.mp4'
Binary files resources/videos/AspectRatioTest-16-9-squ.h264.mp4 1970-01-01 00:00:00 +0000 and resources/videos/AspectRatioTest-16-9-squ.h264.mp4 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/AspectRatioTest-16-9-squ.xvid.avi'
Binary files resources/videos/AspectRatioTest-16-9-squ.xvid.avi 1970-01-01 00:00:00 +0000 and resources/videos/AspectRatioTest-16-9-squ.xvid.avi 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/AspectRatioTest-4-3-ana.h264.mp4'
Binary files resources/videos/AspectRatioTest-4-3-ana.h264.mp4 1970-01-01 00:00:00 +0000 and resources/videos/AspectRatioTest-4-3-ana.h264.mp4 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/AspectRatioTest-4-3-squ.h264.mp4'
Binary files resources/videos/AspectRatioTest-4-3-squ.h264.mp4 1970-01-01 00:00:00 +0000 and resources/videos/AspectRatioTest-4-3-squ.h264.mp4 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/AspectRatioTest-4-3-squ.xvid.avi'
Binary files resources/videos/AspectRatioTest-4-3-squ.xvid.avi 1970-01-01 00:00:00 +0000 and resources/videos/AspectRatioTest-4-3-squ.xvid.avi 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/AspectRatioTest-rand-squ.h264.mp4'
Binary files resources/videos/AspectRatioTest-rand-squ.h264.mp4 1970-01-01 00:00:00 +0000 and resources/videos/AspectRatioTest-rand-squ.h264.mp4 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/left-720.png'
Binary files resources/videos/left-720.png 1970-01-01 00:00:00 +0000 and resources/videos/left-720.png 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/normal-720.png'
Binary files resources/videos/normal-720.png 1970-01-01 00:00:00 +0000 and resources/videos/normal-720.png 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/right-720.png'
Binary files resources/videos/right-720.png 1970-01-01 00:00:00 +0000 and resources/videos/right-720.png 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/synctest.24.avs'
--- resources/videos/synctest.24.avs 1970-01-01 00:00:00 +0000
+++ resources/videos/synctest.24.avs 2009-06-25 23:34:49 +0000
@@ -0,0 +1,6 @@
+# audio/video sync test
+# by: Andrew Lok
+# 2009-06-22
+
+Import("synctest.avsi")
+SyncClip(23.976, 44100)
=== added file 'resources/videos/synctest.24.muxed.avi'
Binary files resources/videos/synctest.24.muxed.avi 1970-01-01 00:00:00 +0000 and resources/videos/synctest.24.muxed.avi 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/synctest.24.muxed.mp4'
Binary files resources/videos/synctest.24.muxed.mp4 1970-01-01 00:00:00 +0000 and resources/videos/synctest.24.muxed.mp4 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/synctest.25.avs'
--- resources/videos/synctest.25.avs 1970-01-01 00:00:00 +0000
+++ resources/videos/synctest.25.avs 2009-06-25 23:34:49 +0000
@@ -0,0 +1,6 @@
+# audio/video sync test
+# by: Andrew Lok
+# 2009-06-22
+
+Import("synctest.avsi")
+SyncClip(25, 48000)
=== added file 'resources/videos/synctest.25.muxed.avi'
Binary files resources/videos/synctest.25.muxed.avi 1970-01-01 00:00:00 +0000 and resources/videos/synctest.25.muxed.avi 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/synctest.30.avs'
--- resources/videos/synctest.30.avs 1970-01-01 00:00:00 +0000
+++ resources/videos/synctest.30.avs 2009-06-25 23:34:49 +0000
@@ -0,0 +1,6 @@
+# audio/video sync test
+# by: Andrew Lok
+# 2009-06-22
+
+Import("synctest.avsi")
+SyncClip(29.97, 32000)
=== added file 'resources/videos/synctest.30.muxed.avi'
Binary files resources/videos/synctest.30.muxed.avi 1970-01-01 00:00:00 +0000 and resources/videos/synctest.30.muxed.avi 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/synctest.30.small.avs'
--- resources/videos/synctest.30.small.avs 1970-01-01 00:00:00 +0000
+++ resources/videos/synctest.30.small.avs 2009-06-25 23:34:49 +0000
@@ -0,0 +1,7 @@
+# audio/video sync test
+# by: Andrew Lok
+# 2009-06-22
+
+Import("synctest.avsi")
+SyncClip(29.97, 22050)
+BicubicResize(640,360)
=== added file 'resources/videos/synctest.30.small.muxed.avi'
Binary files resources/videos/synctest.30.small.muxed.avi 1970-01-01 00:00:00 +0000 and resources/videos/synctest.30.small.muxed.avi 2009-06-25 23:34:49 +0000 differ
=== added file 'resources/videos/synctest.avsi'
--- resources/videos/synctest.avsi 1970-01-01 00:00:00 +0000
+++ resources/videos/synctest.avsi 2009-06-25 23:34:49 +0000
@@ -0,0 +1,47 @@
+# audio/video sync test
+# by: Andrew Lok
+# 2009-06-22
+
+#
+# This code is part of OpenLP's testsuite
+# OpenLP - Open Source Lyrics Projection
+# Copyright (c) 2009 Andrew Lok
+#
+# This program is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free Software
+# Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+function SyncClip(float framerate, int audiorate)
+{
+ frames=30
+ seconds=frames/framerate
+
+ silence = Tone(seconds, 440, audiorate, 1, "silence", 1.0)
+ tone = Tone(seconds, 440, audiorate, 1, "sine", 1.0)
+
+ silence2 = MonoToStereo(silence, silence)
+ left = MonoToStereo(tone, silence)
+ right = MonoToStereo(silence, tone)
+
+ leftvid=ImageSource("left-720.png",end = frames, fps=framerate, use_DevIL=true)
+ rightvid=ImageSource("right-720.png",end = frames, fps=framerate, use_DevIL=true)
+ normalvid=ImageSource("normal-720.png",end = frames, fps=framerate, use_DevIL=true)
+
+ cycle = AudioDub(leftvid,left) ++ AudioDub(normalvid,silence2) ++ AudioDub(rightvid,right) ++ AudioDub(normalvid,silence2)
+
+ final = loop(cycle,times=5)
+
+ final = final.ConvertToYV12()
+ final = final.info()
+
+ return final
+}
Follow ups