[vlc-devel] Add input option to libvlc_media_instance

jboileau jboileau at gmail.com
Thu Dec 13 23:09:27 CET 2007


It seemed like a great idea but unfortunatly it didn't work (see trace
below). :-( Can't seem to options after the filename.

As per media_descriptor.c libvlc_media_descriptor_new is built using
input_ItemNew
but to do what I want I would probably need one built using input_ItemNewExt
which does not exist. Is there any other way to specify input options in the
libvlc_media_descriptor_... API? I have noticed a function to write a 'tag'
to a descriptor. Are tags the same as options?


Trace
------------------------------------
creating demux: access='' demux='' path='test.avi --sout-all'
looking for access_demux module: 1 candidate
cannot open dvdnav
creating access '' path='test.avi --sout-all'
looking for access2 module: 5 candidates
trying .cue file: test.cue
could not find .cue file
opening directory `test.avi --sout-all'
test.avi --sout-all: Unknown network stack error
opening file `test.avi --sout-all'
cannot open file test.avi --sout-all (Unknown network stack error)
trying .cue file: test.cue
ould not find .cue file
could not open test.avi --sout-all
open of `test.avi --sout-all' failed: could not create access: no suitable
access2 module
On Dec 13, 2007 2:57 PM, Pierre d'Herbemont <pdherbemont at free.fr> wrote:

> Hi Jacques,
>
>
> On Dec 13, 2007, at 7:48 PM, jboileau wrote:
>
> > How can I add input options (a list of arguments like --sout-all
> > etc) when using the libvlc_media_descriptor_... API? What API
> > function should I call to do this?
> >
> > I would like to do something similar to libvlc_playlist_add_extended
> > but using the libvlc_media_descriptor_... and
> > libvlc_media_instance_.. APIs.
>
> You should be able to do use the mrl [1] ":options" for that:
> libvlc_media_descriptor_new( p_libvlc, "myfile.avi :sout-all", &e);
>
> Pierre.
>
> [1] http://wiki.videolan.org/MRL
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



-- 
Jacques Boileau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071213/1910c32a/attachment.html>


More information about the vlc-devel mailing list