[Bug 715147] tsdemux: Handle streams without PAT and/or PMT

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 2 08:37:46 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=715147
  GStreamer | gst-plugins-bad | git

--- Comment #6 from Eric <etrousset at awox.com> 2014-01-02 16:37:39 UTC ---
Hi Ed,

that sounds good.

Also I tried another approach.

I added two properties to the mpegtsdemux, 
one to add a PAT, and one for a PMT in this way: 

 GstStructure *thePAT = gst_structure_new("pat",
                                          "program-number", G_TYPE_UINT, 1,
                                          "pmt-id", G_TYPE_UINT, 480,
                                          NULL);

 GstStructure *thePMT = gst_structure_new("pmt",
                                          "pmt-pid", G_TYPE_UINT, 480,
                                          "video-pid", G_TYPE_UINT,
theVideoPid,
                                          "audio-pid", G_TYPE_UINT,
theAudioPid,
                                          "program-number", G_TYPE_UINT, 1,
                                          NULL);
 g_object_set(G_OBJECT(GST_MESSAGE_SRC(aMessage)),
                "add-pat", thePAT,
                "add-pmt", thePMT,
                NULL); 

In the demux I created the a GstMpegTsSection for the PAT and one for the PMT.
Then I call mpegts_base_handle_psi with those struct as argument.

This way I am able to build the whole pipeline, but then I can't manage to
actually have the media rendered.

The code is not the nicest as I had to duplicate some function from the mpegts
lib, but I can provide it if you want/need.

Regards, 
Eric

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list