[vlc-devel] main mux error: no sout mux module matched "ts"

youssef azzouzi sidimoulay2000 at hotmail.fr
Mon Sep 14 14:04:39 CEST 2009







Sorry,
 
I had a bug on my computer and I thought that the 
message was not sent, by the way I solved the problem by installing libdvbpsi5-dev 
and
recompiling VLC.
 
My program is bellow, it seems to be correct but it 
still does not work, any idea?
( to stream my camera to IP:Port )

 
 #include <stdio.h>
#include <vlc/libvlc.h>
#include <vlc/libvlc_vlm.h>


int main(int argc, char* argv[])
{
    libvlc_exception_t excep;
    libvlc_instance_t *inst;
    libvlc_exception_init( &excep );
    const char *args[] = {"-vvv","--sout"};
    inst = libvlc_new( sizeof(args) , args , &excep );
    const char * smiya = {"smiya_VOD"};
    const char * cam = {"v4l2://"};
    const char * par_sout = {"#transcode{vcodec=h264,vb=800,scale=1}:duplicate{dst=std{access=udp,mux=ts,dst=192.168.203.3:1234},dst=display}"}; 
    const char * muxer = {"ts"};
    printf("Le nom de Media est: %s \n", smiya);
    puts("Réalisation d'une instance de VLM");
    libvlc_vlm_release( inst, &excep );    
    puts("L'ajout de VoD");
    libvlc_vlm_add_vod( inst , smiya , cam , 0 , NULL , 1 , muxer , &excep );
    puts("Configuration de Media");
    libvlc_vlm_set_output( inst , smiya , par_sout , &excep );
    puts("Jouer le media");
    libvlc_vlm_play_media ( inst , smiya , &excep );
    sleep(5);
    puts("L'arret de Media");
    libvlc_vlm_stop_media ( inst , smiya , &excep );
    puts("Suppression de Media");
    libvlc_vlm_del_media( inst , smiya , &excep );
    return 0;
}
_________________________________________________________________
Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie !
http://www.portable-windows.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090914/a717f4b0/attachment.html>


More information about the vlc-devel mailing list