aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/record-mixed-ffmpeg.sh
blob: dc60c555c9eec6113ecaa57e541ec9410a7f0df2 (plain)
  1. #!/bin/sh
  2. confdir="`dirname "$0"`/../"
  3. . $confdir/default-config.sh
  4. if [ -f $confdir/config.sh ]; then
  5. . $confdir/config.sh
  6. fi
  7. ffmpeg \
  8. -y -nostdin \
  9. -i tcp://$MIXHOST:11000 \
  10. -ac $AUDIOCHANNELS -channel_layout 2 -aspect 16:9 \
  11. -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 \
  12. -map 0:a -c:a:0 mp2 -b:a:0 192k -ac:a:0 $AUDIOCHANNELS -ar:a:0 48000 \
  13. -flags +global_header -flags +ilme+ildct \
  14. -f mpegts output.ts