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

Rafaël Carré rafael.carre at gmail.com
Fri Jan 22 15:52:44 CET 2010


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.

Afaict, playing it a second time with --sout=#description will just add
the ES to the array so you'll see every ES duplicated.

Ideally, we should populate the array after preparsing, from input core.
This is doable although I need to spend some time because there is a
lot of code to read, unless fenrir prefers to do it rather than check
my patch.

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.

Also note that some information can be only available from the decoder,
so you'd have to play the media once to have more information.

> The answer should probably be in the description string.

Yeah, will do if it gets committed (I'd like it to be in before the
feature freeze and work on something better than the sout=#description
hack after that)

-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100122/632e832d/attachment.sig>


More information about the vlc-devel mailing list