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