diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-02-27 20:54:00 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-02-27 20:54:00 +0000 |
commit | 6ce57b47f050c39fbf28f4af639ef19608a74cfa (patch) | |
tree | b6ef01437b5b8d9f0038ce9965792f7e69eb86f1 /example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh | |
parent | f953824dd2a18f15c2beeb5bd792f5f13fb75a44 (diff) |
Use voctobox (not localhost) as voctocore host.
Diffstat (limited to 'example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh')
-rwxr-xr-x | example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh b/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh index 48d8d1f..f8b1a7b 100755 --- a/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh +++ b/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh @@ -1,12 +1,18 @@ #!/bin/sh +confdir="`dirname "$0"`/../" +. $confdir/default-config.sh +if [ -f $confdir/config.sh ]; then + . $confdir/config.sh +fi + # WARNING: Using '%t' in the output filename requires a patched FFmpeg! # If this command fails with the message 'Invalid segment filename template', # you do not have such a FFmpeg version. ffmpeg \ -y -nostdin \ - -i tcp://localhost:11000 \ + -i tcp://$MIXHOST: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 7 -keyint_min 0 -bf:0 0 -g:0 0 -intra:0 -maxrate:0 90M \ -map 0:a -c:a:0 mp2 -b:a:0 192k -ac:a:0 2 -ar:a:0 48000 \ |