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

YI 2k Pro Home (y623) with 0.3.1 not working well #846

Closed
TungstenE2 opened this issue Mar 20, 2024 · 27 comments
Closed

YI 2k Pro Home (y623) with 0.3.1 not working well #846

TungstenE2 opened this issue Mar 20, 2024 · 27 comments
Labels

Comments

@TungstenE2
Copy link

Hi all,

I just got 2 YI 2k Pro Home (y623) and fwy623_0.3.1 not working well.

GUI is not reachable and stream is also also not stable, although wifi is good.

I already have YI 1080P Home| (y291ga) working fine with 0.3.1.

So is there a known issue with fwy623_0.3.1 on Pro Home?

thx

@sebastianha
Copy link

Hi,

mine works fine. I only have the problem that at night when there is no motion in the image I cannot access the RTSP stream. I think this is due to the fact that the camera is not sending full frames then.

@roleoroleo
Copy link
Owner

So is there a known issue with fwy623_0.3.1 on Pro Home?

AFAIK there are no known issues.

mine works fine. I only have the problem that at night when there is no motion in the image I cannot access the RTSP stream. I think this is due to the fact that the camera is not sending full frames then.

Could you please send me a copy of the file /dev/shm/fshare_frame_buf during the night?

@sebastianha
Copy link

When playing an "interesting" stream the "mplayer -v" output is the following:

[h264 @ 0x7f3095b948e0]nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
V: 110.4 2095/2095 1517%  8%  0.0% 0 0 
[h264 @ 0x7f3095b948e0]nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
V: 110.4 2096/2096 1499%  8%  0.0% 0 0 
[h264 @ 0x7f3095b948e0]nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
V: 110.5 2097/2097 1482%  8%  0.0% 0 0

as soon as I point the camera to the wall I only get:

[h264 @ 0x7f3095b948e0]nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x7f3095b948e0]no picture ooo
[h264 @ 0x7f3095b948e0]nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x7f3095b948e0]no picture ooo
[h264 @ 0x7f3095b948e0]nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x7f3095b948e0]no picture ooo

Also the stream takes very long to show a usable image. You can see the seconds in the top left changing but it takes very long to show the full image. I assume this is the point an iFrame/FullFrame (I am not sure about the right name of this) is sent.

Screencast_20240407_133359.mp4

Some players (e.g. browser) cannot start such a stream at all, mplayer is "patient" enough to wait. In the night this behaviour is even worse, sometimes it really takes a movement for the stream to starte / recover.

@sebastianha
Copy link

Here a video in the dark, waiting does not help to restore the stream, Only movement shows it properly:

Screencast_20240407_134551.mp4

@sebastianha
Copy link

fshare_frame_buf.zip

fshare_frame_buf while mplayer is showing a grey image in the stream

@roleoroleo
Copy link
Owner

I'm checking the buffer (high res) and it seems ok.
The frame rate is 20 fps and there are no lost frames.
The buffer is little, so I am unable to get the gov length (just 1 I-frame in the buffer).
But it seems ok.

Please send me a full log of the process rRTSPServer.
Run it manually and add "-d 15" option.

@sebastianha
Copy link

rtspserver.log.txt

Here it is. The screen was grey the full time, at the end I waved my hand and the image was restored.

@roleoroleo
Copy link
Owner

Wow... a lot of buffer errors:

1712598711373: h264/aac in - error - frame size exceeds buffer size

The frame is greater than 256 KB.
But I already fixed this problem: d31985f
Try this:
y623_0.3.1.tar.gz

@TungstenE2
Copy link
Author

TungstenE2 commented Apr 10, 2024

@roleoroleo thx for the fix.

But how to check if the update is done, if version stays the same? Espeially if you have several cams?

I tried to copy the files from the .gz to root, as the update button does not recogonize new version in tmp/sd folder, as version is same.

grafik

Did now a clean install to sd and restored config.

Might this fix also be relevant for Dome Camera U, as it also has 2k?

@roleoroleo
Copy link
Owner

I will change the version number when I will release the new version.
Meanwhile you can update using the manual procedure described in the wiki.
https://github.com/roleoroleo/yi-hack-Allwinner-v2/wiki/Manual-firmware-upgrade

@TungstenE2
Copy link
Author

TungstenE2 commented Apr 10, 2024

thx, but as stated manual procees via update button does not work, as same version is shown.

Did now a clean install to sd and restored config.

Might this fix also be relevant for Dome Camera U, as it also has 2k?

@roleoroleo
Copy link
Owner

thx, but as stated manual procees via update button does not work, as same version is shown.

Did now a clean install to sd and restored config.

It should work, The version is not important for the update procedure.
If you copy the file y623_0.3.1.tar.gz to your sd card and rename it y623_x.x.x.tgz (pay attention to .tgz) the "Maintenance page" will show the label "Available: local SD"
immagine
Click "UPGRADE FIRMWARE" and the update will start.
Yes, you can't tell the difference between the original 0.3.1 and the new beta, but it's not important.
When a new 0.3.2 will be available, you will able to start the new ota update.

Might this fix also be relevant for Dome Camera U, as it also has 2k?

If you have the same problem, yes. Check the log.
But, I do not think so.

@sebastianha
Copy link

Wow... a lot of buffer errors:

1712598711373: h264/aac in - error - frame size exceeds buffer size

The frame is greater than 256 KB. But I already fixed this problem: d31985f Try this: y623_0.3.1.tar.gz

Thanks, I will test this and give feedback!

@sebastianha
Copy link

First tests look promising, will do more testing tomorrow

@zethis
Copy link

zethis commented Apr 11, 2024

Tested and approved on my end, i was previously on 0.3.0

@sebastianha
Copy link

sebastianha commented Apr 12, 2024

I also can confirm that it works far better now! It still takes some seconds for the first image but in general it works! (I think the short waiting time for the first iFrame is intended to keep the bitrate small)

@roleoroleo
Copy link
Owner

Please, test 0.3.2.

@sebastianha
Copy link

Installed it yesterday, so far it looks good. Will report if there are any problems.

@sebastianha
Copy link

I am not sure if this is caused by the latest changes, but RTSP players based on VLC (like "Ojo") have a hard time streaming the video. MPV/mplayer works much better.

@roleoroleo
Copy link
Owner

It's always been this way and I've never understood why.

@sebastianha
Copy link

Ah, ok. That's strange. Perhaps I will investigate if I find some spare time.

@zethis
Copy link

zethis commented Apr 29, 2024

No more issue on my side with 0.3.2 !

root@Yi-Pro-Cam:~# uptime
 14:28:00 up 14 days, 9 min

@sebastianha
Copy link

No more issue on my side with 0.3.2 !

root@Yi-Pro-Cam:~# uptime
 14:28:00 up 14 days, 9 min

What is the load on your cam?

root@Yi2k-1:~# uptime
 15:24:57 up 1 day, 22:50,  load average: 2.41, 1.86, 1.58

@zethis
Copy link

zethis commented Apr 29, 2024

No more issue on my side with 0.3.2 !

root@Yi-Pro-Cam:~# uptime
 14:28:00 up 14 days, 9 min

What is the load on your cam?

root@Yi2k-1:~# uptime
 15:24:57 up 1 day, 22:50,  load average: 2.41, 1.86, 1.58
root@Yi-Pro-Cam:~# uptime
 16:00:16 up 14 days,  1:41,  load average: 1.05, 1.18, 1.24

Be aware that i've deactivated everything instead of rtsp, ssh and IR led

@sebastianha
Copy link

ok. In general my camera works, I only have issues with using the motion detection, see #867

But then I assume you are not using the motion detection at all. Nevertheless I wonder why the load is this high.

As soon as I enable "Disble Cloud" my load jumps up.

@zethis
Copy link

zethis commented Apr 29, 2024

ok. In general my camera works, I only have issues with using the motion detection, see #867

But then I assume you are not using the motion detection at all. Nevertheless I wonder why the load is this high.

As soon as I enable "Disble Cloud" my load jumps up.

No issues on my end with Cloud Disabled

Copy link

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.

@github-actions github-actions bot added the stale label Jul 29, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants