Decoder registration for decodebin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Decoder registration for decodebin

boxerab@gmail.com
I have added support for image/x-jpc media type to the typefind plugin.

However, when I run the following pipeline

gst-launch-1.0 -v filesrc location=some.jpc ! decodebin ! imagefreeze ! autovideosink

 I get the error

Missing decoder: JPEG 2000 (image/x-jpc)

Of course, this pipeline works with .jp2 images.

So, how do I register the openjpegdec decoder so that it will be called on jpc images ?

(jpc is raw JPEG 2000 codestream)

Thanks,
Aaron

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Decoder registration for decodebin

boxerab@gmail.com

On Fri, Jun 23, 2017 at 3:17 PM, Aaron Boxer <[hidden email]> wrote:
I have added support for image/x-jpc media type to the typefind plugin.

However, when I run the following pipeline

gst-launch-1.0 -v filesrc location=some.jpc ! decodebin ! imagefreeze ! autovideosink

 I get the error

Missing decoder: JPEG 2000 (image/x-jpc)

Of course, this pipeline works with .jp2 images.

So, how do I register the openjpegdec decoder so that it will be called on jpc images ?

(jpc is raw JPEG 2000 codestream)

Thanks,
Aaron


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Decoder registration for decodebin

Sebastian Dröge-3
In reply to this post by boxerab@gmail.com
On Fri, 2017-06-23 at 15:17 -0400, Aaron Boxer wrote:

> I have added support for image/x-jpc media type to the typefind plugin.
>
> However, when I run the following pipeline
>
> gst-launch-1.0 -v filesrc location=some.jpc ! decodebin ! imagefreeze ! autovideosink
>
>  I get the error
>
> Missing decoder: JPEG 2000 (image/x-jpc)
>
> Of course, this pipeline works with .jp2 images.
>
> So, how do I register the openjpegdec decoder so that it will be called on jpc images ?
>
> (jpc is raw JPEG 2000 codestream)
I replied in the bug report, but here for completeness:

Your typefinder needs to provide caps that contain all fields needed by
the next element (jpeg2000parse I guess). Then the parser needs a rank
>= GST_RANK_MARGINAL to be autoplugged. And then the parser needs to
provide caps that contains all fields needed by openjpegdec (which also
needs a high enough rank).

Once that is given, decodebin should autoplug everything.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment