From 73c58e6cf15a921197a6e85422cb061fe01b0f53 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 27 Apr 2017 20:09:46 +0200 Subject: Use mapping (not audio/video supporession), and consistently use complex filter (not video filter). --- bin/capture+encode+stream | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/capture+encode+stream') diff --git a/bin/capture+encode+stream b/bin/capture+encode+stream index d9face9..740e2f3 100755 --- a/bin/capture+encode+stream +++ b/bin/capture+encode+stream @@ -26,10 +26,10 @@ VBITRATE=256000 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" \ + -map '0:a' \ -codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE" -b:a "$ABITRATE" \ - -vn \ -f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \ - -an \ + -map '0:v' \ -pix_fmt yuv420p \ -codec:v vp8 -quality realtime -deadline 1000000 -cpu-used 15 \ -b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \ -- cgit v1.2.3