[Bug 745724] jpegparse: set framerate to 0/1 when duration is not known
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Mar 6 11:37:57 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=745724
--- Comment #11 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> ---
(In reply to Nicola from comment #10)
> (In reply to Olivier CrĂȘte from comment #8)
> > Instead of picking a random 25 or 30fps, it should default to the downstream
> > caps, so you can do the following:
> > filesrc location=passport.jpg ! jpegparse ! image/jpeg, framerate=30/1 !
> > fakesink
> >
> > That would be more consistent with how videoparse works. If there is nothing
> > downstream, it should probably default to 0/1.
>
> this is how it works if you apply the first proposed fix, only you have to
> add a videorate before the capsfilter.
the idea is that it should not require videorate to pick downstream proposed
framerate.
>
> Please note that in my use case I don't have a single jpeg but a jpeg stream
> with variable framerate
In this case, you would have a downstream proposed caps of 0/1, and some
element or probe to set duration on each buffer. If you have some index of each
duration, you could probably create a cleaner solution by creating a new source
(or appsrc if you don't want to write plugin).
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list