<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<div><font face="Calibri">Hi,</font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">I built a small program in C to stream using VLM
libreries, but it still does not work,</font></div>
<div><font face="Calibri">Can someone help or tell me why?</font></div>
<div> <br>#include <stdio.h><br>#include <vlc/libvlc.h><br>#include <vlc/libvlc_vlm.h><br><br><br>int main(int argc, char* argv[])<br>{<br> libvlc_exception_t excep;<br> libvlc_instance_t *inst;<br> libvlc_exception_init( &excep );<br> const char *args[] = {"-vvv","--sout"};<br> inst = libvlc_new( sizeof(args) , args , &excep );<br> const char * smiya = {"smiya_VOD"};<br> const char * cam = {"v4l2://"};<br> const char * par_sout = {"#transcode{vcodec=h264,vb=800,scale=1}:duplicate{dst=std{access=udp,mux=ts,dst=127.0.0.1:1234},dst=display}"}; <br> const char * muxer = {"ts"};<br> printf("The Media name is: %s \n", smiya);<br> puts("Realisation of VLM instance");<br> libvlc_vlm_release( inst, &excep ); <br> puts("Add the broadcast to the instance");<br> libvlc_vlm_add_broadcast( inst , smiya , cam , par_sout , 0 , NULL , 1 , 0 , &excep );<br> puts("Configuration of the Media");<br> libvlc_vlm_set_output( inst , smiya , par_sout , &excep );<br> puts("Play the Media");<br> libvlc_vlm_play_media ( inst , smiya , &excep );<br> sleep(5);<br> puts("Stop the Media");<br> libvlc_vlm_stop_media ( inst , smiya , &excep );<br> puts("Delete the Media");<br> libvlc_vlm_del_media( inst , smiya , &excep );<br> return 0;<br>}<br></div>
<br /><hr />Vous cherchez l'intégrale des clips de Michael Jackson ? <a href='http://www.bing.com/videos/search?q=Michael+Jackson&FORM=MVDE6' target='_new'>Bing ! Trouvez !</a></body>
</html>