udpsrc MP2T pipeline stuck at single frame and no audio. Gives a framerate of 0/1

mapcol markopacaklocarno at gmail.com
Fri Sep 2 05:50:40 UTC 2016


This two pipeline which are supposed to send MP2T data do not work I can't
understand why.

Sender:
gst-launch-1.0 -e -v uridecodebin
uri="file:///C:/Users/markopacak/Videos/fountain.mkv" name=d ! video/x-raw !
videoconvert ! openh264enc ! h264parse config-interval=1 ! mpegts. d. !
audio/x-raw ! audioconvert ! avenc_aac ! mpegts. mpegtsmux name=mpegts !
rtpmp2tpay ! udpsink host=127.0.0.1 port=5566

It displays the following caps:
/GstPipeline:pipeline0/GstRTPMP2TPay:rtpmp2tpay0.GstPad:src: caps =
"application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\
encoding-name\=\(string\)MP2T\,\ pay
load\=\(int\)33\,\ seqnum-offset\=\(uint\)10830\,\
timestamp-offset\=\(uint\)2122735856\,\ ssrc\=\(uint\)2689110812"

I therefore try to get the MP2T audio and video with the following pipeline.
gst-launch-1.0 -e -v udpsrc port=5566 !
application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2T,payload=(int)33
! rtpjitterbuffer ! rtpmp2tdepay ! tsdemux name=demux demux. ! queue !
h264parse ! openh264dec ! videoconvert ! autovideosink demux. ! queue !
avdec_aac ! audioconvert ! autoaudiosink 

But no audio is played and the video is stuck at a single frame. I can
notice the following caps on the output on the console which seems really
weird:

/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink:
caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1920\,\
height\=\(int\)1080\,\ interlace-mo
e\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
chroma-site\=\(string\)mpeg2\,\ colorimetry\=\(string\)bt709\,\
framerate\=\(fraction\)0/1"
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
"video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1920\,\
height\=\(int\)1080\,\ interlace-mode\=\(s
ring\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
chroma-site\=\(string\)mpeg2\,\ colorimetry\=\(string\)bt709\,\
framerate\=\(fraction\)0/1"


The framerate is set at 0/1, which I guess it would mean: display one single
frame and then stop. Is this the problem? Anyone knows why?




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/udpsrc-MP2T-pipeline-stuck-at-single-frame-and-no-audio-Gives-a-framerate-of-0-1-tp4679360.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list