diff --git a/resources/videos/AspectRatioTest-16-9-ana.h264.mp4 b/resources/videos/AspectRatioTest-16-9-ana.h264.mp4 new file mode 100644 index 000000000..18d2674f6 Binary files /dev/null and b/resources/videos/AspectRatioTest-16-9-ana.h264.mp4 differ diff --git a/resources/videos/AspectRatioTest-16-9-squ.h264.mp4 b/resources/videos/AspectRatioTest-16-9-squ.h264.mp4 new file mode 100644 index 000000000..007e0d92c Binary files /dev/null and b/resources/videos/AspectRatioTest-16-9-squ.h264.mp4 differ diff --git a/resources/videos/AspectRatioTest-16-9-squ.xvid.avi b/resources/videos/AspectRatioTest-16-9-squ.xvid.avi new file mode 100644 index 000000000..019b2cc4c Binary files /dev/null and b/resources/videos/AspectRatioTest-16-9-squ.xvid.avi differ diff --git a/resources/videos/AspectRatioTest-4-3-ana.h264.mp4 b/resources/videos/AspectRatioTest-4-3-ana.h264.mp4 new file mode 100644 index 000000000..aa65750b8 Binary files /dev/null and b/resources/videos/AspectRatioTest-4-3-ana.h264.mp4 differ diff --git a/resources/videos/AspectRatioTest-4-3-squ.h264.mp4 b/resources/videos/AspectRatioTest-4-3-squ.h264.mp4 new file mode 100644 index 000000000..425734a81 Binary files /dev/null and b/resources/videos/AspectRatioTest-4-3-squ.h264.mp4 differ diff --git a/resources/videos/AspectRatioTest-4-3-squ.xvid.avi b/resources/videos/AspectRatioTest-4-3-squ.xvid.avi new file mode 100644 index 000000000..1414b217a Binary files /dev/null and b/resources/videos/AspectRatioTest-4-3-squ.xvid.avi differ diff --git a/resources/videos/AspectRatioTest-rand-squ.h264.mp4 b/resources/videos/AspectRatioTest-rand-squ.h264.mp4 new file mode 100644 index 000000000..943a7e379 Binary files /dev/null and b/resources/videos/AspectRatioTest-rand-squ.h264.mp4 differ diff --git a/resources/videos/left-720.png b/resources/videos/left-720.png new file mode 100644 index 000000000..fe4a6aa91 Binary files /dev/null and b/resources/videos/left-720.png differ diff --git a/resources/videos/normal-720.png b/resources/videos/normal-720.png new file mode 100644 index 000000000..ff11444ec Binary files /dev/null and b/resources/videos/normal-720.png differ diff --git a/resources/videos/right-720.png b/resources/videos/right-720.png new file mode 100644 index 000000000..7347f330f Binary files /dev/null and b/resources/videos/right-720.png differ diff --git a/resources/videos/synctest.24.avs b/resources/videos/synctest.24.avs new file mode 100644 index 000000000..8cb1c0807 --- /dev/null +++ b/resources/videos/synctest.24.avs @@ -0,0 +1,6 @@ +# audio/video sync test +# by: Andrew Lok +# 2009-06-22 + +Import("synctest.avsi") +SyncClip(23.976, 44100) diff --git a/resources/videos/synctest.24.muxed.avi b/resources/videos/synctest.24.muxed.avi new file mode 100644 index 000000000..21daf5273 Binary files /dev/null and b/resources/videos/synctest.24.muxed.avi differ diff --git a/resources/videos/synctest.24.muxed.mp4 b/resources/videos/synctest.24.muxed.mp4 new file mode 100644 index 000000000..32936d3d9 Binary files /dev/null and b/resources/videos/synctest.24.muxed.mp4 differ diff --git a/resources/videos/synctest.25.avs b/resources/videos/synctest.25.avs new file mode 100644 index 000000000..8f9e9a170 --- /dev/null +++ b/resources/videos/synctest.25.avs @@ -0,0 +1,6 @@ +# audio/video sync test +# by: Andrew Lok +# 2009-06-22 + +Import("synctest.avsi") +SyncClip(25, 48000) diff --git a/resources/videos/synctest.25.muxed.avi b/resources/videos/synctest.25.muxed.avi new file mode 100644 index 000000000..5fc863a1a Binary files /dev/null and b/resources/videos/synctest.25.muxed.avi differ diff --git a/resources/videos/synctest.30.avs b/resources/videos/synctest.30.avs new file mode 100644 index 000000000..0a752e134 --- /dev/null +++ b/resources/videos/synctest.30.avs @@ -0,0 +1,6 @@ +# audio/video sync test +# by: Andrew Lok +# 2009-06-22 + +Import("synctest.avsi") +SyncClip(29.97, 32000) diff --git a/resources/videos/synctest.30.muxed.avi b/resources/videos/synctest.30.muxed.avi new file mode 100644 index 000000000..c79fedc99 Binary files /dev/null and b/resources/videos/synctest.30.muxed.avi differ diff --git a/resources/videos/synctest.30.small.avs b/resources/videos/synctest.30.small.avs new file mode 100644 index 000000000..546267c82 --- /dev/null +++ b/resources/videos/synctest.30.small.avs @@ -0,0 +1,7 @@ +# audio/video sync test +# by: Andrew Lok +# 2009-06-22 + +Import("synctest.avsi") +SyncClip(29.97, 22050) +BicubicResize(640,360) diff --git a/resources/videos/synctest.30.small.muxed.avi b/resources/videos/synctest.30.small.muxed.avi new file mode 100644 index 000000000..479443b32 Binary files /dev/null and b/resources/videos/synctest.30.small.muxed.avi differ diff --git a/resources/videos/synctest.avsi b/resources/videos/synctest.avsi new file mode 100644 index 000000000..d31d158e9 --- /dev/null +++ b/resources/videos/synctest.avsi @@ -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 +}