it takes longer time to generate thumbnail by gstreamer enginee than before

Bug #193612 reported by donald
2
Affects Status Importance Assigned to Milestone
Moblin Multimedia
In Progress
Medium
Rusty Lynch

Bug Description

On gstreamer-dbus-media-service v0.1.17, moblin media v0.36, enalbe thumbnail creating. it takes longer time to generate thumbnail by gstreamer enginee than before.

steps:
1. enalbe thumbnail creating, which is currently disabled by default.
2. enalbe gstreamer enginee and disable helix enginee
3. put video file under media/video
4. launch moblin media video application, waiting thumbnail shows for each videos

current result
 it takes about 3s to show a thumbnail, much longer than before.

root cause found, file this bug for tracking purpose, according to rusty's suggestion.

Tags: gstreamer
Revision history for this message
donald (donald-wei) wrote :

attach root cause,

At line 118 in function __seek_for_frame, should follow a "break", one frame is enough for thumbnail creating. Otherwise repeat 5 times.
--------------------------------------------
        for location in frame_locations:
            abs_location = int(location * duration)
            event = self._pipeline.seek(1.0, gst.FORMAT_TIME,
                                        gst.SEEK_FLAG_FLUSH | gst.SEEK_FLAG_KEY_UNIT,
                                        gst.SEEK_TYPE_SET, abs_location,
                                        gst.SEEK_TYPE_NONE, 0)
            if not event:
              raise VideoFrameError("Not Seekable")

            if not self.set_state_blocking(self._pipeline, gst.STATE_PAUSED):
                raise VideoFrameError("Not Pausable")
            frame = self._sink.get_current_frame()
            img = Image.frombuffer("RGB", sink_size, frame, "raw", "RGB", 0, 1)
--------------------------------------------

Changed in moblin-multimedia:
assignee: nobody → rusty-lynch-intel
Changed in moblin-multimedia:
importance: Undecided → Medium
status: New → In Progress
Changed in moblin-multimedia:
milestone: none → fix-later
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.