[gst-devel] Get frames at time stamps
Bastien Nocera
hadess at hadess.net
Tue May 25 21:43:22 CEST 2010
On Fri, 2010-05-21 at 00:53 +0400, Alexander Saprykin wrote:
> Hi folks,
>
> my name is Alexander Saprykin and I'm participating in GSoC for Totem
> chapters plugin. Maybe you've seen some of my posts on planet.gnome.org.
> If you are interesting in this project, you can track progress on my
> blog: axsaprykin.blogspot.com.
>
> I'm implementing chapters list now, and the problem is that I need to
> get frame for every chapter at predefined time stamp. For example, I
> want to get screens from video at 43 secs, 120 secs and 150 secs. Is
> there any way to do it inside Totem plugin? Or I need to go through the
> whole video file like totem-thumbnailer does?
One thing that could be done is:
- remember where the slider was (for session restoration)
- popup a dialogue saying we're updating thumbnails (and cache them)
- go through the different times, and capture the images
- restore the previous location
In a number of cases, we would want to capture the thumbnails as we're
adding the markers to the file, so we wouldn't need to capture them
afterwards.
For files with existing chapter markers, we might be able to disconnect
the video output for the duration of the capture (for example, when
opening a matroska file, or DVD with chapters, you wouldn't want to see
the whole film in slideshow form...).
More information about the gstreamer-devel
mailing list