GStreamer force decodebin2 output type

前端 未结 2 802
天命终不由人
天命终不由人 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:12

    You can try the playbin plugin instead of generating your pipeline by hand.

    Take a look on https://code.google.com/p/gstmultimedialib/source/browse/trunk/gstmultimedialib/Multimedia/Multimedia/FilterGraph/PlaybinFilterGraph.h from my gstmultimedialib project.

    Good Luck!!!

提交回复
热议问题