I am able to create a pipeline to encode a test tone with avenc_aac and send it over the network with RTP. I can decode this RTP stream with VLC by loading a .sdp file in VLC. However, when I try to decode the stream on another computer with gstreamer, I get the following output. How do I get the decode pipeline to work?
0:00:03.424411593 13524 0x5618925cfb60 ERROR libav :0:: Number of scalefactor bands in group (41) exceeds limit (40).
0:00:03.424434782 13524 0x5618925cfb60 WARN libav gstavauddec.c:756:gst_ffmpegauddec_handle_frame:<avdec_aac0> decoding error
0:00:03.445641648 13524 0x5618925cfb60 ERROR libav :0:: Number of scalefactor bands in group (41) exceeds limit (40).
0:00:03.445665396 13524 0x5618925cfb60 WARN libav gstavauddec.c:756:gst_ffmpegauddec_handle_frame:<avdec_aac0> decoding error
My encode pipeline is:
GST_DEBUG=1 gst-launch-1.0 audiotestsrc ! audio/x-raw, rate=48000, channels=2, layout=interleaved ! audioconvert ! audioresample ! avenc_aac ! rtpmp4apay name=pay1 pt=97 ! udpsink host=10.10.0.126 port=40012
My decode pipeline is:
GST_DEBUG=2 gst-launch-1.0 udpsrc port=40012 caps=“application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)MP4A-LATM” ! rtpmp4adepay ! capsfilter caps=“audio/mpeg, mpegversion=(int)4” ! avdec_aac ! fakesink