aboutsummaryrefslogtreecommitdiff
path: root/voctocore/scripts
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-14 17:30:49 +0200
committerMaZderMind <github@mazdermind.de>2015-05-14 17:30:49 +0200
commitcc84921f31be141ad74da7ba8f00e90407aeea71 (patch)
tree3a74922b308d44dab99cf4f11c60c3cb09e0ed2b /voctocore/scripts
parentfbd6d801ed08d560e050c48048e419be6fd35e3a (diff)
Recording Example-Scripts, including ffmpeg examples
Diffstat (limited to 'voctocore/scripts')
-rwxr-xr-xvoctocore/scripts/av-play-output-ffplay.sh2
-rwxr-xr-xvoctocore/scripts/av-record-output-ffmpeg.sh8
-rwxr-xr-xvoctocore/scripts/av-record-output.sh22
3 files changed, 32 insertions, 0 deletions
diff --git a/voctocore/scripts/av-play-output-ffplay.sh b/voctocore/scripts/av-play-output-ffplay.sh
new file mode 100755
index 0000000..733c279
--- /dev/null
+++ b/voctocore/scripts/av-play-output-ffplay.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+ffplay tcp://localhost:11000
diff --git a/voctocore/scripts/av-record-output-ffmpeg.sh b/voctocore/scripts/av-record-output-ffmpeg.sh
new file mode 100755
index 0000000..923d6a2
--- /dev/null
+++ b/voctocore/scripts/av-record-output-ffmpeg.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+ffmpeg \
+ -i tcp://localhost:11000 \
+ -ac 2 -channel_layout 2 -aspect 16:9 \
+ -map 0:v -c:v:0 mpeg2video -pix_fmt:v:0 yuv422p -qscale:v:0 2 -qmin:v:0 2 -qmax:v:0 5 -keyint_min 0 -bf:0 0 -g:0 0 -intra:0 -maxrate:0 50M \
+ -map 0:a -c:a:0 mp2 -b:a:0 192k -ac:a:0 2 -ar:a:0 48000 \
+ -flags +global_header -flags +ilme+ildct \
+ -f segment -segment_time 180 -segment_format mpegts segment-%d.ts
diff --git a/voctocore/scripts/av-record-output.sh b/voctocore/scripts/av-record-output.sh
new file mode 100755
index 0000000..016e5a8
--- /dev/null
+++ b/voctocore/scripts/av-record-output.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+gst-launch-1.0 \
+ tcpclientsrc host=localhost port=11000 !\
+ matroskademux name=demux \
+ \
+ demux. !\
+ queue !\
+ textoverlay halignment=left valignment=top ypad=250 text=Recording !\
+ timeoverlay halignment=left valignment=top ypad=250 xpad=400 !\
+ avenc_mpeg2video bitrate=5000000 max-key-interval=0 !\
+ queue !\
+ mux. \
+ \
+ demux. !\
+ queue !\
+ audioconvert !\
+ avenc_mp2 bitrate=192000 !\
+ queue !\
+ mux. \
+ \
+ mpegtsmux name=mux !\
+ filesink location=foo.ts