diff options
Diffstat (limited to 'bin/stream')
-rwxr-xr-x | bin/stream | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -80,6 +80,7 @@ VBITRATE=256000 # + scale+watermark trick based on http://stackoverflow.com/a/10937357 # + Add 1s latency (deadline) # + Use same RTP payload types as GStreamer +${SAVEDIR:+export FFREPORT=file="$SAVEDIR/%t.log"} ffmpeg -hide_banner -threads auto -re \ ${ALSA:+-f alsa -sample_rate "$AFRAMERATE" -channels "$ACHANNELS" -thread_queue_size 1024 -i "$ALSA"} \ ${DVCAM:+-f iec61883 -i $DVCAM} \ @@ -90,6 +91,9 @@ ffmpeg -hide_banner -threads auto -re \ ${MAYBEVIDEO:+-filter_complex \ "[$VSTREAMINDEX:v]scale=-1:$HEIGHT${WATERMARK:-[v]}${WATERMARK:+[bg]${LOGO:+; [bg][$((VSTREAMINDEX+1)):v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]}}"} \ + ${SAVEDIR:+-map ':a?' -map ':v?' \ + -codec copy \ + -f matroska "file:$SAVEDIR/$(date +%Y%m%d-%H%M%S).mkv"} \ ${MAYBEAUDIO:+-map '0:a' \ -codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE" -b:a "$ABITRATE" \ -f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200"} \ |