[vlc-devel] [PATCH] Add libvlc_media_take_snapshot

Rémi Denis-Courmont remi at remlab.net
Wed Apr 24 12:11:41 CEST 2013


On Wed, 24 Apr 2013 11:04:52 +0200, Rafaël Carré <funman at videolan.org>
wrote:
> Le 24/04/2013 09:50, Rémi Denis-Courmont a écrit :
>> On Wed, 24 Apr 2013 08:21:20 +0200, Rafaël Carré <funman at videolan.org>
>> wrote:
>>> This function returns a snapshot for a given libvlc_media_t
>>> This ought to be much faster and convenient than using vmem output to
>>> generate thumbnails
>> 
>> This does not belong in the input decoder code.
> 
> I don't see why?

This is bloating the interface of the ES output and the input decoder
adaptor. It is already hard to follow as it stands (and has some
"interesting" timing bugs). If you want to use decoder in a yet new way,
you should write your own adaptor like transcode already. To make matters
worse, I suspect you will need to bloat the interface even more to address
timing and memory leaking.

> Anyway I am open to suggestions but this way seems to be not too much
> intrusive.

I would hazard that resurrecting the image vout, or adding a thumbnailing
stream output would be easier and not require any change to the core. But
for a start, you could probably simply expose one of the supposedly
existing vmem wrapper into lib/; it wouldn't be the first time a set of
libvlc functions is layered on another one.

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list