simple streaming

This forum is about all development around libVLC.
nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

simple streaming

Postby nusrat1990 » 09 Jan 2011 13:41

Hello.
I can create a stream server using command line:
vlc "c:\downloads\bbb24p_00.ts" :sout=#udp{dst=127.0.0.1:1234} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep
now I want to create the same stream programmatically.
Thanks in advance.

abak
New Cone
New Cone
Posts: 1
Joined: 21 Jan 2011 18:56

Re: simple streaming

Postby abak » 21 Jan 2011 19:09

Hello.
I can create a stream server using command line:
vlc "c:\downloads\bbb24p_00.ts" :sout=#udp{dst=127.0.0.1:1234} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep
now I want to create the same stream programmatically.
Thanks in advance.
For simple streaming try to use libvlc_vlm :http://www.videolan.org/developers/vlc/ ... __vlm.html

It may be something like this:

Code: Select all

const char * const vlc_args[] ={ "-vvv", "-I","dummy","--ignore-config", }; inst = libvlc_new(sizeof(vlc_args) / sizeof(*vlc_args), vlc_args); libvlc_vlm_add_broadcast(inst, "Test", "c:\downloads\bbb24p_00.ts", "#udp{dst=127.0.0.1:1234}}",0,NULL, true, true); libvlc_vlm_play_media(inst,"Test");

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: simple streaming

Postby nusrat1990 » 20 Mar 2011 12:12

Thank you for help, but It doesn't work.

Code: Select all

const char * const vlc_args[] ={ "-vvv", "-I","dummy","--ignore-config", "--plugin-path=C:\\Program Files\\VideoLAN\\VLC\\plugins\\" }; libvlc_instance_t * inst; inst = libvlc_new(sizeof(vlc_args) / sizeof(*vlc_args), vlc_args); libvlc_vlm_add_broadcast(inst, "Test", "k:\samples\bbb24p_00.ts", "#udp{dst=127.0.0.1:1234}",0,NULL, true, true); libvlc_vlm_play_media(inst,"Test");
I try to receive stream, nothing happens. Client arguments:
vlc -vvv udp://127.0.0.1@:1234

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: simple streaming

Postby nusrat1990 » 20 Mar 2011 15:54

oh, two slashes...
"k:\\samples\\bbb24p_00.ts"

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: simple streaming

Postby nusrat1990 » 26 Mar 2011 23:13

I have a wvc1 bitstream and i want to mux it into asf and send it to some udp/http port for further processing.
Here is the piece of code:

Code: Select all

const char * const vlc_args[] ={ "-vvv" , "-I","dummy","--ignore-config", "--plugin-path=C:\\Program Files\\VideoLAN\\VLC\\plugins\\" }; libvlc_instance_t * inst; inst = libvlc_new(sizeof(vlc_args) / sizeof(*vlc_args), vlc_args); libvlc_vlm_add_broadcast(inst, "Test", "k:/samples/test.vc1","#transcode{vcodec=WVC1,vb=2000,fps=25,deinterlace,width=720,height=576}:standard{access=udp,mux=asf,dst=127.0.0.1}",0,NULL, true, 1); libvlc_vlm_play_media(inst,"Test");
1) What's wrong here?
2) How to mux audio(wma) and video(wvc1) together in the same manner?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 2 guests