keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.65k stars 230 forks source link

I am currently working with Reolink to resolve two firmware bugs with the cameras. I need some information from you, the users. #171

Closed GhostlyCrowd closed 2 years ago

GhostlyCrowd commented 2 years ago

I am currently working with Reolink to resolve two bugs with the cameras. I need some information from you the users.

I have reached out to reolink, and they have already made one firmware to resolve issues we have such as the Reolink rtsp/rtmp/flv stream seems to not include VUI info in the h264 stream which makes the destination side on some systems think the video stream is 0 FPS and discards it. See https://github.com/keshavdv/unifi-cam-proxy/issues/31#issuecomment-841914363

And also thelive555 stream sending out junk tcp data and extra frames which cases the image smear we see randomly. See https://github.com/scottlamb/retina/issues/17#issue-971013925

I have sent them information regarding the RLC-522 and RLC-410-5MP as those are the cameras I have. And they have sent me firmware for the RLC-520 already. That they say revolves the two issues ive linked/discussed here. So we won't need any more janky ffmpeg args to get a proper healthy stream from our cameras, and this would alleviate a lot of issues for us with the proxy and ffmpeg versions.

What I need from users is a screenshot if the "Info" tab in your web ui of your camera to send to the support engineer to have more patched beta firmware made.

From these cameras to make sure we cover all variants. Blank out your uuid, it's unique to your camera

PoE Cameras > RLC-420-5MP, PoE Cameras > RLC-520, PoE Cameras > RLC-522, PoE Cameras > RLC-410-5MP, PoE Cameras > RLC-422-5MP

Example image

DrMarlin commented 2 years ago

Here are the 4 models I'm using (screenshots from the Mac Reolink app)

cam1 cam2 cam3 cam4
keshavdv commented 2 years ago

Thank you for reaching out to them! I've been able to investigate further with access to the camera that you provided, but ultimately anything I can do within the proxy is a hack. Being able to fix this on the firmware side would be amazing!

Tr4um4z commented 2 years ago

@GhostlyCrowd

deployed i have a RLC-520A model

but i have a rlc-520 not deployed at the moment for testing the beta firmware already in your hands...

post some link to the beta firmware

reolinkinfo

mathgoy commented 2 years ago

Hi, here are the cams I have at home. Would be interested about some patched firmwares :)

thanks

image image image image image image image

Tr4um4z commented 2 years ago

@GhostlyCrowd what version of firmware do you have for rlc-520 ? thanks

mathgoy commented 2 years ago

Personnaly, I am using the firmware v3.0.0.0.0 on all my cameras (RLC 520, RLC-410-W and E1 Zoom)

Tr4um4z commented 2 years ago

@mathgoy i'm talking about the beta firmware that resolve lot ot ffmpeg problems in the hands of @GhostlyCrowd

mathgoy commented 2 years ago

@Tr4um4z my bad!!!!

indeed, I would like to learn more abou that firmware @GhostlyCrowd is talking about. It would not only solve the issue with unifi-camera-proxy but also with Frigate and other NVR software who require a shit load of weird FFMPEG args to work properly with the Reolink cameras

GhostlyCrowd commented 2 years ago

Hi guys, sorry been on the road for work I'll get these submitted and see if i can get links to test firmware.

Tr4um4z commented 2 years ago

@GhostlyCrowd we can test the RLC-520 beta firmware that you already have if i correctly understand

jairbj commented 2 years ago

Where can I download this firmware?

jairbj commented 2 years ago

Although it's should be fixed I could make it to work with my RLC-410-5mp with rtsp-simple-proxy grabbing from rtmp instead of rtsp.

rtsp-simple-server.yml

readBufferCount: 1024
paths:
  cam_1:
    source: rtmp://192.168.100.77/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=

unifi-cam-proxy

unifi-cam-proxy -H 192.168.100.1 -c /client.pem -t 9Fi3owLdPBe3x32AIa9oNIyhebEbf8S7 rtsp -s 'rtsp://192.168.100.100:8554/cam_1' --ffmpeg-args '-c:v copy -vbsf "h264_metadata=tick_rate=60000/1001:fixed_frame_rate_flag=1" -ar 32000 -ac 2 -codec:a aac -b:a 32k'
mathgoy commented 2 years ago

Hi guys, sorry been on the road for work I'll get these submitted and see if i can get links to test firmware.

Hi mate, Any news about the RLC-520 firmware. I was under the impression that you had this one already

Thanks

GhostlyCrowd commented 2 years ago

Alright RLC-520 IPC_51516M5M.815_220127110.RLC-520.SC5035.5MP.REOLINK.pak

RLC-522 IPC_51516M5M.815_220127109.RLC-522.SC5035.5MP.AF.D7.REOLINK.pak

RLC-410-5MP IPC_51516M5M.815_22012798.RLC-410-5MP.SC5035.5MP.REOLINK.pak

All they have gotten back to me with so far I was instructed to use 30fps for all the new fixes to be active.

wills721 commented 2 years ago

I have an RLC-523WA with the same issue. Is there a BETA firmware for this model?

justinbarias commented 2 years ago

Would be happy to grab a copy of the updated firmware as well.

This is what I've got:

image

fillwe commented 2 years ago

Alright RLC-520 IPC_51516M5M.815_220127110.RLC-520.SC5035.5MP.REOLINK.pak

RLC-522 IPC_51516M5M.815_220127109.RLC-522.SC5035.5MP.AF.D7.REOLINK.pak

RLC-410-5MP IPC_51516M5M.815_22012798.RLC-410-5MP.SC5035.5MP.REOLINK.pak

All they have gotten back to me with so far I was instructed to use 30fps for all the new fixes to be active.

Have tried this firmware on my RLC-410 5MP and its really choppy. Have tried both with and without ffmpeg arguments. Is there anyone here that actually has a somewhat smooth playback with the 410 5MP?

mathgoy commented 2 years ago

Alright RLC-520 IPC_51516M5M.815_220127110.RLC-520.SC5035.5MP.REOLINK.pak

RLC-522 IPC_51516M5M.815_220127109.RLC-522.SC5035.5MP.AF.D7.REOLINK.pak

RLC-410-5MP IPC_51516M5M.815_22012798.RLC-410-5MP.SC5035.5MP.REOLINK.pak

All they have gotten back to me with so far I was instructed to use 30fps for all the new fixes to be active.

Thanks a lot mate, will try that right away!

keshavdv commented 2 years ago

Any chance I could get patched firmware for a RLC-520A?

image
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

burnsy180 commented 2 years ago

Thanks so much @GhostlyCrowd for looking into this. My RLC-520 details are below. I've tried installing the beta firmware you provided links for, but selecting it from the webui > system > More > Firmware Upgrade, does nothing. It doesn't import the .pak file to the webui so I can then click 'Upgrade'. Is there a trick to installing this firmware?

image

burnsy180 commented 2 years ago

Alright RLC-520 IPC_51516M5M.815_220127110.RLC-520.SC5035.5MP.REOLINK.pak

RLC-522 IPC_51516M5M.815_220127109.RLC-522.SC5035.5MP.AF.D7.REOLINK.pak

RLC-410-5MP IPC_51516M5M.815_22012798.RLC-410-5MP.SC5035.5MP.REOLINK.pak

All they have gotten back to me with so far I was instructed to use 30fps for all the new fixes to be active.

Ok so I managed to install (i think) the RLC520 firmware linked above, however the webui seemed to stall at the 'installing' screen for hours. I left it overnight with no change. Now even after rebooting, factory-resetting using the button I am unable to access the webui, nor does it appear on my network.

Did this firmware brick my camera? Is there a way to fix this?

Fanman03 commented 2 years ago

image

I have a RLC-520 however the full model name seems to be different and it doesn't match the one on the patched firmware file. Would it be possible to get a patched firmware for this model of RLC-520 as well?

jump commented 2 years ago

Alright RLC-520 IPC_51516M5M.815_220127110.RLC-520.SC5035.5MP.REOLINK.pak

RLC-522 IPC_51516M5M.815_220127109.RLC-522.SC5035.5MP.AF.D7.REOLINK.pak

RLC-410-5MP IPC_51516M5M.815_22012798.RLC-410-5MP.SC5035.5MP.REOLINK.pak

All they have gotten back to me with so far I was instructed to use 30fps for all the new fixes to be active.

any chance on older firmwares like for the RLC-410s ? (not same IPC as the units above)

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Fanman03 commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Not stale, bad bot.

eltomato89 commented 2 years ago

Updated my RLC-410-5MP to that firmware.

You should update your production cameras. Seems like I can not roll back and access times have increased drastically!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.