summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-06-16 15:09:43 +0200
committerMaZderMind <github@mazdermind.de>2015-06-16 15:09:43 +0200
commit63a26d8b0afb759bcd3c256266a2cc1439e672bf (patch)
tree8a1c045d10980248be5a0de5b044383eadf2fe77
parent9cafc03cc2a0b743b8e7f66b7a04266f7b43cdb9 (diff)
example scripts sourcing avsync video clip
-rwxr-xr-xvoctocore/scripts/av-source-avsync-ffmpeg-noloop.sh8
-rwxr-xr-xvoctocore/scripts/av-source-avsync-ffmpeg.sh8
2 files changed, 16 insertions, 0 deletions
diff --git a/voctocore/scripts/av-source-avsync-ffmpeg-noloop.sh b/voctocore/scripts/av-source-avsync-ffmpeg-noloop.sh
new file mode 100755
index 0000000..2183f35
--- /dev/null
+++ b/voctocore/scripts/av-source-avsync-ffmpeg-noloop.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+ffmpeg -y \
+ -i $HOME/avsync.ts \
+ -vf scale=1920x1080 \
+ -c:v rawvideo \
+ -c:a pcm_s16le \
+ -f matroska \
+ tcp://localhost:10000
diff --git a/voctocore/scripts/av-source-avsync-ffmpeg.sh b/voctocore/scripts/av-source-avsync-ffmpeg.sh
new file mode 100755
index 0000000..d4e848b
--- /dev/null
+++ b/voctocore/scripts/av-source-avsync-ffmpeg.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+(while true; do cat $HOME/avsync.ts || exit; done) | ffmpeg -y \
+ -i - \
+ -vf scale=1920x1080 \
+ -c:v rawvideo \
+ -c:a pcm_s16le \
+ -f matroska \
+ tcp://localhost:10000