Manjsi popravki, systemd service
parent
17b623aa04
commit
34e7ce5047
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -18,3 +18,4 @@ var BOT="http://192.168.1.101/";
|
|||
|
||||
// Koliko milisekund se naj vrtijo propelerji?
|
||||
var DOLZINA=3000;
|
||||
var PAVZA=3000;
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
create_ap wlan0 eth0 GalBotNet spustimenotzeno --country SI --freq-band 2.4
|
Loading…
Reference in New Issue