streaming h264 problem with libvlc.dll in VC++

About encoding, codec settings, muxers and filter usage
silvara
Blank Cone
Blank Cone
Posts: 29
Joined: 03 Jul 2008 10:52

streaming h264 problem with libvlc.dll in VC++

Postby silvara » 16 Oct 2008 15:57

Hi all;

I am using libvlc.dll able to trancode webcam.
I used below tutorial to be able to do it.. I couldt succed it with 9.4 version but 8.6c..

http://wiki.videolan.org/LibVLC_Visual_C

there is a problem with vlc 8.6c libvlc.dll and plugins ..

this is the commands buffer part including codec information...
:sout=#transcode{vcodec=h264,vb=1024,scale=1}:duplicate{dst=rtp{mux=ts,dst=%s,port=%s}}

When i run my exe it gives below errors;

Code: Select all

x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 x264 [info]: using SAR=12/11 x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 [00000298] main private error: cannot add this stream [00000294] stream_out_rtp private error: cannot ad this stream to the muxer [00000301] main packetizer error: cannot create packetizer output (s161)
Is it the version problem .. i am not sure if vlc 8.6c supports h264 transcoding..

Thanks

silvara
Blank Cone
Blank Cone
Posts: 29
Joined: 03 Jul 2008 10:52

Re: streaming h264 problem with libvlc.dll in VC++

Postby silvara » 23 Dec 2008 13:54

Some how it worked :S... Here it is as below for whom struggling for the same problem...

Code: Select all

char ** commands = new char*[6]; commands[0] = "vc.exe"; commands[1] = "dshow://"; commands[2] = ":dshow-vdev=Philips SPC 900NC PC Camera"; commands[3] = ":dshow-adev="; commands[4] = ":dshow-size=176x144"; len = sprintf(buff,":sout=#transcode{vcodec=h264,vb=1024,scale=1}:duplicate{dst=rtp{mux=ts,dst=%s,port=%d}}",ip,port); commands[5] = (char *) malloc(len+1); if(commands[5] == NULL){ printf("no memory\n"); }else{ strcpy(commands[5],buff); } i_ret = (VLC_Init)(vlc_id, 6, commands );


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests