aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/record-mixed-av.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/gstreamer/record-mixed-av.sh')
-rwxr-xr-xexample-scripts/gstreamer/record-mixed-av.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/example-scripts/gstreamer/record-mixed-av.sh b/example-scripts/gstreamer/record-mixed-av.sh
new file mode 100755
index 0000000..b8818c6
--- /dev/null
+++ b/example-scripts/gstreamer/record-mixed-av.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+gst-launch-1.0 \
+ tcpclientsrc host=localhost port=11000 !\
+ matroskademux name=demux \
+ \
+ demux. !\
+ queue !\
+ videoconvert !\
+ 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