galerija-bot/test_webcam2rtp.sh

13 lines
324 B
Bash
Raw Normal View History

2023-05-11 09:31:07 +02:00
#!/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 -f v4l2 -framerate 30 -i /dev/video0 -c:v libvpx -crf 10 -b:v 1M -an -f rtp $CILJ