roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
752 stars 90 forks source link

Problem with Surveillance Station and firmware version 0.3.1 #843

Open cvc90 opened 3 months ago

cvc90 commented 3 months ago

Hello,

I have the same problem that is mentioned here Issue 816, my camera as you can see is an h60ga, could you send me the new version with new ONVIF configuration options? Thanks

image

image

roleoroleo commented 3 months ago

Here it is: h60ga_0.3.1.tar.gz

cvc90 commented 3 months ago

Thanks, as soon as I try it I'll comment.

cvc90 commented 3 months ago

I have just tried this new version and the camera loads perfectly again, thank you.

roleoroleo commented 3 months ago

Did you set a "compatibility" flag to make it work? immagine

cvc90 commented 3 months ago

Hi @roleoroleo,

I have carried out several tests that I will explain to you

Option 1

With both options disabled, it works but still gives an error when performing the connection test.

imaginario image image

Option 2

With the "Fault response if unknown request" option activated, it does not work and still fails when performing the connection test.

image image image

Option 3

With the "Synology NVR compatibility" option activated, it works and still gives an error when performing the connection test.

image image image

Option 4

With both options activated, it works and still gives an error when performing the connection test.

image image image

Extra

Taking advantage of the issue I also found another bug, is that it does not get the correct resolution and frame rate of the camera, as you can see in the first image in the metadata obtained in VLC through the RTSP connection gets a resolution of 2304x1296 and 20 FPS.

VLC image

Surveillance Station image

Could the resolution be corrected, or could we obtain several resolutions from the camera?

roleoroleo commented 3 months ago

So, options 1, 3 and 4 have the same behavior. Please send me a network capture during the connection test, if you can.

About resolution, the reason is simple, I will fix it. You can try it manually editing the file /tmp/onvif_simple_server.conf

cvc90 commented 3 months ago

Could you give me details of how you want me to perform the network capture? Activating the log? Wireshark?

I have made the modification of profile 0 in the file /tmp/onvif_simple_server.conf

width=2304 height=1296

But when I restart the camera, the modification is lost again and I can't check if it works.

roleoroleo commented 3 months ago

Wireshark is ok. Otherwise you can use tcpdump inside the cam. The binary is available here: https://github.com/roleoroleo/yi-hack-utils/tree/main/Allwinner-v2 And the command line is: tcpdump -i wlan0 -w /tmp/capture.pcap

But when I restart the camera, the modification is lost again and I can't check if it works.

Yes, this is the problem I have to fix. But you can edit the file and test the onvif client without restart.

cvc90 commented 3 months ago

Okay, as soon as I can I'll send you the network capture.

I have modified profile 0 in the /tmp/onvif_simple_server.conf file and it did not seem to do anything without restarting, but I let it pass for a while and when it reloaded the new configuration as you can see in the image, but it loads it with 10 FPS by default but I can change it to 20 and everything seems to work correctly

image image

Update: The SD memory card in the camera is broken, as soon as I can I'll send you the network capture.

roleoroleo commented 3 months ago

Framerate is not reported by the cam with this onvif server. Set it client side.

github-actions[bot] commented 1 week 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.