[vlc-devel] [PATCH 6/6] libvlc: Get ES descriptions for media

Pierre d'Herbemont pdherbemont at free.fr
Fri Jan 22 16:26:41 CET 2010


On Fri, Jan 22, 2010 at 3:52 PM, Rafaël Carré <rafael.carre at gmail.com> wrote:
> On Fri, 22 Jan 2010 15:40:36 +0100
> "Pierre d'Herbemont" <pdherbemont at free.fr> wrote:
>
>> On Fri, Jan 22, 2010 at 3:25 PM, Rafaël Carré
>> <rafael.carre at gmail.com> wrote:
>> > ---
>> >  include/vlc/libvlc_media.h |   38 +++++++++++++++++++++++++++
>> >  src/control/media.c        |   61
>> > ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 99
>> > insertions(+), 0 deletions(-)
>>
>> That's something great. Rafaël, do you think that an event upon ES
>> reception is something doable as well?
>
> No I doubt it's needed: see below.
>
>> Also, do you know when ES are available? Is it after preparsing?
>
> At this moment you need to play the media once with
> --sout=#description , wait until playing started and stop it.

You should have a look at EsOutUpdateInfo then, it basically sends the
ES stream info to the input_item via input_Control(INPUT_ADD_INFO),
which then call input_item_AddInfo().

I actually like the fact that the result of these are strings.

> I'm not sure if preparsing is assumed to be finished after the input
> has been created: if it is then the information is immediately
> available so no need for an event, else if you can notify when
> preparsing has been done you add your event here.

For the meta and such (which requires preparsing), the core send
libvlc an event, and libvlc forwards it to the client.
So we would be doing the same thing.

Pierre.



More information about the vlc-devel mailing list