GStreamer force decodebin2输出类型 [英] GStreamer force decodebin2 output type

查看:833
本文介绍了GStreamer force decodebin2输出类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  gst-launch -v filesrc location = bbb.mp4! decodebin2! ffmpegcolorspace! autovideosink 

DecodeBin2有一个动态垫,我附加了一个回调来处理它的创建。我无法将其链接到ffmpegcolorspace,因为pad功能总是视频/ quicktime。我想要它是视频/ x-raw-yuv或与ffmpegcolorspace兼容的其他东西。



这可能是强制/选择decodebin2的输出类型吗?



谢谢。



编辑:请不要推荐playbin。我正在尝试学习如何制作流水线。

解决方案

 强制/选择decodebin2的输出类型? 

不,您不能强制或选择其资料夹的类型。



decodebin2选择适当的解复用器元素,并且该解复用器元素解析该媒体文件,并且根据该媒体文件中的元素流的编解码器,它创建输出/源pad.so,这种类型的解码器可以与其链接和管道工作。



这一切都发生在gstremer-plugin代码



所以如果你想要这样,那么你需要写插件你的自我..


I'm trying to write a program in C which replicates the pipeline:

gst-launch -v filesrc location="bbb.mp4" ! decodebin2 ! ffmpegcolorspace ! autovideosink

DecodeBin2 has a dynamic pad and I've attached a callback to handle its creation. I am unable to link it to ffmpegcolorspace however because the pad capability is always video/quicktime. I would like it to be video/x-raw-yuv or something else which is compatible with ffmpegcolorspace.

Is this possible to force/select the output type of decodebin2?

Thanks.

EDIT: Please do not recommend playbin. I'm trying to learn how how to make pipelines.

解决方案

Is this possible to force/select the output type of decodebin2?

No you can not force or select the type of its source pad.

decoderbin2 select appropriate demuxer element and that demuxer element parse that media file and depending upon the codec of elementry stream in that media file it creates the caps/type of the output/Source pad.so that type of decoder can link with it and pipeline works.

this all happen in gstremer-plugin code

so if you want such then you need to write plugin by your self..!!

这篇关于GStreamer force decodebin2输出类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆