roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
844 stars 112 forks source link

RTSP Broken when RTSP Audio != None #178

Closed Simpsonpt closed 4 years ago

Simpsonpt commented 4 years ago

Serial: 4FUS Base: 4.2.0.0H_201909041620 Firmware Version: 0.3.2 or 0.3.3

The RTSP stream stops working when we choose any RTSP Audio, the Snapshot feature gets a black screen and VLC can't connect, the RTSP service can't correctly start (confirmed via portscanner). When forced via wd_rtsp.sh the service begins (port 554 open), but the stream is not working anyway. The log file don't help Starting RTSP watchdog... .

MoiZie commented 4 years ago

i can confirm this bug

bonuzzz commented 4 years ago

I have audio stream on 0.3.3 in vlc, but after when I turned off audio and turned on again. I use highres stream only. but agree, vlc stream is very unstable compared with 0.2.9

roleoroleo commented 4 years ago

This is an experimental feature. Please check if the stream is stable when audio is off. What problem do you have? Unstable means...

bonuzzz commented 4 years ago

I have to restart vlc and camera several times periodically to get video working.

roleoroleo commented 4 years ago

I am doing some experiments with 8 KHz instead of 16 KHz. It seems more stable.

roleoroleo commented 4 years ago

Please, give me some feedback on the quality without audio.

ypselon commented 4 years ago

With wersion 0.3.3 with audio / video high, more than 4h without problems.

Simpsonpt commented 4 years ago

As stated in the bug with audio the RTSP stream is broken, without audio RTSP looks good.

ypselon commented 4 years ago

Hum.. i have 4 Cameras 6FUS v4.5.0 and 4 Cameras BFUS v4.5.0. without any problem with video audio stream maybe a problem with version 4.2.0 ?

bonuzzz commented 4 years ago

with audio rtsp works for about 1.5 hours and breaks after that. without any messages in dmesg at this time

ypselon commented 4 years ago

image

Sorry, print in "portuguese" :)

4h 43min baby monitoring without any issue..

torcuat commented 4 years ago

I confirm the bug on a 9FUSY256JI Base version: 4.2.0.0H_201909041620

If RTSP audio is activated, the rtsp stream is broken. Desactivating services (FTP, SSH, etc) doesn't change anything.

bonuzzz commented 4 years ago

if you reboot camera second time then rtsp stream will work... when rtsp stream doesn't work, snapshot also has black screen.

roleoroleo commented 4 years ago

If you disable audio, does RTSP stream work well?

torcuat commented 4 years ago

If I disable audio and reboot to apply changes the RTSP stream works as it did in previous versions when there was no audio option.

In my case, it never works with audio activated, no matter the reboots.

bonuzzz commented 4 years ago

I thought black snapshot is indication of not working rtsp, but no.. (config now is both streams without audio) replaced rRTSPServer binary from neighbour topic, rebooted and rtsp start working, but only high res stream

stopped working after few minutes rRTSPServer process crashed and restarted by watchdog script

roleoroleo commented 4 years ago

Black snapshot means that rmm doesn't start correctly.

roleoroleo commented 4 years ago

Beta version for black screen: y25_0.3.3.tar.gz Only suffix y25, fw version 4.2.0*

PieVo commented 4 years ago

I think the sleep 2 after starting rmm is critical... On my camera the feed starts when I dump some more data from the audio_pipe. (Or perhaps not enough data read from the pipe, I used 8k).

roleoroleo commented 4 years ago

Ok, I will check it.

roleoroleo commented 4 years ago

Please go here: https://github.com/roleoroleo/yi-hack-MStar/issues/183

Simpsonpt commented 4 years ago

Tried the Beta version but the problem persists precisely in the same way when audio is activated the stream gets broken. But thank you for trying to address this problem.

Simpsonpt commented 4 years ago

Closing this issues since the yi-hack-MStar 0.3.4 release fixed this problem. Thanks for the great work @roleoroleo everyone that help debugging the problem.