aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh
blob: e9ea13e4e9d4b46001388bb1488eac5889bf64c7 (plain)
  1. #!/bin/sh
  2. `dirname "$0"`/../config.sh
  3. wget -nc -O /tmp/avsync.ts http://c3voc.mazdermind.de/testfiles/avsync.ts
  4. (while true; do cat /tmp/avsync.ts || exit; done) | ffmpeg -y -nostdin \
  5. -i - \
  6. -filter_complex "
  7. [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v] ;
  8. [0:a] aresample=$AUDIORATE [a]
  9. " \
  10. -map "[v]" -map "[a]" \
  11. -c:v rawvideo \
  12. -c:a pcm_s16le \
  13. -pix_fmt yuv420p \
  14. -f matroska \
  15. tcp://localhost:10000