From aa9ffa39f6ba070042624089fc03c0891c7deba5 Mon Sep 17 00:00:00 2001 From: Simon Sickle <51972200+simonsickle@users.noreply.github.com> Date: Mon, 18 Dec 2023 22:16:56 -0500 Subject: [PATCH] Add 360/1080 mjpeg streams for octoprint Octoprint requires mjpeg streams still and the rtsp streams don't contain the mjpeg codec. To work around this, go2rtc can consume the jpeg URL from the localhost and rebroadcast the jpegs as a mjpeg stream. --- SD_ROOT/wz_mini/etc/go2rtc.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SD_ROOT/wz_mini/etc/go2rtc.yml b/SD_ROOT/wz_mini/etc/go2rtc.yml index 39ded95..20afa7c 100644 --- a/SD_ROOT/wz_mini/etc/go2rtc.yml +++ b/SD_ROOT/wz_mini/etc/go2rtc.yml @@ -23,3 +23,5 @@ streams: - exec:ffmpeg -hide_banner -f alsa -ac 1 -i dsnooper2 -c:a libfdk_aac -afterburner 1 -channels 1 -b:a 128k -profile:a aac_he -ar 16000 -strict experimental -muxdelay 0 -muxpreload 0 -ac:a 1 -f rtsp {output} # libopus has higher cpu requirements, audio may studder. # - exec:ffmpeg -hide_banner -f alsa -ac 1 -i dsnooper2 -c:a libopus -muxdelay 0 -muxpreload 0 -ac:a 1 -af adelay=0|0 -f rtsp {output} + jpeg_1080p: http://127.0.0.1/cgi-bin/jpeg.cgi?channel=0 + jpeg_360p: http://127.0.0.1/cgi-bin/jpeg.cgi?channel=0