summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh
blob: 4de3f8316148a8c581b8e40f4ed90644680b1730 (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 \
  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