简体   繁体   English

将视频编解码器集成到gstreamer或vlc中

[英]Integrating a video codec into gstreamer or vlc

I have an C-Code for a video codec . 我有一个视频编解码器C-Code It takes in a compressed format as an input and give out a YUV data buffer. 它采用压缩格式作为输入并发出YUV数据缓冲区。 As a standalone application i'm able to render the YUV generated using OpenGL . 作为一个独立的应用程序,我能够渲染使用OpenGL生成的YUV

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 ). 而不是重新发明整个轮子,我认为如果我能够将我的编解码器集成到gstreamer播放器代码(对于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 -问候

Since the codec and container are of new MIME types, you will have to implement a new GstElement for demuxer and codec. 由于codeccontainer是新的MIME类型,因此您必须为GstElement和编解码器实现新的GstElement A simple example (for audio ) is available in this location . 位置提供了一个简单示例(用于audio )。 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. 要创建解码器插件,您可以参考vorbisdec实现。

  • To create a demuxer, you can refer to the oggdemuxer implementation. 要创建分路器,可以参考oggdemuxer实现。

  • Reference to factory make 参考工厂制造

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM