it takes longer time to generate thumbnail by gstreamer enginee than before
Bug #193612 reported by
donald
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Moblin Multimedia |
In Progress
|
Medium
|
Rusty Lynch |
Bug Description
On gstreamer-
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.
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.
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. ------- ------- ------- ------- ------- --
abs_ location = int(location * duration) 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) ("Not Seekable")
-------
for location in frame_locations:
event = self._pipeline.
if not event:
raise VideoFrameError
if not self.set_ state_blocking( self._pipeline, gst.STATE_PAUSED):
raise VideoFrameError ("Not Pausable") get_current_ frame() r("RGB" , sink_size, frame, "raw", "RGB", 0, 1) ------- ------- ------- ------- ------- --
frame = self._sink.
img = Image.frombuffe
-------