summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-testvideo-as-cam2.sh
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-01-29 17:59:34 +0100
committerMaZderMind <git@mazdermind.de>2016-01-29 17:59:34 +0100
commit4ddbb55eac513c1863a453a8d21cd6c8dc167661 (patch)
tree29e31ec4e17f3929342deffbbd611494934d19d8 /example-scripts/ffmpeg/source-testvideo-as-cam2.sh
parentb3d585c78a3c8245232ddbd28a88f4130f8ca5a5 (diff)
add a global resolution-config for all example-scripts
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 \