How to play ts stream with specified pid

lessonZhang 176237766 at qq.com
Thu Sep 1 08:36:05 UTC 2016


Hi,

Sorry for disturbing, but the problem is still there.

If i use following cmd, 
#gst-launch-1.0 -v filesrc location=test.ts ! tsdemux ! decodebin !
videoconvert ! videoscale ! ximagesink sync=false 

it can play video out, and print info

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:sink.GstProxyPad:proxypad0:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:sink:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:sink: caps =
video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegvParse:mpegvparse0.GstPad:sink:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegvParse:mpegvparse0.GstPad:src:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false,
parsed=(boolean)true, width=(int)720, height=(int)576,
framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)64/45,
codec_data=(buffer)000001b32d024033249f23821020202620262c2c2c2c2c2c343034363636343434343636363a3a3a4444443a3a3a36363a3a404044444a4c4a464644464c4c50505060605c5c7070748a8aa7111111151215191919191b1b201d202222222121212324242427272730303029292926262b2b2f2f3232373b39363635363e3e41414152524f4f6565688282a4000001b5148200010000,
profile=(string)main, level=(string)main, interlace-mode=(string)mixed
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:sink:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false,
parsed=(boolean)true, width=(int)720, height=(int)576,
framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)64/45,
codec_data=(buffer)000001b32d024033249f23821020202620262c2c2c2c2c2c343034363636343434343636363a3a3a4444443a3a3a36363a3a404044444a4c4a464644464c4c50505060605c5c7070748a8aa7111111151215191919191b1b201d202222222121212324242427272730303029292926262b2b2f2f3232373b39363635363e3e41414152524f4f6565688282a4000001b5148200010000,
profile=(string)main, level=(string)main, interlace-mode=(string)mixed
Redistribute latency...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:src:
caps = video/x-raw, format=(string)I420, width=(int)720, height=(int)576,
pixel-aspect-ratio=(fraction)64/45, interlace-mode=(string)mixed,
chroma-site=(string)mpeg2, colorimetry=(string)bt601,
framerate=(fraction)25/1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
video/x-raw, width=(int)720, height=(int)576,
pixel-aspect-ratio=(fraction)64/45, interlace-mode=(string)mixed,
framerate=(fraction)25/1, format=(string)BGRx
/GstPipeline:pipeline0/GstVideoScale:videoscale0.GstPad:src: caps =
video/x-raw, width=(int)1024, height=(int)576,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)mixed,
framerate=(fraction)25/1, format=(string)BGRx
/GstPipeline:pipeline0/GstXImageSink:ximagesink0.GstPad:sink: caps =
video/x-raw, width=(int)1024, height=(int)576,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)mixed,
framerate=(fraction)25/1, format=(string)BGRx
/GstPipeline:pipeline0/GstVideoScale:videoscale0.GstPad:sink: caps =
video/x-raw, width=(int)720, height=(int)576,
pixel-aspect-ratio=(fraction)64/45, interlace-mode=(string)mixed,
framerate=(fraction)25/1, format=(string)BGRx
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
video/x-raw, format=(string)I420, width=(int)720, height=(int)576,
pixel-aspect-ratio=(fraction)64/45, interlace-mode=(string)mixed,
chroma-site=(string)mpeg2, colorimetry=(string)bt601,
framerate=(fraction)25/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad1:
caps = video/x-raw, format=(string)I420, width=(int)720, height=(int)576,
pixel-aspect-ratio=(fraction)64/45, interlace-mode=(string)mixed,
chroma-site=(string)mpeg2, colorimetry=(string)bt601,
framerate=(fraction)25/1

but if i add the property "program-number=1", it will return err,
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0: Internal
data stream error.
Additional debug info:
mpegtsbase.c(1307): mpegts_base_loop ():
/GstPipeline:pipeline0/GstTSDemux:tsdemux0:
No program activated before EOS
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Thanks!




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-play-ts-stream-with-specified-pid-tp4679308p4679341.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list