Trying to create AAC stream over UDP

Is the following a valid pipeline. Eventually I want to send this stream somewhere else but for now just testing it locally. I can’t hear it using VLC . I’m on Ubunru 22.04 . I get no errors when running it.

gst-launch-1.0 -v jackaudiosrc connect=0 ! audioconvert ! audioresample ! avenc_aac ! udpsink host=127.0.0.1 port=8000

Try this pipeline. Add aacparse with stream-format=adts.

gst-launch-1.0 -v jackaudiosrc connect=0 ! audioconvert ! audioresample ! avenc_aac ! aacparse ! audio/mpeg, stream-format=adts ! udpsink host=127.0.0.1 port=8000

Thank you @parithi . I tried this but still don’t hear it on VLC. In VLC I’m using udp://0.0.0.0:8000 as the network stream . I also tried the following pipeline as a receiver (generated by chatgpt so unsure about it)

gst-launch-1.0 udpsrc port=8000 ! application/x-rtp, payload=96, encoding-name=MP4A-LATM, media=audio, clock-rate=44100, channels=2, payload-type=96 ! rtpmp4adepay ! aacparse ! avdec_aac ! audioconvert ! autoaudiosink

Hi @jimruxton, I have tested the pipeline with audiotestsrc and able to play it on VLC.

gst-launch-1.0 -v audiotestsrc ! audioconvert ! audioresample ! avenc_aac ! aacparse ! audio/mpeg, stream-format=adts ! udpsink host=127.0.0.1 port=8000

If the above pipeline works for you then you have to check jackaudiosrc.

Thanks again. I discovered it was something with my settings in VLC. Once I reset my audio preferences everything is good now. Thanks so much for your support.