From 7dfdf794b4d6b6aa0f591e1f171ac0a16eacbe8d Mon Sep 17 00:00:00 2001 From: LongHairedHacker Date: Tue, 16 Jun 2015 19:57:10 +0200 Subject: [PATCH] More test scripts --- scripts/testnetwork.sh | 16 ++++++++++++++++ scripts/tonetwork.sh | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 scripts/testnetwork.sh create mode 100644 scripts/tonetwork.sh diff --git a/scripts/testnetwork.sh b/scripts/testnetwork.sh new file mode 100644 index 0000000..405f272 --- /dev/null +++ b/scripts/testnetwork.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +MIXERFORMAT='video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, format=(fourcc)BGRA, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)1280, height=(int)720, framerate=(fraction)24/1, pixel-aspect-ratio=(fraction)1/1, interlaced=(boolean)false' + +SRC='videotestsrc pattern=snow horizontal-speed=25' + +SCALE='ffmpegcolorspace ! videoscale ! ffmpegcolorspace' + +NETWORK='queue ! timeoverlay ! ffmpegcolorspace ! x264enc tune="zerolatency" ! mpegtsmux ! tcpserversink host=0.0.0.0 port=6666' + +gst-launch-0.10 -v \ + $SRC !\ + $SCALE !\ + $MIXERFORMAT !\ + $NETWORK + diff --git a/scripts/tonetwork.sh b/scripts/tonetwork.sh new file mode 100644 index 0000000..34fd5da --- /dev/null +++ b/scripts/tonetwork.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +MIXERFORMAT='video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, format=(fourcc)BGRA, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)1280, height=(int)720, framerate=(fraction)24/1, pixel-aspect-ratio=(fraction)1/1, interlaced=(boolean)false' + +SRC="filesrc location=../videos/tears_of_steel_720p.mkv ! matroskademux ! h264parse ! ffdec_h264" + +SCALE='ffmpegcolorspace ! videoscale ! ffmpegcolorspace' + +NETWORK='queue ! timeoverlay ! ffmpegcolorspace ! x264enc tune="zerolatency" ! mpegtsmux ! tcpserversink host=0.0.0.0 port=6666' + +gst-launch-0.10 -v \ + $SRC !\ + $SCALE !\ + $MIXERFORMAT !\ + $NETWORK +