Manjsi popravki, systemd service

sbc
Jurij Podgoršek 2023-05-10 16:46:51 +02:00
parent 17b623aa04
commit 34e7ce5047
4 changed files with 18 additions and 0 deletions

View File

@ -10,3 +10,5 @@ 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
# 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

13
galbot.service 100644
View File

@ -0,0 +1,13 @@
[Unit]
Description=Storitev za dekodiranje pretoka MJPEG v RTP (janus)
After=janus.service
[Service]
User=g1smo
WorkingDirectory=/home/g1smo/galerija-bot
ExecStart=/home/g1smo/galerija-bot/1_mjpeg2rtp.sh
Restart=always
RestartSec=5s
[Install]
WantedBy=default.target

View File

@ -18,3 +18,4 @@ var BOT="http://192.168.1.101/";
// Koliko milisekund se naj vrtijo propelerji?
var DOLZINA=3000;
var PAVZA=3000;

2
ustvari_wifi.sh 100755
View File

@ -0,0 +1,2 @@
#!/bin/sh
create_ap wlan0 eth0 GalBotNet spustimenotzeno --country SI --freq-band 2.4