vlm api call seems to be blocking

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
FvE
New Cone
New Cone
Posts: 3
Joined: 10 Sep 2015 10:39

vlm api call seems to be blocking

Postby FvE » 10 Sep 2015 16:54

Hi,

I want to use the vlm api library in my own application to create a vod stream. Therefore I have the following code (for prototyping):


int main(int argc, char **argv)
{
const char* psz_name = "test";

/* Load the VLC engine */
libvlc = libvlc_new(0, NULL);

libvlc_vlm_add_vod(libvlc, psz_name, "rtsp://192.168.1.201:554/axis-media/media.amp", 0, NULL, false, NULL);
libvlc_vlm_set_output(libvlc, psz_name, "#rtp{sdp=rtsp://192.168.1.101:5678/axis-media/media.amp}");

libvlc_vlm_set_enabled(libvlc, psz_name, true);

sleep(60);

libvlc_vlm_release (libvlc);

return 0;
}

If I run this code, I have two issues:

1. by using the rtp option you can not make a vod stream (which is exactly what the documentation describes). To make a vod stream, I should not use the rtp option, but how can I specify the outgoing port (5678 in the example code)?

2. when I run the libvlc_vlm_set_enabled call, the program does never get back. Do I use these library calls in a wrong way?

BTW, if I try to create my usecase by using the vlc application and the telnet connection for vlm, everything works fine. However, I have to embed this in my own application.

Any help would be appreciated.

Best regards,

Frank

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlm api call seems to be blocking

Postby Jean-Baptiste Kempf » 28 Jun 2016 09:17

Unfortunately, you need to read the code to fix this issue.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 7 guests