aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-testvideo-as-cam2.sh
blob: dec6a9f912407fc5233d1a2e2262cfa3076c1dfd (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-1003-de-Freak_Show_FS147_That_Escalatored_Quickly_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:10001