Page 1 of 4

RVMedia 6 and RTSP - Network problems

Posted: Sat May 25, 2019 8:08 pm
by Mr. Bean
Hi,

I have the following problems with RVMedia

First:
When I first connect to a RTSP Camera, connection works. When I disconnect and reconnect, I get no image until I restart the whole software.
Is there anything with the network I need to reset addtional?

Configuration

Code: Select all

mainform.RVCamera1.DeviceType := trvdevicetype.rvdtRTSP;
mainform.RVCamera1.URL := 'rtsp://user1:[email protected]:554/live/ch0';
mainform.RVCamera2.DeviceType := trvdevicetype.rvdtRTSP;
mainform.RVCamera2.URL := 'rtsp://192.168.1.11:554/user:user1&password=password01&channel0&stream=0.sdp?';
Start Playing

Code: Select all

Mainform.RVCamera1.PlayVideoStream;
Mainform.RVCamera2.PlayVideoStream;
Stop Playing

Code: Select all

 mainform.RVCamera1.Abort;
 mainform.rvcamera1.WaitForVideo;
 mainform.RVCamera2.Abort;
 mainform.rvcamera2.WaitForVideo;
Second:
I can connect to a Wansview IP Camera W3 X Series via VLC, but I get no connection via RVMedia. Connection string as below (Also copied as RVCamera2.URL). Must it be changed for RVMedia?

Code: Select all

         rtsp://user:password@ip:554/live/ch0
Example: rtsp://user1:[email protected]:554/live/ch0

Re: RVMedia 6 and RTSP - Network problems

Posted: Sun May 26, 2019 5:38 pm
by Sergey Tkachenko
Sorry, I do not understand the second question.
Does the both cameras work initially in the first example?

Re: RVMedia 6 and RTSP - Network problems

Posted: Mon May 27, 2019 4:30 pm
by Mr. Bean
The camera with RTSP
rtsp://192.168.1.11:554/user:user1&password=password01&channel0&stream=0.sdp?
works without problem.

The camera with RTSP
rtsp://user1:[email protected]:554/live/ch0
is not recognized by RVMedia.

Problem is, when I stop and start the cameras for a second time, also the first RTSP Camera is no longer working. After restarting the software, the first RTSP Camera works again. For me, it looks like that a network stack or port reservation does not catch a closing and is blocked on the second start.

Example:

Code: Select all

mainform.RVCamera2.DeviceType := trvdevicetype.rvdtRTSP;
mainform.RVCamera2.URL := 'rtsp://192.168.1.11:554/user:user1&password=password01&channel0&stream=0.sdp?';
Mainform.RVCamera2.PlayVideoStream;
//camera is working. Video and images can be catched, Live Stream is shown.
mainform.RVCamera2.Abort;
mainform.rvcamera2.WaitForVideo;
 
Mainform.RVCamera2.PlayVideoStream;
//camera is no longer working until software is closed and restartet

Re: RVMedia 6 and RTSP - Network problems

Posted: Tue May 28, 2019 7:09 am
by Sergey Tkachenko
Are you sure that the second version of URL is correct?

We are preparing the next update, I hope it will be released very soon, we just need to verify that everything is ok.
While the problem with the TRVCamera restart was not addressed specially, we cleaned up the code for starting and stopping TRVCamera threads, so this problem might be gone.
If we will not be able to release this update in this week, I can send a beta to you.

Re: RVMedia 6 and RTSP - Network problems

Posted: Tue May 28, 2019 7:45 pm
by Mr. Bean
Sorry, typing error.

It must be user=user1 and not user:user1

Please send me the beta. I have a presentation next week and need to show that it works.

Thank you.

Code: Select all

mainform.RVCamera2.DeviceType := trvdevicetype.rvdtRTSP;
mainform.RVCamera2.URL := 'rtsp://192.168.1.11:554/user=user1&password=password01&channel0&stream=0.sdp?';
Mainform.RVCamera2.PlayVideoStream;
//camera is working. Video and images can be catched, Live Stream is shown.
mainform.RVCamera2.Abort;
mainform.rvcamera2.WaitForVideo;
 
Mainform.RVCamera2.PlayVideoStream;
//camera is no longer working until software is closed and restartet

Re: RVMedia 6 and RTSP - Network problems

Posted: Thu May 30, 2019 6:41 pm
by Sergey Tkachenko
I'll send it in this weekend. Unfortunately, the current working version has a couple of major bugs that we need to fix before.

Re: RVMedia 6 and RTSP - Network problems

Posted: Thu Jun 13, 2019 8:13 am
by panlab_mf
Hi all,

I'm dealing the same issues, more or less.

I let the user to edit the url to connect to in a showmodal dialog, if the url is ok the application shows a preview of the camera. When the user accepts the configuration dialog, the connection is closed.

Code: Select all

//camera is working. Video and images can be catched, Live Stream is shown.
configform.RVCamera1.Abort;
configform.RVCamera1.WaitForVideo;
Then the main form applies the configuration to show the recetly edited camera but the most of the time it fails, and no image is received from the camera.

Can you also send me the beta?

Thanks.

Re: RVMedia 6 and RTSP - Network problems

Posted: Thu Jun 13, 2019 8:41 pm
by Sergey Tkachenko
RVMedia is very close to a release, at least as a public beta.
If we will not be able to release it till the end of this week, I'll send it to you by email.

Re: RVMedia 6 and RTSP - Network problems

Posted: Fri Jun 28, 2019 8:07 am
by panlab_mf
Hi Sergey,

Ok, I will wait for the public beta or the final relase, whatever comes first.

Best regards,

Re: RVMedia 6 and RTSP - Network problems

Posted: Mon Jul 22, 2019 10:20 pm
by Mr. Bean
Dear Sergey,

any news with solving the network problem, the beta or new release?

Thank you.
Mr. Bean

Re: RVMedia 6 and RTSP - Network problems

Posted: Thu Oct 10, 2019 2:37 pm
by mitzi
Hi all, I'm evaluating R7 Trial and have very similar problems. My application is client connected to TCPIP server. I use only one RVCamera. When I call Abort (to change url to view different camera sources) for the third time, TCPIP connection to server is broken and also RVCamera does not work anymore. There must be really serious bug in Abort procedure.
Please fix it.

Re: RVMedia 6 and RTSP - Network problems

Posted: Thu Oct 10, 2019 7:58 pm
by Sergey Tkachenko
Do you use FFmpeg to view video streams?
Are video streams RTSP?
Do I understand correctly: several calls of Abort lead to disconnection of other TCP connection not related to RVMedia? Does the problem happen when you call Abort or when you call PlayVideoStream after Abort?
What's the value of RVCamera.CommandMode?

Re: RVMedia 6 and RTSP - Network problems

Posted: Fri Oct 11, 2019 6:16 am
by mitzi
Yes, I use FFMpeg. I have already found out that when I disable FFMpeg or remove its libraries from path then connection problems don't occur.
My CommandMode is rvsmWait, I don't use events but WaitForXXX. And you are right, it seems problems start after PlayVideoStream, Abort seems to be proceeded correctly.
I use two camera sources for testing:
rtmp://semerkandglb.mediatriple.net:1935/semerkandliveedge/semerkand2
http://150.214.222.100/mjpg/video.mjpg

Re: RVMedia 6 and RTSP - Network problems

Posted: Fri Oct 11, 2019 9:52 am
by Sergey Tkachenko
The problem may be in the specific version of FFmpeg. What build do you use?

Re: RVMedia 6 and RTSP - Network problems

Posted: Fri Oct 11, 2019 1:09 pm
by mitzi
Latest one. ffmpeg-4.2.1-win32-shared.zip