summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-testvideo-as-cam2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/ffmpeg/source-testvideo-as-cam2.sh')
-rwxr-xr-xexample-scripts/ffmpeg/source-testvideo-as-cam2.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/example-scripts/ffmpeg/source-testvideo-as-cam2.sh b/example-scripts/ffmpeg/source-testvideo-as-cam2.sh
index 7cb795a..1c72485 100755
--- a/example-scripts/ffmpeg/source-testvideo-as-cam2.sh
+++ b/example-scripts/ffmpeg/source-testvideo-as-cam2.sh
@@ -1,8 +1,13 @@
#!/bin/sh
+. `dirname "$0"`/../config.sh
ffmpeg -y \
-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" \
-ac 2 \
- -af aresample=48000 \
+ -filter_complex "
+ [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v] ;
+ [0:a] aresample=$AUDIORATE [a]
+ " \
+ -map "[v]" -map "[a]" \
-pix_fmt yuv420p \
-c:v rawvideo \
-c:a pcm_s16le \