aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh
blob: 55a504ccf6ded36d2c80c2962afcf6b30775ef58 (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. wget -nc -O /tmp/avsync.ts http://c3voc.mazdermind.de/testfiles/avsync.ts
  8. (while true; do cat /tmp/avsync.ts || exit; done) | ffmpeg -y -nostdin \
  9. -i - \
  10. -filter_complex "
  11. [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v] ;
  12. [0:a] aresample=$AUDIORATE [a]
  13. " \
  14. -map "[v]" -map "[a]" \
  15. -c:v rawvideo \
  16. -c:a pcm_s16le \
  17. -pix_fmt yuv420p \
  18. -f matroska \
  19. tcp://localhost:10000