summaryrefslogtreecommitdiff
path: root/bin/captureDVCAM+edit+encode+stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-27 21:19:35 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-27 21:19:35 +0200
commit2a70d239d48f8644eede497bbc1c04a03fda9ab9 (patch)
treef0ac32731d9680ab0dc2b30e5857df1e8f6a565d /bin/captureDVCAM+edit+encode+stream
parent8db8e07720e182ef4cadf37c950819411f63f5ed (diff)
Adapt to capture iec61883 content (DVCAM).
Diffstat (limited to 'bin/captureDVCAM+edit+encode+stream')
-rwxr-xr-xbin/captureDVCAM+edit+encode+stream7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/captureDVCAM+edit+encode+stream b/bin/captureDVCAM+edit+encode+stream
index fd143c2..4bf2e4d 100755
--- a/bin/captureDVCAM+edit+encode+stream
+++ b/bin/captureDVCAM+edit+encode+stream
@@ -27,12 +27,11 @@ VBITRATE=256000
# + Add 1s latency (deadline)
# + Use same RTP payload types as GStreamer
ffmpeg -hide_banner -threads auto -re \
- -f alsa -sample_rate "$AFRAMERATE" -channels "$ACHANNELS" -thread_queue_size 1024 -i "$AINPUT" \
- -f libdc1394 -video_size 640x480 -framerate 15 -thread_queue_size 256 -i "$VINPUT" \
+ -f iec61883 -i auto \
-i "$LOGO" \
-filter_complex \
- "[1:v]scale=-1:$HEIGHT[bg];
- [bg][2:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]" \
+ "[0:v]scale=-1:$HEIGHT[bg];
+ [bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]" \
-map '0:a' \
-codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE" -b:a "$ABITRATE" \
-f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \