use libvlc.dll within source code to save http stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Dovalle
New Cone
New Cone
Posts: 4
Joined: 02 Dec 2007 00:24

use libvlc.dll within source code to save http stream

Postby Dovalle » 02 Dec 2007 00:42

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,

jboileau
Blank Cone
Blank Cone
Posts: 17
Joined: 13 Dec 2005 21:05

Re: use libvlc.dll within source code to save http stream

Postby jboileau » 03 Dec 2007 20:33

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

Dovalle
New Cone
New Cone
Posts: 4
Joined: 02 Dec 2007 00:24

Re: use libvlc.dll within source code to save http stream

Postby Dovalle » 04 Dec 2007 19:21

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?

jboileau
Blank Cone
Blank Cone
Posts: 17
Joined: 13 Dec 2005 21:05

Re: use libvlc.dll within source code to save http stream

Postby jboileau » 05 Dec 2007 00:07

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

Dovalle
New Cone
New Cone
Posts: 4
Joined: 02 Dec 2007 00:24

Re: use libvlc.dll within source code to save http stream

Postby Dovalle » 05 Dec 2007 23:29

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?

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: use libvlc.dll within source code to save http stream

Postby funman » 06 Dec 2007 00:11

an URI can be a file path

after adding to the playlist you might want to play it

Dovalle
New Cone
New Cone
Posts: 4
Joined: 02 Dec 2007 00:24

Re: use libvlc.dll within source code to save http stream

Postby Dovalle » 09 Dec 2007 00:02

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?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests