Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support request] Yi Pro 2K Home YFUS 12.0.51 #753

Open
b-a-9-0 opened this issue Nov 19, 2023 · 159 comments
Open

[Support request] Yi Pro 2K Home YFUS 12.0.51 #753

b-a-9-0 opened this issue Nov 19, 2023 · 159 comments

Comments

@b-a-9-0
Copy link

b-a-9-0 commented Nov 19, 2023

Hi, I have a Yi Pro 2K Home

  • Serial YFUS....
  • Base Version 12.0.51.01_202303091901

For curiosity I tried to apply the hack with y623. It kind of works (Web Interface, SSH, ...) but I have some problems with the RTSP streams. Low quality stream sometimes works, but not very stable, the high res stream does not work at all. Is there any advice what I can try to get this model running? Thanks for this great work!

@roleoroleo
Copy link
Owner

Please, send me a copy of the frame buffer.
/dev/shm/fshare_frame_buf
I will check the stream.

@b-a-9-0
Copy link
Author

b-a-9-0 commented Nov 19, 2023

Please see the buffer attached.
fshare_frame_buf.zip

@roleoroleo
Copy link
Owner

I can confirm that y623 should work.
The stream is supported.
But I don't remember if I implemented some change after the last release, for this model.
Please try this image:
y623_0.3.0.tar.gz

@b-a-9-0
Copy link
Author

b-a-9-0 commented Nov 20, 2023

Hi, this image worked, thanks. I think you can add this camera version to the list of supported devices.

@isibizi
Copy link

isibizi commented Nov 22, 2023

I had the same problems with this cam, i have solve my problems after i have formated my sdcard with "EaseUS Partition Master" and use Fat32 and GPT, after that my cameras worked fine

@Tribux
Copy link

Tribux commented Dec 8, 2023

Hi, have same model but ZFUS, it seems to work, but it has many restarts during work, mostly when I try to access preview(rtsp/onvif). Does same firmware should work without issues on this device?
MOdel is YYS.62121
SN starts with ZY623

UPDATE:
In fact solution suggested by @isibizi helped and for at least now, no restarts of cam and rtsp preview possible :)

@redlingg
Copy link

redlingg commented Dec 26, 2023

Hi, have same model but ZFUS, it seems to work, but it has many restarts during work, mostly when I try to access preview(rtsp/onvif). Does same firmware should work without issues on this device? MOdel is YYS.62121 SN starts with ZY623

UPDATE: In fact solution suggested by @isibizi helped and for at least now, no restarts of cam and rtsp preview possible :)

Hello
which fw do u use? I dont find any for ZFUS. thnaks (yi home 2k pro)

@roleoroleo
Copy link
Owner

Which firmware version?

@redlingg
Copy link

Which firmware version?

Is this question for me..? :)

@roleoroleo
Copy link
Owner

Which firmware version?

Is this question for me..? :)

Yes, tell me the fw version that appears in the app.

@redlingg
Copy link

Which firmware version?

Is this question for me..? :)

Yes, tell me the fw version that

Which firmware version?

Is this question for me..? :)

Yes, tell me the fw version that appears in the app.

Thanks.

12.0.51.0_202303091901
Can be upgraded to:
12.0.51.04_202311171457

@roleoroleo
Copy link
Owner

Try y623.
It should work.

@redlingg
Copy link

Try y623. It should work.

well it works but gives me a fish eye image... so it is not really good

@roleoroleo
Copy link
Owner

Is the image different from the one in the app?
If yes, please send me a copy of the frame buffer: /dev/shm/fshare_frame_buf

@redlingg
Copy link

redlingg commented Dec 29, 2023

Is the image different from the one in the app? If yes, please send me a copy of the frame buffer: /dev/shm/fshare_frame_buf

it is the same.. :( I dont understand why.

@redlingg
Copy link

Is the image different from the one in the app? If yes, please send me a copy of the frame buffer: /dev/shm/fshare_frame_buf

it is the same.. :( I dont understand why.

….now I am. not able to reach the admin site. Can this be because of the se card?

@roleoroleo
Copy link
Owner

Maybe
Simply create again the sd.

@redlingg
Copy link

redlingg commented Jan 2, 2024 via email

@roleoroleo
Copy link
Owner

If the image quality is the same as in the app it is probably a camera problem.

@Tribux
Copy link

Tribux commented Jan 8, 2024

Which firmware version?

Hi sorry for late reply, i Just used firmware for Y vesrsion but doing preview through rtsp or onvif I get pixels sometimes, need to either restart or open app few times..

@roleoroleo
Copy link
Owner

Please.
Tell me the fw revision that appears in the webgui: field "Base Version".

@Tribux
Copy link

Tribux commented Jan 9, 2024

Please. Tell me the fw revision that appears in the webgui: field "Base Version".

Base version is:
12.0.51.04_202311171457

@roleoroleo
Copy link
Owner

Please, wait for the next release.

@redlingg
Copy link

Hi
Can you tell me why I have picture like this? Sometime it is ok, sometime it looks like this:
SmartSelect_20240109_101710_Home Assistant

@roleoroleo
Copy link
Owner

There can be many reasons for this problem.

  • hardware damage
  • network connection
  • bug in the software
  • bug in the hack

Please, try if this beta is better:
y623_0.3.0.tar.gz

@lenisko
Copy link
Contributor

lenisko commented Jan 16, 2024

Hey @roleoroleo

I tried the one above with both 12.0.51.01_202303091901, 12.0.51.04_202311171457 and card formated through app but camera record is freezing a loot, same goes for RTSP stream.

If there's anything I could provide to get this tuned, just let me know! Cheers.

@roleoroleo
Copy link
Owner

Please, send me a copy of the buffer /dev/shm/fshare_frame_buf

@lenisko
Copy link
Contributor

lenisko commented Jan 16, 2024

@roleoroleo

count=1; version="12.0.51.04_202311171457"; model="YFUSY94"; while [ $count -le 9 ]; do cat /dev/shm/fshare_frame_buf > "/tmp/${version}_${model}_fshare_frame_buf_${count}"; count=$((count+1)); sleep 5; done

fshare_frame_buf.zip (both fw)
rRTSPServer_log.txt (12.0.51.01_202303091901)

Size is different between firmware versions. Executed on both, 9 files each.
Also attached a log of rRTSPServer for a case where video was working, froze, and started working again.

@roleoroleo
Copy link
Owner

The frame buffer is ok and supported, both for 12.0.51.01 and 12.0.51.04.
The size is not a problem.

The log shows a problem near time 1705403439422, but I don't understand the type of problem.
Could you please create another log with -d 15?
Does low res stream work?

@lenisko
Copy link
Contributor

lenisko commented Jan 16, 2024

Looks like the issue is present on both streams

killall wd_rtsp.sh
killall rRTSPServer
rRTSPServer -m y623 -r high -p 554 -d 15 &> /tmp/high-res-debug.txt
rRTSPServer -m y623 -r low -p 554 -d 15 &> /tmp/low-res-debug.txt

@roleoroleo
Copy link
Owner

I noticed something strange in your capture file:
immagine

The frame size is "strange" and I don't understand if it's a problem related to the capture or it's true.

@roleoroleo
Copy link
Owner

And this is the video using go2rtc on my pc:
immagine

@Suxsem
Copy link

Suxsem commented Nov 6, 2024

very very strange.
I don't have any special configuration. Just upgraded the stock firmware, formatted the sdcard e installed your latest beta.
What do you have in the frame size?

@roleoroleo
Copy link
Owner

I don't remember exaclty but it's near the standard MTU ~ 1500 bytes.
But, just to understand, your capture is between...

  • cam and go2rtc
  • client and go2rtc
  • other...

@Suxsem
Copy link

Suxsem commented Nov 6, 2024

@roleoroleo between cam and go2rtc. those are the packets sent from the camera

@roleoroleo
Copy link
Owner

Then the size of the packet should not be greater than 1500...

@Suxsem
Copy link

Suxsem commented Nov 6, 2024

@roleoroleo I just checked my openwrt router configuration and MTU is set to 1500.
Is it possible that the camera is ignoring the MTU and is sending oversized packets?
Both the camera and the computer running go2rtc are connected trough wifi, but on different SSIDs each associated with a different subnet; the router then forwards packets between the networks.

This is indeed strange, because the camera should have a MTU of 1500 for the wifi interface:
image

That said i really don't think this is a network issue. The HD streams works, only the LOW stream is corrupted. Other then that, the issue is only visible when playing trough the web browser. Playing the stream through VLC doesn't show issues.

Thank you for helping me investigating!

@Suxsem
Copy link

Suxsem commented Nov 7, 2024

ok I think that Windows TCP/IP stack is messing with the packets length by assembling multiple packages.

I repeated the network capture by running tcpdump on the camera itself and no more strange frame sizes are present:
dump.zip

I'm not seeing anything strange from a network point of view.

Do you have other ideas? thank you

@roleoroleo
Copy link
Owner

Ok, now the dump is ok.
No frequent errors and no fragmentation.

When you play the stream with vlc, is the path of the packets the same?
Through your router in 2 different subnets?

@Suxsem
Copy link

Suxsem commented Nov 11, 2024

@roleoroleo yes absolutely. The only change is in the software, vlc instead of web player through go2rtc

@roleoroleo
Copy link
Owner

I don't understand...
Please, send me a copy of your frame buffer /dev/shm/fshare_frame_buf
I will check if the h264 stream is ok.

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

@roleoroleo fshare_frame_buf.zip

Sure, here it is. Is the frame_buf the same for HIGH and LOW resolution? because HIGH resolution works. Thank you

@roleoroleo
Copy link
Owner

roleoroleo commented Nov 16, 2024

It's the same buffer for both streams.
The stream is ok, I don't understand.
Please, try to run rRTSPServer manually using the option "-s".

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

@roleoroleo do you want to connect to my PC to investigate in real time? I'm available today the whole day. I sent you an email, thank you

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

@roleoroleo just tried with the "-s" option and it works!!

@roleoroleo
Copy link
Owner

Maybe your model uses a different framerate.

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

I think so... Why the sps overwrite is on by default? Is there anything wrong with using the sps provided by the camera in the frame buffer?

@roleoroleo
Copy link
Owner

No, nothing wrong
But the factory SPS doesn't contain timing info, so I noticed some problem with some rtsp client.
I will add a hidden option to handle this parameter.

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

Great thank you! Why hidden though?
Please use the same option for both low and high quality and for all the streaming servers, thank you!

@roleoroleo
Copy link
Owner

c95970b
e84809f

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

thank you!!! any chance you can fire a build so I don't have to setup the building system?

@roleoroleo
Copy link
Owner

A new release is coming...

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

Great thanks. If you still want to publish a beta I will be glad to test

@roleoroleo
Copy link
Owner

Too late :)

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

ahah :D thank you!!

@roleoroleo
Copy link
Owner

roleoroleo commented Nov 16, 2024

You will find a new parameter in system.conf:
RTSP_STI
Set it to no with your cam.

@Suxsem
Copy link

Suxsem commented Nov 16, 2024

@roleoroleo tested and it works like a charm! Thank you and have a nice weekend!

@usullu
Copy link

usullu commented Nov 18, 2024

Thank you for the update @roleoroleo. Wanted to test the new mode, but had a problem with it:

If I change the RTSP Server Program to go2rtc, save i, reboot the cam and go to the config page it shows me that standard is choosen and not go2rtc. Is this only a GUI problem or can't I really change to the go2rtc program?

Audio is choosen as aac with the current version 0.3.3

@roleoroleo
Copy link
Owner

Try to clean the cache of the browser.
I changed the js code.

@usullu
Copy link

usullu commented Nov 18, 2024

Tried with 3 different browsers :/

Can I check the choosen program in the console?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests