GStreamer force decodebin2 output type

前端 未结 2 790
天命终不由人
天命终不由人 2021-01-14 16:30

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

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


        
2条回答
  •  滥情空心
    2021-01-14 17:10

    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..!!

提交回复
热议问题