hi @matt1
first of all thanks you help all the time with this great binding.
I was able to fix some things. it was not because of bad wifi, but my mjpeg stream was constantly running on 2 tablets and i guess used all ressources and basically openhab crashed but didnt show it immediately.
however, i lowered the resolution of the rtsp stream and also changed my code so the stream is only showed on demand for my doorbell. this works and is not showing old snapshots any more.
so i am fine with mjpeg.
on another page i still have a problem that i was not able to solve.
its a openhab main ui page whre i have 3 HLS Streams included. they are not running all the time. so no problem with ressources etc. but i can always reproduce the following:
1 of the streams is always “old” and shows an ealrlier date/time. it runs some second and then stops loading. the other 2 streams load the live stream. this was random with the 3 videos. than i changed to “manual” start of the videos and i can reproduce the following: the first video i start is old, the next 2 ones get the fresh stream.
here the logs
openhab> log:tail camera.internal
08:30:35.487 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera.m3u8, received from 192.168.0.110
08:30:35.489 [DEBUG] [nhab.binding.ipcamera.internal.Ffmpeg] - Starting ffmpeg with this command now:-hide_banner -loglevel warning -rtsp_transport tcp -i rtsps://192.168.0.240:7441/i9ol0KM1lD8Oro2P?enableSrtp -strict -2 -f lavfi -i aevalsrc=0 -acodec aac -vcode c copy -hls_flags delete_segments -hls_time 2 -hls_list_size 4 /var/lib/openhab/ipcamera/f0dc14d199/ipcamera.m3u8
08:30:35.576 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera.m3u8, received from 192.168.0.110
08:30:35.576 [DEBUG] [nhab.binding.ipcamera.internal.Ffmpeg] - Starting ffmpeg with this command now:-hide_banner -loglevel warning -rtsp_transport tcp -i rtsps://192.168.0.240:7441/ID7RV6HdEZWz6UGS?enableSrtp -strict -2 -f lavfi -i aevalsrc=0 -acodec aac -vcode c copy -hls_flags delete_segments -hls_time 2 -hls_list_size 4 /var/lib/openhab/ipcamera/165b42c7f9/ipcamera.m3u8
08:30:35.586 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera.m3u8, received from 192.168.0.110
08:30:35.587 [DEBUG] [nhab.binding.ipcamera.internal.Ffmpeg] - Starting ffmpeg with this command now:-hide_banner -loglevel warning -rtsp_transport tcp -i rtsps://192.168.0.240:7441/AqXJBDLE5RGyxMOC?enableSrtp -strict -2 -f lavfi -i aevalsrc=0 -acodec aac -vcode c copy -hls_flags delete_segments -hls_time 2 -hls_list_size 4 /var/lib/openhab/ipcamera/aa63b2a7ff/ipcamera.m3u8
08:30:37.830 [DEBUG] [nhab.binding.ipcamera.internal.Ffmpeg] - [rtsp @ 0x56315b8d9a40] Thread message queue blocking; consider rais ing the thread_queue_size option (current value: 8)
08:30:37.973 [DEBUG] [nhab.binding.ipcamera.internal.Ffmpeg] - [rtsp @ 0x55768dc53a40] Thread message queue blocking; consider rais ing the thread_queue_size option (current value: 8)
08:30:38.088 [DEBUG] [nhab.binding.ipcamera.internal.Ffmpeg] - [rtsp @ 0x557235e52a40] Thread message queue blocking; consider rais ing the thread_queue_size option (current value: 8)
08:30:41.007 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera.m3u8, received from 192.168.0.110
08:30:41.374 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera19.ts, received from 192.168.0.110
08:30:42.495 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera20.ts, received from 192.168.0.110
08:30:42.916 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera21.ts, received from 192.168.0.110
08:30:43.275 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera22.ts, received from 192.168.0.110
08:30:45.013 [DEBUG] [camera.internal.servlet.CameraServlet] - GET:/ipcamera.m3u8, received from 192.168.0.110
Can you help me with this? the only problem i see is thread_queue_size option which i guess has to do again wieth resources - but there should be enough free resources as before nothing was running from ipcamera.
what i also noticed is that log entries already apear when the page loads, and not only when i hit play. so i guess auto-play or manual play is not really a difference. its just easier to reproduce the problem for me.
regarding my setup: I use a unifi nvr. so all rtsp streams come from 1 server and not different cams/ips. dont know if this may be problematic for the binding? (so ip is always same, but stream urls are different of course).
for the hls streams i also lowered the resolution of the incoming rtsp stream
hope you can help with this. however my major problem was with mjpeg which i could solce.
or what logs /data etc. could i look into more? regarding the thread_queue_size option i didnt find anything useful except ressource issues but as said, before starting the video streams - no other video is running and other stuff in my server consume like nothing … server is also a real virtual server with enough resources an not raspberry.
also i was wondering why the logs mention the ip 192.168.0.110 as i dont use it. my nvr is 192.168.0.240 and cameras also have other ips. so what is this ip in the log?
mathias