Bad sound when using opus inband-fec and changing opus's bitrate

Jonas Licht jonas.licht at fem.tu-ilmenau.de
Tue Jun 18 16:53:19 UTC 2019


Hi,

I'm creating a RTP audio streaming application with the opus audio codec.
Additional I use the scream algorithmus to control the opus bitrate
depending on the network condition.

Without the opus inband-fec this working fine.
But when I enable the fec, after a short period the decoded audio sounds
terrible.
Maybe it decoding only the inband-fec additional data.
If I disable the bitrate control the sound sound good.

Send pipeline: gst-launch-1.0 rtpbin name=rtpbin jackaudiosrc
port-pattern=\"playout:out_jackaudiosink0_1\" ! audio/x-raw,channels=1 !
audioconvert ! opusenc name=encoder inband-fec=1
packet-loss-percentage=10 bandwidth=wideband ! rtpopuspay ! gscreamtx
media-src=5 ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink
host=127.0.0.1 port=5000  udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0

Receive pipeline: gst-launch-1.0 rtpbin name=rtpbin do-lost=1 udpsrc
port=5000 ! gscreamrx !
application/x-rtp,media=audio,clock-rate=48000,encoding-name=OPUS,pt=96
! rtpbin.recv_rtp_sink_0 rtpbin.send_rtcp_src_0 ! udpsink host=127.0.0.1
port=5001 sync=false async=false rtpbin. ! rtpopusdepay ! opusdec plc=1
use-inband-fec=1 ! autoaudiosink

Thanks for your help.
Best regards,
Jonas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190618/2916c9cf/attachment.sig>


More information about the gstreamer-devel mailing list