diff options
Diffstat (limited to 'example-scripts/ffmpeg/source-testvideo-as-cam1.sh')
-rwxr-xr-x | example-scripts/ffmpeg/source-testvideo-as-cam1.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/example-scripts/ffmpeg/source-testvideo-as-cam1.sh b/example-scripts/ffmpeg/source-testvideo-as-cam1.sh index ef73a08..bd68933 100755 --- a/example-scripts/ffmpeg/source-testvideo-as-cam1.sh +++ b/example-scripts/ffmpeg/source-testvideo-as-cam1.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-1013-de-Methodisch_inkorrekt_Die_falsche_42_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 \ |