From 4ddbb55eac513c1863a453a8d21cd6c8dc167661 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 29 Jan 2016 17:59:34 +0100 Subject: add a global resolution-config for all example-scripts --- example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh') diff --git a/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh b/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh index 14d9f6c..f100cb0 100755 --- a/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh +++ b/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh @@ -1,4 +1,5 @@ #!/bin/sh +. `dirname "$0"`/../config.sh gst-launch-1.0 \ uridecodebin \ uri=http://c3voc.mazdermind.de/testfiles/avsync.mp4 \ @@ -8,7 +9,7 @@ gst-launch-1.0 \ queue !\ videoconvert !\ videoscale !\ - video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 ! \ + video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \ mux. \ \ src. !\ @@ -16,7 +17,7 @@ gst-launch-1.0 \ audioconvert !\ audioresample !\ audiorate !\ - audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\ + audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=$AUDIORATE !\ mux. \ \ matroskamux name=mux !\ -- cgit v1.2.3