Page 3 of 4

Re: RVMedia 6 and RTSP - Network problems

Posted: Fri Nov 22, 2019 6:56 am
by mitzi
I really don't think it's FFmpeg problem. Did you inspect suggested solution?

Re: RVMedia 6 and RTSP - Network problems

Posted: Tue Dec 03, 2019 10:45 am
by mitzi
Latest version 7.1.1 still suffers from this bug.

Re: RVMedia 6 and RTSP - Network problems

Posted: Wed Dec 18, 2019 2:27 pm
by SkyX
Hello! The problem has not yet been identified?

Today I was doing the final testing of my program and got a very similar problem.
After 3 times RVCamera aborting, FireDAC close remote database connection!
It is really big problem.

FFmpeg used with rtsp and http connections to IP cameras.
When I use web-cameras is no problem. When I use FireDAC local connections and connect cameras with rtsp/http is no problem too.

Re: RVMedia 6 and RTSP - Network problems

Posted: Wed Dec 18, 2019 4:11 pm
by SkyX
UPD:
I replaced

Code: Select all

avformat_close_input(pFormat_context);
with

Code: Select all

avformat_free_context(pFormat_context);
in MRVFFMPEGObject like @mitzi sayd few days ago.

In my project problem solved with http connection, but with rtsp connection after three times aborting video disappears but after 2-3 minutes waiting after the PlayVideoStream connection works fine again.

Re: RVMedia 6 and RTSP - Network problems

Posted: Thu Dec 19, 2019 5:36 am
by SkyX
Here is source code of small application: https://drive.google.com/open?id=1vExqv ... pTeTSBQkWU

This shows an even more severe bug with disabling sockets after a single start of local file playback.
Somewhere inside the component sockets or something else are crashing.
Re-initialization (WSAstartup) in this simple case helps, but what to do with connecting to the database, for example?

Mp4 file is inside. Just put FFmpeg files, recompile and run. Then press ping button before and after playback.

Re: RVMedia 6 and RTSP - Network problems

Posted: Thu Dec 19, 2019 10:07 am
by SkyX
UPD 3:

My experiments with old versions of RVMedia and old unknown version of FFMpeg files:

avcodec-56.dll
avdevice-56.dll
avfilter-5.dll
avformat-56.dll
avutil-54.dll
swresample-1.dll
swscale-3.dll

Results:

RVMedia 6.1 - close connections
RVMedia 5.X (maybe 5.3) - close connections
RVMedia 5.0.1 don't close connections!

With the same FFMpeg files different versions of RVMedia works differently in our case.

5.0.1 don't close other connections in program and works stable.
I try with local files, rtsp and http streams. I do 50+ abort and playvideostream operations.
But artefacts present some times with rtsp (fixed only in 7+ version of RVMedia).

There is 99% not FFMpeg problem! Any ideas?

Re: RVMedia 6 and RTSP - Network problems

Posted: Fri Dec 20, 2019 7:32 pm
by Sergey Tkachenko
I do not forget about this problem. However, there are several other problems in our queue, they need to be solved first. Sorry.

Re: RVMedia 6 and RTSP - Network problems

Posted: Sat Dec 21, 2019 8:47 pm
by Sergey Tkachenko
Solution:

Open MRVFFMPEGObject.pas
Remove the calls of RegisterFFMPEG and UnregisterFFMPEG from this unit.

Re: RVMedia 6 and RTSP - Network problems

Posted: Sun Dec 22, 2019 2:14 am
by SkyX
Nice! Big thx, Sergey!

Re: RVMedia 6 and RTSP - Network problems

Posted: Fri Feb 21, 2020 4:36 am
by SkyX
Sergey, Hi.

This post scarcely related to this topic.

I have a little trouble with 7.2 version:
After first calling PlayVideoStream nothing happens (for http, rtsp and local files).
After Abort and secondary calling PlayVideoStream all works fine.

You can download example from this post https://www.trichview.com/forums/viewto ... 190#p37190.

Now I'm forced to use 7.1.1 with removed calls RegisterFFMPEG/UnregisterFFMPEG. This solution works perfect.

Am I alone seeing this error or is it a problem in my hands?

Re: RVMedia 6 and RTSP - Network problems

Posted: Fri Feb 21, 2020 6:49 pm
by Sergey Tkachenko
I cannot reproduce this problem: video is played immediately when I press "RVCamera PlayVideoStream" button.
Version 7.2 has a known problem with TRVCamMultiView (a bug fix will be released soon), but this demo uses TRVCamView…

Can you test a compiled exe file: https://www.trichview.com/support/files ... rttest.zip ?

Re: RVMedia 6 and RTSP - Network problems

Posted: Sat Feb 22, 2020 2:11 am
by SkyX
Compiled project10 plays video immediately.
Ok, probably it is my local problem. Thx.

Re: RVMedia 6 and RTSP - Network problems

Posted: Wed Feb 26, 2020 5:28 am
by SkyX
7.2.1 nice build. All my problems solved.

Re: RVMedia 6 and RTSP - Network problems

Posted: Wed Feb 26, 2020 8:51 am
by mitzi
Unfortunatelly, new issue (7.2, 7.2.1) appeared.

When stopping camera (<link removed>), application freezes in neverending loop in function TRVMFFMPEG.Abort (called from TRVCamHTTPGetThread.Abort) at

while IsStart and not IsPlaying do
RVMWait(RV_AbortWaitTime);

because FState is rvffmsStarting and stays so. I assume FState should be rvffmsPlaying when camera is playing (And it is - visually checked).

Sometimes this happens after several successfull stops/starts, sometimes on first stop.

Where can I download version 7.1?

Re: RVMedia 6 and RTSP - Network problems

Posted: Wed Feb 26, 2020 5:17 pm
by Sergey Tkachenko
We will try to fix this problem ASAP.
Version 7.1 is not available for downloading, but I can send it to you. However, version 7.2 fixes several bugs, so I do not recommend to downgrade.