diff options
author | MaZderMind <git@mazdermind.de> | 2015-05-20 10:52:35 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2015-05-20 10:52:35 +0200 |
commit | 233bad8cfecde0d5f42cdfdb99d3b78562ee5a39 (patch) | |
tree | 4f7971d2032b7b06d1385ce9f70d7f3185398d03 | |
parent | 55b975d3d9bf8db48fb09e2ed9da5e70b59cc55d (diff) |
example script streaming hd-h264 via rtmp local relay
-rwxr-xr-x | voctocore/scripts/av-stream-hd.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/voctocore/scripts/av-stream-hd.sh b/voctocore/scripts/av-stream-hd.sh new file mode 100755 index 0000000..d6b212b --- /dev/null +++ b/voctocore/scripts/av-stream-hd.sh @@ -0,0 +1,12 @@ +#!/bin/sh +ffmpeg -i tcp://localhost:11000 -aspect 16:9 -threads:0 0 \ +-c:v libx264 \ +-filter_complex " + yadif=mode=2, hqdn3d [deinter]; + movie=$HOME/overlay_hd.png [logo]; + [deinter] [logo] overlay=0:0 [out] +" -map '[out]' -maxrate:v:0 3000k -bufsize:v:0 8192k -crf:0 21 -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/s1_native_hd |