Gstreamer plugin mpegtsdemux is abnormal

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gstreamer plugin mpegtsdemux is abnormal

2,039 Views
zhang_derek
Contributor I

Hello community. Recently I used Gstreamer on i.MX Phase2 board (Yocto built OS), I found the plugin mpegtsdemux didn't work as gst_element_factory_make("mpegtsdemux", NULL) returned NULL. Type in command: gst-inspect-0.10 mpegtsdemux, the output information only including "plugin detail", No "element" and "pad".

I have installed gstreamer0.10-plugins-bad, and libgstmpegtsdemux.so existed in right directory.

How to fix the problem? Anly help will be appreciated.

Labels (3)
0 Kudos
Reply
3 Replies

1,393 Views
jimmychan
NXP TechSupport
NXP TechSupport

For example:

demuxer_1 = gst_element_factory_make ("mpegtsdemux", "demux1");

if(!demuxer_1) g_printerr("demux1 not created\n");

Do you mean it return NULL? Is your pipeline work in your program?

For your reference:

Can not play double-image screen

0 Kudos
Reply

1,393 Views
zhang_derek
Contributor I

jimmychan 撰写:

For example:

demuxer_1 = gst_element_factory_make ("mpegtsdemux", "demux1");

if(!demuxer_1) g_printerr("demux1 not created\n");

Do you mean it return NULL? Is your pipeline work in your program?

For your reference:

Can not play double-image screen

Yeah, gst_element_factory_make("mpegtsdemux", "demux1") returns NULL, and pipeline doesn't work.

Following is the output message of command: gst-inspect-0.10 mpegtsdemux

Plugin Details:
  Name:   mpegtsdemux
  Description:  MPEG TS demuxer
  Filename:  /usr/lib/gstreamer-0.10/libgstmpegtsdemux.so
  Version:  0.10.23
  License:  unknown
  Source module: gst-plugins-bad
  Source release date: 2012-02-20
  Binary package: GStreamer Bad Plug-ins source release
  Origin URL:  Unknown package origin

  tsparse: MPEG transport stream parser
  tsdemux: MPEG transport stream demuxer

  2 features:
  +-- 2 elements

Later I used "tsdemux" instead of "mpegtsdemux", and it really works.

I guess "mpegtsdemux" is just a plugin, it includes "tsparse" and "tsdemux" which are the true elements required by gst_element_factory_make()

is my guess right? anyhow "tsdemux" solved my problem :smileyhappy:

0 Kudos
Reply

1,393 Views
jimmychan
NXP TechSupport
NXP TechSupport

yes, your thinking is right. "tsdemux' is the element in this plugin.