Decoding TS received over udpsrc

a-luz arthurg.luz at gmail.com
Thu Apr 5 21:01:17 UTC 2018


So,

I am trying to decode a TS received over an udpsrc. When using decodebin,
I'm able to do so, but i wish to create the entire pipeline, declaring the
decoders myself. I am pretty sure I am missing something, but I can't figure
out what element I'm missing.

*The following pipeline does decode and play the TS correctly:*
    $ gst-launch-1.0 udpsrc port=7000 do-timestamp=true ! decodebin name=d !
queue ! videoconvert ! videorate ! video/x-raw,framerate=30/1 ! glimagesink
d. ! queue ! audioconvert ! pulsesink

*On the other hand, the pipeline below does not work at all:*
    $ gst-launch-1.0 udpsrc port=7000 do-timestamp=true ! tsdemux name=d !
h264parse ! avdec_h264 ! videoconvert ! videorate !
video/x-raw,framerate=30/1 ! autovideosink d. !  aacparse ! avdec_aac !
audioconvert ! autoaudiosink

*As a result of the latter pipeline, I get a frozen image, no audio and the
following messages:*

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
WARNING: from element /GstPipeline:pipeline0/GstTSDemux:d: Delayed linking
failed.
Additional debug info:
./grammar.y(506): gst_parse_no_more_pads ():
/GstPipeline:pipeline0/GstTSDemux:d:
failed delayed linking some pad of GstTSDemux named d to some pad of
GstAacParse named aacparse0
Redistribute latency...
Redistribute latency...
-------
And it stays that way until I cancel the execution.

*I am supposedly working with the correct parsers, as we can see with
gst-discoverer-1.0:*
$ gst-discoverer-1.0 udp://192.168.1.109:7000
Analyzing udp://192.168.1.109:7000
Done discovering udp://192.168.1.109:7000

Topology:
  container: MPEG-2 Transport Stream
    audio: MPEG-4 AAC
    audio: MPEG-4 AAC
    audio: MPEG-4 AAC
    audio: MPEG-4 AAC
    video: H.264

Properties:
  Duration: 99:99:99.999999999
  Seekable: no
  Tags: 
      audio codec: MPEG-4 AAC
      bitrate: 484875
      minimum bitrate: 257625
      maximum bitrate: 257625
      video codec: H.264

-------------------------------

Thanks,

Arthur




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list