-
Notifications
You must be signed in to change notification settings - Fork 66
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
RTSP Stream Artifacting and Distorting #4
Comments
The RTSP stream is one of the 2 big problems of this alpha version. I try to explain better... These indexes point to a buffer address where a frame is present. Some other info. I wrote a demon that reads the address in the header at 0x16 and takes it as the upper limit. |
@roleoroleo just wondering - how to get a knowledge to hack in such a way you do it? What tools do you use? Maybe there are good books to get started?:) |
@crdnl could you please tell, how to reach rtsp from VLC? |
I got this knowledge only with a lot of work (and I don't mean my job) in embedded system. |
File a new issue for it. I can help try to debug there. |
I got it to work without using |
installed firmware but when I try to stream to my Synology the video flashes to black every few seconds and then the camera resets. |
First of all nice work, thank you for what you do. |
The known issue discussed here, is related only to some artifact in the images when the system boots. |
After a longer period of time my VLC-Client disconnect from the RTSP stream with an error. Then I have to connect again (this is only possible after a couple of seconds), |
Unfortunately sometimes there are crashes of RTSP server. |
I'm having the same issues with this cam. Both cams have the same amount of RAM, the
The RTSP stream is sometimes choppy. Do you think this can be fixed? Is it better to return them and hope for a Mstar? |
I don't know if it's possible to fix it. |
Maybe a bit too early to close this. I'm seeing a few things, though hard as they are to demonstrate. Now running 0.1.4 There's frame hitches, but they are less frequent and only seem to appear when there isn't a huge amount of movement in the frame. Additionally, and rarely, there's a complete dropout of the frame and it goes gray. Significant improvement over 0.1.3 though. |
Hello. I have just installed your hack. I left working only rtsp (high) and http services. |
What client are you using? |
After upgrade it works better. Thanks. |
See this post for more details: #81 (comment) |
I am running 0.2.0 on 8.2.0.0A_202007211802. All works fine, but I am still seeing occasional artefacts and distortions on RTSP High. It's not seen on the Cloud app, only on RTSP. It's worse during the day, even when I am not using the WiFi for other work? What I've tried and didn't make a difference:
I couldn't find how to verbose log the RTSP service? |
Try to run rtsp server manually and check if there are any errors in console. |
No errors, just "Play this stream using the URL..." |
Sorry, try debug option and check the output when the client reads the stream. |
Well I cannot make up a lot out of it, since there is a lot of information and no time entries. This is the log of about 30 minutes and it happened twice during that time. |
Approximately at lines 8340 and 14200 there is a wrong sequence: two IDR frames close together. |
Is there any other way I could troubleshoot this? I can see it happening way more during the day, barely at night (less light, movement?). Interestingly, the location inside the house also plays a role. I have 3 camera's, which all work almost flawless inside the living, even in the loft with poorer WiFi reception. But in the hall, they all give me the same results with occasional distortion. I'm not that bothered by the 2 seconds of distortion every now and then, but it's enough for Zoneminder to record a motion event for it. |
I could try to add other logs. |
Try this: |
Sorry for not having replied in a while. With your supplied version it looks to be more stable than it was, so getting a log also looks to be more difficult. When I run /home/yi-hack/bin/rRTSPServer -d 2> /tmp/log_rtsp.txt it takes a while before it shows distortion, but when it does the SSH session was already expired and the log is removed? I do see a couple of debug logs being created now. Any suggestion how I can help more? |
I fixed other errors. Here it is: |
I have been testing with the 0.2.1 version, unfortunately still distortions. In the attached log_rtsp.txt somewhere near the end an example of visible distortion. I also see many frame_len: 20 records, although I have no idea is that is expected right now. Edit: Also added logs from the rRTSPServer version you added above this post. |
Try this version, I fixed a problem. |
Alas, still seeing distortion. Added new logs with the version above. |
The log is perfect. |
No, it isn't. |
Screenshot from VLC, i have this from 0.1.8, and i thinks that can me power supply issue, becaouse i have connected USB mini to ethernet cable. I have this same on 0.2.2, but additional 0.2.2 is unstable. |
Occasionally a few frames are lost, both internally between processes and across the network. |
I have this all time, but only on ethernet cat 6. On normal USB cable 1m i havent this problems. |
I adjust voltage on my power supply and now i havent strips ;) |
Hi @roleoroleo, I am experiencing similar problem with BFUS 8.2 (yi-hack v0.2.4). High res stream is chopping so badly and artifacts are visible occasionally. Everything is disabled besides hi-res stream. Please find my log file enclosed. Any idea what is wrong ? I would appreciate any kind of support ! Moreover, do you know why there are both 360 and 1080 frames captured ? 1587155154271: frame_len: 755 - cb_current->size: 49152 |
The log is ok, no frame lost, no sync lost. About frames captured, the buffer contains both, high res and low res. |
@roleoroleo, thanks for quick response and checking the logs. Wifi strength is quite ok to my mind - around 80% - or you had something else in mind by indicating wifi connection ? Additionally, swap is created, system metrics are ok as well. Maybe I missed something and that is why I cannot make it working properly ? |
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. |
Project Version
0.1.2
Description
During viewing and recording the the RTSP Stream, I noticed significant artifacting and distorting of the following clip.
tmp.mp4.zip
Viewing the file in VLC leads to the image showing as distortion, while viewing in QuickTime Player the clips shows as artifacting at the top and a black/green screen at the bottom.
FFMPEG -version
VLC Version
3.0.8
QuickTime Player Version
10.5 (1015.2.1)
The text was updated successfully, but these errors were encountered: