警告:错误的管道:没有元素 "voaacenc"

WARNING: erroneous pipeline: no element "voaacenc"

我尝试执行

gst-launch-1.0 -em rtpbin name=rtpbin latency=5 udpsrc port=5102 caps="application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)OPUS" ! rtpbin.recv_rtp_sink_0 rtpbin. ! queue ! rtpopusdepay ! opusdec ! audioconvert ! audioresample ! voaacenc ! mux. udpsrc port=5104 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" ! rtpbin.recv_rtp_sink_1 rtpbin. ! queue ! rtph264depay ! h264parse ! mux. flvmux name=mux streamable=true ! rtmpsink sync=false location="rtmp://127.0.0.1:1935/show/stream live=1"

不幸的是,它引发了一个错误:警告:错误的管道:没有元素"voaacenc"

你试过了吗运行gst-inspect voaacenc?

尝试安装 gst-plugins-bad,应该可以解决问题。