aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-testvideo-as-cam1.sh
blob: 452e0f34255aa7a807300d36e4504edbc3a66d53 (plain)
  1. #!/bin/sh
  2. `dirname "$0"`/../config.sh
  3. ffmpeg -y -nostdin \
  4. -i "http://ftp.uni-erlangen.de/cdn.media.ccc.de/broadcast/sendezentrum/h264-hd/31c3-sendezentrum-1013-de-Methodisch_inkorrekt_Die_falsche_42_hd.mp4" \
  5. -ac 2 \
  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. -pix_fmt yuv420p \
  12. -c:v rawvideo \
  13. -c:a pcm_s16le \
  14. -f matroska \
  15. tcp://localhost:10000