Page 1 of 1
use libvlc.dll within source code to save http stream
Posted: 02 Dec 2007 00:42
by Dovalle
Hi,
Im new with VLC.
i want to paly and save http stream using VLC dll via c++ code.
what is the preferred way to do so?
if you can please add pseudo code
thanks,
Re: use libvlc.dll within source code to save http stream
Posted: 03 Dec 2007 20:33
by jboileau
You can find an example here on using libvlc:
http://wiki.videolan.org/LibVLC_Tutorial_086c
All you have to do is replace libvlc_playlist_add by libvlc_playlist_add_extended which takes a list of options. These can include the MRL you see at the top of stream settings dialog. So if you can stream using the VLC application you should be able to do it with libvlc. you can find more details about libvlc_playlist_add_extended here:
http://www.videolan.org/developers/vlc/ ... 034f5373c7
Re: use libvlc.dll within source code to save http stream
Posted: 04 Dec 2007 19:21
by Dovalle
thanks for that info.
since im new with vlc, how could i know the options available. is there any document for option like for function protorypes?
Re: use libvlc.dll within source code to save http stream
Posted: 05 Dec 2007 00:07
by jboileau
You can run VLC with the command line switch --help and it will generate a text help file. Then you can look in that file for the basic options or look at the help switches to genrate a more detailed help file.
see here:
viewtopic.php?f=14&t=17203&p=53307&hili ... put#p53038
Re: use libvlc.dll within source code to save http stream
Posted: 05 Dec 2007 23:29
by Dovalle
thanks
what is "the URI to open, using VLC format " from the libvlc_playlist_add_extended ? (
http://www.videolan.org/developers/vlc/ ... 034f5373c7)
in addition, should i invoke anoher function after adding to playlist? what function?
Re: use libvlc.dll within source code to save http stream
Posted: 06 Dec 2007 00:11
by funman
an URI can be a file path
after adding to the playlist you might want to play it
Re: use libvlc.dll within source code to save http stream
Posted: 09 Dec 2007 00:02
by Dovalle
now im etting this error:
[00000348] access_mms access: selecting stream[0x1] audio (31 kb/s)
[00000348] access_mms access: connection successful
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
im using visual studio 2005.
any idea?