aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-testvideo-as-cam1.sh
blob: 33dd7f885cef4a2fa71f594f85d324e5aef97e04 (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://ftp.uni-erlangen.de/cdn.media.ccc.de/broadcast/sendezentrum/h264-hd/31c3-sendezentrum-1013-de-Methodisch_inkorrekt_Die_falsche_42_hd.mp4" \
  9. -ac 2 \
  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. -pix_fmt yuv420p \
  16. -c:v rawvideo \
  17. -c:a pcm_s16le \
  18. -f matroska \
  19. tcp://localhost:10000