ffdemux_mpegts rtpmp4gpay rtpmp4apay

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ffdemux_mpegts rtpmp4gpay rtpmp4apay

ClaudioSSBT
Hello,
I have a transport stream with audio. I'd like to demux it and send the ES stream via RTP, using  rtpmp4gpay.



ARTPPORT=5006
ARTCPPORT=5007
DEST=10.77.111.141

ARTPSINK="udpsink port=$ARTPPORT host=$DEST name=artpsink"
ARTCPSINK="udpsink port=$ARTCPPORT host=$DEST sync=false async=false name=artcpsink"

gst-launch -v --gst-debug=2 gstrtpbin name=rtpbin   \
    filesrc location=centrocTS.ts ! ffdemux_mpegts name=demux demux. ! audio/mpeg ! queue ! rtpmp4gpay pt=37 ! rtpbin.send_rtp_sink_1                                             \
        rtpbin.send_rtp_src_1 ! $ARTPSINK                                                \
        rtpbin.send_rtcp_src_1 ! $ARTCPSINK



I have this error:
0:00:00.149668018  5319 0xb6d00648 WARN                  ffmpeg gstffmpegdemux.c:1453:gst_ffmpegdemux_loop:<demux> stream_movi flow: not-negotiated / not-negotiated
0:00:00.149744832  5319 0xb6d00648 WARN                  ffmpeg gstffmpegdemux.c:1502:gst_ffmpegdemux_loop:<demux> error: Internal data stream error.
0:00:00.149792404  5319 0xb6d00648 WARN                  ffmpeg gstffmpegdemux.c:1502:gst_ffmpegdemux_loop:<demux> error: streaming stopped, reason not-negotiated
ERROR: from element /GstPipeline:pipeline0/ffdemux_mpegts:demux: Internal data stream error.
Additional debug info:
gstffmpegdemux.c(1502): gst_ffmpegdemux_loop (): /GstPipeline:pipeline0/ffdemux_mpegts:demux:
streaming stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...


But using rtpmp4apay it works.

gst-launch -v --gst-debug=2 gstrtpbin name=rtpbin   \
    filesrc location=centrocTS.ts ! ffdemux_mpegts name=demux demux. ! audio/mpeg ! queue ! aacparse ! rtpmp4apay pt=37 ! rtpbin.send_rtp_sink_1                                             \
        rtpbin.send_rtp_src_1 ! $ARTPSINK                                                \
        rtpbin.send_rtcp_src_1 ! $ARTCPSINK


Any suggestion?
Thanks