[gst-devel] ts video pipe

Zaheer Merali zaheerabbas at merali.org
Wed Jul 14 09:40:38 CEST 2010


On Tue, Jul 13, 2010 at 7:53 PM,  <th.tom at gmx.de> wrote:
> Hi,
>
> I try to figure that out from the net, but with no success :(, so I gonna ask here (I am really a newby at gstreamer):
>
> I have a file containing only the ts video stream (PID 0x1111 in that special case), which is an mpeg2 stream from dvb-t.

Your file then is not a real transport stream, it has pes packets for
the video but no pat or pmt.

>
> When I try to play that with mplayer ( SVN-r1.0~rc3+svn20090426-4.4.3 - Ubuntu 10.4) It says (see 1-- below) and the video is displayed.
>
> So I tried to play it with gstreamer and it fails:
>
> --- snipp ------
> gst-launch-0.10 -v filesrc location=Das\ Erste.ts ! mpegtsdemux name=demux demux.video_4369 ! mpeg2dec ! xvimagesink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> ERROR: from element /GstPipeline:pipeline0/GstMpegTSDemux:demux: Could not determine type of stream.
> Additional debug info:
> gstmpegtsdemux.c(2679): gst_mpegts_demux_sink_event (): /GstPipeline:pipeline0/GstMpegTSDemux:demux:
> No valid streams found at EOS
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
> --- snipp ------
>
> When I tried typefind, it recognizes the stream:
>
> --- snipp ------
> gst-launch-0.10 -v filesrc location=Das\ Erste.ts ! typefind ! mpegtsdemux ! fakesink
> Setting pipeline to PAUSED ...
> /GstPipeline:pipeline0/GstTypeFindElement:typefindelement0.GstPad:src: caps = video/mpegts, systemstream=(boolean)true, packetsize=(int)188
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/GstMpegTSDemux:mpegtsdemux0.GstPad:sink: caps = video/mpegts, systemstream=(boolean)true, packetsize=(int)188
> ERROR: from element /GstPipeline:pipeline0/GstMpegTSDemux:mpegtsdemux0: Could not determine type of stream.
> Additional debug info:
> gstmpegtsdemux.c(2679): gst_mpegts_demux_sink_event (): /GstPipeline:pipeline0/GstMpegTSDemux:mpegtsdemux0:
> No valid streams found at EOS
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> /GstPipeline:pipeline0/GstMpegTSDemux:mpegtsdemux0.GstPad:sink: caps = NULL
> /GstPipeline:pipeline0/GstTypeFindElement:typefindelement0.GstPad:src: caps = NULL
> Freeing pipeline ...
> --- snipp ------
>
> Is this the correct way to use the mpegts pipe?
> What am I doing wrong? I do not find any proper information for mpegtsdemux :-(

try gst-launch filesrc ! mpegtsdemux es-pids=0x1111 ! mpeg2dec ! xvimagesink

Zaheer




More information about the gstreamer-devel mailing list