diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-01 21:26:49 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-01 21:26:49 +0100 |
commit | 02a2ed296bbf25563f2649a8de1ecadc31106247 (patch) | |
tree | 337b053e3ba019d59ddab1fe71d16d5cc8e730a8 /example-scripts/ffmpeg | |
parent | d7bcba998384590b890908d4e1fe0d5845d5f0c9 (diff) |
Add variable AUDIOCHANNELS.
Diffstat (limited to 'example-scripts/ffmpeg')
3 files changed, 6 insertions, 6 deletions
diff --git a/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh b/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh index f8b1a7b..63bec43 100755 --- a/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh +++ b/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh @@ -13,8 +13,8 @@ fi ffmpeg \ -y -nostdin \ -i tcp://$MIXHOST:11000 \ - -ac 2 -channel_layout 2 -aspect 16:9 \ + -ac $AUDIOCHANNELS -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 \ + -map 0:a -c:a:0 mp2 -b:a:0 192k -ac:a:0 $AUDIOCHANNELS -ar:a:0 48000 \ -flags +global_header -flags +ilme+ildct \ -f segment -segment_time 180 -segment_format mpegts segment-%t-%05d.ts diff --git a/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented.sh b/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented.sh index 4167e92..eaa2f2c 100755 --- a/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented.sh +++ b/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented.sh @@ -9,8 +9,8 @@ fi ffmpeg \ -y -nostdin \ -i tcp://$MIXHOST:11000 \ - -ac 2 -channel_layout 2 -aspect 16:9 \ + -ac $AUDIOCHANNELS -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 \ + -map 0:a -c:a:0 mp2 -b:a:0 192k -ac:a:0 $AUDIOCHANNELS -ar:a:0 48000 \ -flags +global_header -flags +ilme+ildct \ -f segment -segment_time 180 -segment_format mpegts segment-%d.ts diff --git a/example-scripts/ffmpeg/record-mixed-ffmpeg.sh b/example-scripts/ffmpeg/record-mixed-ffmpeg.sh index 81df928..dc60c55 100755 --- a/example-scripts/ffmpeg/record-mixed-ffmpeg.sh +++ b/example-scripts/ffmpeg/record-mixed-ffmpeg.sh @@ -9,8 +9,8 @@ fi ffmpeg \ -y -nostdin \ -i tcp://$MIXHOST:11000 \ - -ac 2 -channel_layout 2 -aspect 16:9 \ + -ac $AUDIOCHANNELS -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 \ + -map 0:a -c:a:0 mp2 -b:a:0 192k -ac:a:0 $AUDIOCHANNELS -ar:a:0 48000 \ -flags +global_header -flags +ilme+ildct \ -f mpegts output.ts |