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