← Back to team overview

desktop-packages team mailing list archive

[Bug 1391286] Re: Fails to generate thumbnail for small videos recorded with camera-app

 

What happens here is that thumbnailer calls the
gst_app_sink_pull_preroll function which fails. The documentation
(http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-
base-libs/html/gst-plugins-base-libs-appsink.html#gst-app-sink-pull-
preroll) says that this returns null if EOS has been reached. Printf
debugging says that this is indeed the case, it returns null and
gst_app_sink_is_eos reports true. After EOS no more samples can be
obtained from the stream.

The previous gstreamer method we call is gst_element_seek_simple. It
returns true indicating success and the seek point we specify is valid
(134000000 which is less than the duration 469000000).

Unless someone can show that thumbnailer is using gstreamer incorrectly,
it seems to be the case that gstreamer somehow internally causes EOS to
be emitted. This would make this a bug in gstreamer rather than
thumbnailer.

For comparison I also tested GST_SEEK_FLAG_ACCURATE instead of
GST_SEEK_FLAG_KEY_UNIT but the behaviour is the same.

** Also affects: gst-plugins-base1.0 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: gst-plugins-base1.0 (Ubuntu)
     Assignee: (unassigned) => Jim Hodapp (jhodapp)

** Changed in: gst-plugins-base1.0 (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gst-plugins-base1.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1391286

Title:
  Fails to generate thumbnail for small videos recorded with camera-app

Status in Thumbnail generator for all kinds of files:
  New
Status in “gst-plugins-base1.0” package in Ubuntu:
  New
Status in “thumbnailer” package in Ubuntu:
  New

Bug description:
  Videos with less than one sec recorded by camera-app (like when you
  click on the record button and immediately stops the recording
  process) have problems while generating thumbnail. This seems to be a
  problem to gallery-app since if we have one file like this on the
  collection the thumbnails took a long time to generate.

  I added an unit test that seems to fail on this branch:
  lp:~artmello/thumbnailer/thumbnailer-no_thumbnail_video

  Attached a video sample that seems to fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/thumbnailer/+bug/1391286/+subscriptions