<div dir="ltr"><div><div>Hi,<br><br></div>I want to use the vlm api library in my own application to create a vod stream. Therefore I have to following code (for prototyping):<br><br><br>int main(int argc, char **argv)<br>{<br> const char* psz_name = "test";<br><br> /* Load the VLC engine */<br> libvlc = libvlc_new(0, NULL);<br><br> libvlc_vlm_add_vod(libvlc, psz_name, "rtsp://<a href="http://192.168.1.201:554/axis-media/media.amp">192.168.1.201:554/axis-media/media.amp</a>", 0, NULL, false, NULL);<br> libvlc_vlm_set_output(libvlc, psz_name, "#rtp{sdp=rtsp://<a href="http://192.168.1.101:5678/axis-media/media.amp">192.168.1.101:5678/axis-media/media.amp</a>}");<br><br> libvlc_vlm_set_enabled(libvlc, psz_name, true);<br><br></div> sleep(60);<br><div><br> libvlc_vlm_release (libvlc);<br><br> return 0;<br>}<br><br></div><div>If I run this code, I have two issues:<br><br></div><div>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)?<br><br></div><div>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?<br><br></div><div>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.<br><br></div><div>Any help would be appreciated.<br></div><div><br></div><div><div><div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, sans-serif" color="#444444">Met vriendelijke groeten / With kind regards,<br><br></font></div><div><font face="arial, sans-serif" color="#444444"><b>Frank van Eijkelenburg</b> Lead Designer</font></div><div><font face="arial, sans-serif"><br></font></div><div><span style="font-family:arial,sans-serif;line-height:1.5;background-color:transparent"><b><font color="#999999">T</font></b> <font color="#444444">+31(0)182594000</font> <font color="#ffd966">|</font> <font color="#999999"><b>E</b></font> <font color="#444444"><a href="mailto:frank.van.eijkelenburg@technolution.nl" target="_blank">frank.van.eijkelenburg@technolution.nl</a></font><a href="http://www.google.com/url?q=http%3A%2F%2Flinkedin.nl%2F%253C%253Cvoornaamachternaam%253E%253E&sa=D&sntz=1&usg=AFrqEzdYyF21CXz0c9GlCBfxLRkl-NCpRw" target="_blank"><font color="#444444"></font></a></span></div><div><b style="font-family:arial,sans-serif;line-height:1.5;background-color:transparent"><font color="#999999">A</font></b><span style="font-family:arial,sans-serif;line-height:1.5;background-color:transparent"> <font color="#444444">Burgemeester Jamessingel 1, P.O. Box 2013, 2800 BD Gouda, The Netherlands</font> <font color="#ffd966">|</font> </span><font style="font-family:arial,sans-serif;line-height:1.5;background-color:transparent" color="#999999"><b>W</b></font><span style="font-family:arial,sans-serif;line-height:1.5;background-color:transparent"> <font color="#444444"><a href="http://technolution.com" target="_blank">technolution.com</a></font></span></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif" color="#444444" size="1">This
e-mail is intended exclusively for the addressee(s), and may not be
passed on to, or made available for use by any person other than the
addressee(s). Technolution B.V. rules out any and every liability
resulting from any electronic transmission.</font></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div>