Question

I have an C-Code for a video codec. It takes in a compressed format as an input and give out a YUV data buffer. As a standalone application i'm able to render the YUV generated using OpenGL.

Note: This codec is currently not supported by VLC/gstreamer.

My task now is to create a player using this code (that is with features such as play, pause, step, etc.). Instead of re-inventing the whole wheel, i think it would be better if i'm able to integrate my codec into gstreamer player code(for Linux).

Is it possible to achieve the above? Is there some tutorial using which i can proceed? I have searched a lot on net but was unable to find anything specific to my requirement. Any information or links specific to the above problem will be of great help to me. Thanks in advance.

-Regards

Was it helpful?

Solution

Since the codec and container are of new MIME types, you will have to implement a new GstElement for demuxer and codec. A simple example (for audio) is available in this location. I presume this should provide a good starting reference for you.

Some additional links:

  • To create a decoder plugin, you can refer to the vorbisdec implementation.

  • To create a demuxer, you can refer to the oggdemuxer implementation.

  • Reference to factory make

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top