From 59c720e887a2ccfec0a3a87964a72cdd8ece9b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Mon, 27 Feb 2023 10:45:22 +0100 Subject: [PATCH] Dodane ffmpeg skripte za gledanje kamere in RTP pretvorbo, janus cfg --- 0_vidi.sh | 4 ++++ 1_mjpeg2rtp.sh | 8 ++++++++ etc_janus_janus.plugin.streaming.jcfg | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100755 0_vidi.sh create mode 100755 1_mjpeg2rtp.sh create mode 100644 etc_janus_janus.plugin.streaming.jcfg diff --git a/0_vidi.sh b/0_vidi.sh new file mode 100755 index 0000000..fa655f8 --- /dev/null +++ b/0_vidi.sh @@ -0,0 +1,4 @@ +#!/bin/bash +VIR="http://192.168.64.104:81" + +ffplay $VIR diff --git a/1_mjpeg2rtp.sh b/1_mjpeg2rtp.sh new file mode 100755 index 0000000..552cbd8 --- /dev/null +++ b/1_mjpeg2rtp.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Pretvori MJPEG v VP8 RTP stream + +VIR="http://192.168.64.104:81" +CILJ="rtp://localhost:8004" + +#ffmpeg -re -stream_loop -1 -i $VIR -c:v libx264 -tune zerolatency -profile:v baseline -b:v 1M -an -f rtp $CILJ +ffmpeg -re -stream_loop -1 -i $VIR -c:v libvpx -b:v 1M -an -f rtp $CILJ diff --git a/etc_janus_janus.plugin.streaming.jcfg b/etc_janus_janus.plugin.streaming.jcfg new file mode 100644 index 0000000..1718a65 --- /dev/null +++ b/etc_janus_janus.plugin.streaming.jcfg @@ -0,0 +1,9 @@ +rtp-cam: { + type = "rtp" + id = 666 description = "esp32 cam!" + metadata = "You can use this metadata section to put any info you want!" + audio = false video = true + videoport = 8004 + videopt = 100 + videocodec = "vp8" +}