From 39c8cb3a0e3813ef77c61c601d0028281c04ad2d Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 6 Dec 2015 20:28:02 +0100 Subject: [example-scripts] overhaul and test all example scripts, fixes #5 --- example-scripts/ffmpeg/stream-sd.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 example-scripts/ffmpeg/stream-sd.sh (limited to 'example-scripts/ffmpeg/stream-sd.sh') diff --git a/example-scripts/ffmpeg/stream-sd.sh b/example-scripts/ffmpeg/stream-sd.sh new file mode 100755 index 0000000..e5a0106 --- /dev/null +++ b/example-scripts/ffmpeg/stream-sd.sh @@ -0,0 +1,22 @@ +#!/bin/sh +wget -nc -O /tmp/overlay_hd.png http://c3voc.mazdermind.de/testfiles/overlay_hd.png +ffmpeg -y \ + -i tcp://localhost:11000 \ + -threads:0 0 \ + -aspect 16:9 \ + -c:v libx264 \ + -filter_complex ' + [0:v] yadif=mode=2, hqdn3d, scale=720:576 [deinter]; + movie=/tmp/overlay_hd.png [logo]; + [deinter] [logo] overlay=0:0 [out] + ' \ + -map '[out]' \ + -maxrate:v:0 800k -bufsize:v:0 8192k -crf:0 18 \ + -pix_fmt:0 yuv420p -profile:v:0 main -g:v:0 25 \ + -preset:v:0 veryfast \ + \ + -ac 1 -c:a libfdk_aac -b:a 96k -ar 44100 \ + -map 0:a -filter:a:0 pan=mono:c0=FL \ + -ac:a:2 2 \ + \ + -y -f flv rtmp://127.0.0.1:1935/stream/voctomix_hd -- cgit v1.2.3