yi-hack-MStar icon indicating copy to clipboard operation
yi-hack-MStar copied to clipboard

Can not start strem in HA go2rtc in 0.5.6 version

Open majkers opened this issue 2 months ago • 23 comments

After updating my camera with BFUSY1E38F8JIL191023 to latest h201c I can't start strem in HA go2rtc with no specific error just a simple one that tells can't start with unexpected error. I can start this strem from VLC though. Going back to 0.5.5 version fixes this issue. In 0.5.6 version I did not see go2rtc on list of RTSP server program option

majkers avatar Oct 28 '25 14:10 majkers

Wow, I'll check the stream with ha. About go2rtc, I removed the option because so many people had "out of memory" problems. You can force the cam to use go2rtc editing system.conf manually. RTSP_ALT=go2rtc

roleoroleo avatar Oct 29 '25 14:10 roleoroleo

But isn't there this info left?

Image

majkers avatar Oct 30 '25 07:10 majkers

y203c and Frigate - hires stream stops immediately after connected (by go2rtc). Btw - even if I change RTSP server to alternative it returns to standard after camera reboot.

mnowok avatar Oct 30 '25 22:10 mnowok

But isn't there this info left? Image

You are right, I forgot to remove it.

if I change RTSP server to alternative it returns to standard after camera reboot.

I changed js file. Please clear the cache of the browser.

roleoroleo avatar Oct 31 '25 15:10 roleoroleo

About go2rtc, I removed the option because so many people had "out of memory" problems.

so how can i easly stream video in HA card now? I've got your custom integration and WebRTC

kuchar91 avatar Nov 03 '25 08:11 kuchar91

Same thing for me. Since upgrading to 0.5.6 the stream won't start in HA oder Frigate. Frigate Logs look something like this:

2025-11-04 14:00:44.446608345 [2025-11-04 12:00:44] watchdog.schlafzimmer ERROR : Ffmpeg process crashed unexpectedly for schlafzimmer. 2025-11-04 14:00:44.446925900 [2025-11-04 12:00:44] watchdog.schlafzimmer ERROR : The following ffmpeg logs include the last 100 lines prior to exit. 2025-11-04 14:00:44.447263596 [2025-11-04 12:00:44] ffmpeg.schlafzimmer.detect ERROR : [rtsp @ 0x56e86436a080] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size 2025-11-04 14:00:44.447528693 [2025-11-04 12:00:44] ffmpeg.schlafzimmer.detect ERROR : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options 2025-11-04 14:00:44.447720783 [2025-11-04 12:00:44] ffmpeg.schlafzimmer.detect ERROR : [out#0/rawvideo @ 0x56e8643a3300] Output file does not contain any stream

diverPaul avatar Nov 04 '25 13:11 diverPaul

I'm comparing 0.5.5 and 0.5.6... I don't know where is the difference and why it doesn't work with go2rtc.

roleoroleo avatar Nov 05 '25 19:11 roleoroleo

same here - home assistant webrtc just is loading forever. Frigate does work when you specify the rtsp url in the ffmpeg path, but go2rtc does not work. Tested with 3 different cameras all of them 4FUSY

Editing system.conf reverts to RTSP_ALT=alternative after reboot

Synal avatar Nov 05 '25 23:11 Synal

I tried 0.5.5 and it actually works. And I tried Frigate with the rtsp url in the ffmpeg path and it works (0.5.6). But 0.5.6 with Frigate doesn't work. There are a lot of changes between 0.5.5 and 0.5.6, so it's not easy to understand where is the difference...

roleoroleo avatar Nov 06 '25 15:11 roleoroleo

Funny thing is that I also have other camera with yi-hack-Allwinner-v2 0.3.4 installed and there is no problem

majkers avatar Nov 07 '25 07:11 majkers

I run Go2RTC in a docker container for Octoprint and having the same issue... updating to 0.5.6 and cant get a webrtc stream to work (just shows a black video).

Go2RTC was updated recently https://github.com/AlexxIT/go2rtc/releases/tag/v1.9.11 but I was able ot use v1.9.11 with 0.5.5 just fine, so doubt anything with go2rtc is causing the issue

One weird thing is after updating from 0.5.5 to 0.5.6 I can view the RTSP in videolan without my username and password. Does the update process reset the RTSP username and password?

I compared 0.5.5 and 0.5.6 and probed them with Go2RTC and noticed some difference

First difference is 0.5.5 - nb=AS:500
0.5.6 - nb=AS:700\

0.5.5

sprop-parameter-sets=Z01AKJWgHgCJpsgAAA+gAAJxBCA=

0.5.6

sprop-parameter-sets=Z01AKJWgHgCJpsBA

Under the client section 0.5.5 -

    "video, sendonly, ALL",

    "audio, sendonly, ALL",

    "audio, recvonly, ANY"

0.5.6 -

    "video, sendonly, H264",

    "audio, sendonly, MPEG4-GENERIC, PCMA, PCMU, L16, PCML, OPUS"

eblieb avatar Nov 08 '25 01:11 eblieb

I don't understand the the cause of the problem. So, I restored the old algorithm with h264grabber. Please, try these beta (rename tar.gz to tgz): h201c_0.5.6.tar.gz y203c_0.5.6.tar.gz

roleoroleo avatar Nov 09 '25 16:11 roleoroleo

In case anyone else has an issue flashing these betas ... They are in tar.gz not tgz so the manual method doesnt see them. You have to rename the files to .tgz (instead of .tar.gz) and then manual updating will work

The Beta firmware is working for me with Go2Rtc! Probing the Beta firmware it is reporting AS:500 and "video, sendonly, ALL", "audio, sendonly, ALL", "audio, recvonly, ANY"

eblieb avatar Nov 09 '25 19:11 eblieb

Good news! Sorry but tgz is not allowed, updated the previous post.

roleoroleo avatar Nov 10 '25 19:11 roleoroleo

How can I go back to the previous version?

pl4za avatar Nov 14 '25 15:11 pl4za

To manually flash the firmware on the camera follow the directions here

https://github.com/roleoroleo/yi-hack-Allwinner-v2/wiki/Manual-firmware-upgrade

Note the file must be .tgz ... it cant be .tar.gz eventho they are the same thing, so if you download the fixed 0.5.6 linked above just make sure to rename the file extension to .tgz

eblieb avatar Nov 16 '25 02:11 eblieb

My camera is the yi dome x, I would need version y30?

pl4za avatar Nov 16 '25 10:11 pl4za

Rename .tgz and install from sd card: y30_0.5.6.tgz

roleoroleo avatar Nov 16 '25 10:11 roleoroleo

Thanks

pl4za avatar Nov 16 '25 19:11 pl4za

Not sure what is causing it but on the beta my camera seems to constantly be rebooting...

eblieb avatar Nov 16 '25 22:11 eblieb

Yeah. The stream worked for me on beta for about 1-2 hours. And then camera started bootlooping.

smithumble avatar Nov 23 '25 20:11 smithumble

Wow... To fix the bootlooping, restore a previous version of the hack. I'll check the problem.

roleoroleo avatar Nov 28 '25 14:11 roleoroleo

same problem here...connection refused

anilini avatar Nov 28 '25 22:11 anilini