video thumbnailing slowed down by constant respawning of vs-thumb process

Bug #1425009 reported by Florian Boucault
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Thumbnailer
Fix Released
Undecided
James Henstridge
gstreamer (Ubuntu)
Invalid
High
Unassigned

Bug Description

Part of the video thumbnailing being slow is due to the fact that the thumbnailing process (vs-thumb) is reforked for every video.

Related branches

Revision history for this message
Michi Henning (michihenning) wrote :

At a guess, I don't think it would be the fork. A fork/exec on my Nexus 4 takes about 80 ms. If it takes a whole second, there is something else going on. I suspect its the actual decoding that's to blame, not the fork/exec.

Revision history for this message
James Henstridge (jamesh) wrote :

It likely isn't the fork/exec that is slow, but rather the initialisation of the media pipeline.

I did some significant refactoring of the vs-thumb utility in the devel branch, putting most of the logic in a ThumbnailExtractor class. That class manages the GStreamer pipeline, and could be used to thumbnail multiple files.

We'd need to change how the thumbnailing service talks with vs-thumb to take advantage of this though.

Revision history for this message
Michi Henning (michihenning) wrote :

The problem here is gstreamer, which is extremely slow pulling an image out of a video stream. The fork/exec itself is fast, as is transfer of the image into the cache once it has been extracted.

Changed in gstreamer (Ubuntu):
importance: Undecided → High
Changed in thumbnailer:
status: New → In Progress
assignee: nobody → James Henstridge (jamesh)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:thumbnailer/devel at revision 257, scheduled for release in thumbnailer, milestone Unknown

Changed in thumbnailer:
status: In Progress → Fix Committed
Changed in thumbnailer:
status: Fix Committed → Fix Released
Changed in gstreamer (Ubuntu):
status: New → Invalid
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.