[vlc-devel] Re: vlc: svn commit r9232 (gbazin)

Derk-Jan Hartman hartman at videolan.org
Mon Nov 8 02:01:42 CET 2004


No, it's simpler. there is one format, but a lot of exceptions :)
a MRL is constructed thus:
[access[/demux]://]URL[@[title][:chapter][-[title][:chapter]]]  
[:inputoptionname=optionvalue]

--option  global option. only works from the commandline and sets a  
global default. These options will be saved upon a config save. They  
can be overridden by input specific options. You 'can' set them once  
the program is launched (by using config_Set), but since they are  
saveable this is not advised. If you need a --option that is not  
available trough a :option then rather port the option to the variable  
system. config_Set and config_Get (user for --option) should be avoided  
as much as possible.

:option   playlistitem specific option. only applies to the item which  
it follows directly. (space separated from the playlistoption) usable  
from commmandline and from interfaces

if you don't specify a access:// then vlc will assume that it is a  
location on your filesystem and try plugins that work there (file, dvd,  
vcd, etc)

Some access modules don't require a URL at all (udp unicast receiving)
Some (mostly) access_demux modules allow you to set access specific  
options trough special fields in the url. this is partly an overloading  
of our current input specific options, but is caused by legacy I guess?  
examples are v4l (v4l://options:v4l-chroma=YUY2) and dshow i believe...

btw. it's :sout='#std'
:sout '#std' won't work (we should make this equal for both systems...

DJ

On 07 nov 2004, at 23:11, Jean-Paul Saman wrote:

> Gildas,
>
> What is the exact format for MRL and options then? There are 3 formats  
> as I understand now:
>
> (commandline)     vlc dvd:///dev/dvd --sout  
> '#std{mux="ts",access="udp",url="127.0.0.1:1234"}'
> (v4l style)             dvd:///dev/dvd:sout  
> '#std{mux="ts",access="udp",url="127.0.0.1:1234"}'
> (rc interface style) dvd :///dev/dvd:sout  
> '#std{mux="ts",access="udp",url="127.0.0.1:1234"}'
>
> BTW you implementation is cleaner ;-)
>
>> r9232 | gbazin | 2004-11-07 21:12:51 +0100 (Sun, 07 Nov 2004) | 2  
>> lines
>> Changed paths:
>>   M /branches/0.8.1/modules/control/rc.c
>>
>> * modules/control/rc.c: reverted commit r9223 and added proper MRL  
>> parsing.
>>
>>
>
> --  
>
> Many greetings,
>     Jean-Paul Saman
>
> ======================================================================= 
> ===
>           VLC iPAQ maintainer (http://www.videolan.org)
>          RedHat Certified Engineer (RHCE: 807202745005548)
> ======================================================================= 
> ===
>
>
---
Universiteit Twente
Derk-Jan Hartman (d.hartman at student.utwente dot nl)
http://home.student.utwente.nl/d.hartman

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list