Cannot Setup RPI Camera in Blue Iris

General discussion about Blue Iris
Post Reply
HopWorks
Posts: 1
Joined: Thu Oct 12, 2023 3:42 am

Cannot Setup RPI Camera in Blue Iris

Post by HopWorks »

I bought Blue Iris and finally got my Raspberry Pi 4 with a RPI GS Camera working, and I can see it fine on a remote web browser. But I cannot for the life of me get it working with Blue Iris. Everything is set the way it is suppose to as far as I can tell, but I consistently get cannot connect to camera. PLEASE HELP! I really wanted to use this to record NVR in the car on our long trip across half of the USA, starting this Friday!!

Thanks

Using Ubuntu Bullseye, MediaMTX
2023/10/11 20:11:40 INF MediaMTX v1.1.1
2023/10/11 20:11:40 INF [path cam] [RPI Camera source] started
2023/10/11 20:11:40 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2023/10/11 20:11:40 INF [RTMP] listener opened on :1935
2023/10/11 20:11:40 INF [HLS] listener opened on :8888
2023/10/11 20:11:40 INF [WebRTC] listener opened on :8889 (HTTP)
2023/10/11 20:11:40 INF [SRT] listener opened on :8890 (UDP)

Web works at {rpi address}:8889/cam/
User avatar
TimG
Posts: 2098
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: Cannot Setup RPI Camera in Blue Iris

Post by TimG »

So do you have an rtsp feed that can be viewed in VLC ? Or something similar ?
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
war4peace
Posts: 19
Joined: Fri Oct 27, 2023 6:34 am

Re: Cannot Setup RPI Camera in Blue Iris

Post by war4peace »

I apologize for allowing myself to hijack this thread, but it's a very similar problem.

Using mediamtx on Raspberry Pi and trying to use two different cameras in BI.
One camera is a RPi camera, the other is a Logitech C920 USB camera.

mediamtx is configured and starts up fine. From the BI machine I run VLC and can open the RTSP stream (rtsp://192.168.2.12:8554/cam). I can see the image, everything works fine.
Now, the weird stuff. I can add the camera to BI. I can see on the RPi the output from mediamtx showing BI client as connected:

Code: Select all

2023/11/02 21:27:48 INF [RTSP] [session bf4d64bf] created by 192.168.2.88:62324
2023/11/02 21:27:48 INF [RTSP] [session bf4d64bf] is reading from path 'cam', with TCP, 1 track (MPEG-4 Video)
BI, though, shows "No Signal" despite being correctly configured.

I have run out of options. No idea what else to do. I would like to add I have already configured 4x other cameras, using ONVIF and MJPEG, and they all work fine.
User avatar
TimG
Posts: 2098
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: Cannot Setup RPI Camera in Blue Iris

Post by TimG »

Can you show us the settings pages in BI5 ?
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
war4peace
Posts: 19
Joined: Fri Oct 27, 2023 6:34 am

Re: Cannot Setup RPI Camera in Blue Iris

Post by war4peace »

Sure can.

1. VLC stream working, with codec info:
Image

2. BI Camera - General Tab:
Image

3. BI Camera - Video tab:
Image

4. BI Camera - Camera Configuration tab:
Image
(Note: changing settings to "Send RTSP Keep-Alives", "Use RTSP/stream timecode", "Skip Initial MAC, HTTP, DNS Reachability tests" has no effect, I tried with/without them, etc. Also, I tried changing "Receive buffer" values from 0 all the way to 10, no effect)

5. BI Camera - Find/Inspect window results:
Image
(Note: It detects the RTSP port, but after clicking "Close", the Camera Configuration window shows unusable values, see below)

6. Camera Configuration window after Find/Inspect:
Image

If I leave the BI camera there, despite showing "No Signal", mediamtx on the RPi shows this output (repeats every 30 seconds):

Code: Select all

2023/11/03 16:34:19 INF [RTSP] [conn 192.168.2.88:61536] opened speed=   1x
2023/11/03 16:34:19 INF [RTSP] [session 1664f37d] created by 192.168.2.88:61536
2023/11/03 16:34:19 INF [RTSP] [session 1664f37d] is reading from path 'cam', with TCP, 1 track (MPEG-4 Video)
2023/11/03 16:34:48 INF [RTSP] [conn 192.168.2.88:61536] closed: read tcp 192.168.2.12:8554->192.168.2.88:61536: read: connection reset by peer
2023/11/03 16:34:48 INF [RTSP] [session 1664f37d] destroyed: not in use
It looks like BI opens the connection but can't read from it, for some reason, and mediamtx resets the connection after 30 seconds of inactivity. Immediately afterwards (after 1 second), BI opens the connection again and the cycle repeats. Meanwhile, the VLC connection from the same remote machine is rock solid.
I have tried changing resolutions (from 640x480 all the way to 1920x1080) and framerates (between 2 and 30) in mediamtx, each of them opened fine in VLC, none of them opened in BI.
If you need more information, please let me know, I'd be happy to provide it.
Post Reply