galerija-bot/1_mjpeg2rtp.sh

15 lines
467 B
Bash
Raw Normal View History

#!/bin/bash
source .env
# Inicializiraj kamero
url="$VIR/cm?cmnd=WcInit"
curl "$url"
# Pretvori MJPEG v VP8 RTP stream
#ffmpeg -re -stream_loop -1 -i $VIR -c:v libx264 -tune zerolatency -profile:v baseline -b:v 1M -an -f rtp $CILJ
ffmpeg -threads 3 -re -fflags +genpts -stream_loop -1 -i "$VIR:81" -c:v libvpx -crf 10 -b:v 1M -an -f rtp $CILJ
2023-05-10 16:46:51 +02:00
# Ce ga 5 sekund ni, izhod
#ffmpeg -re -stream_loop -1 -i "$VIR:81" -shortest -c:v libvpx -b:v 1M -an -f rtp $CILJ -t 5