UnsupportedError: unsupported codec [mimeType:video/h264, payloadType:101]
at Object.getProducerRtpParametersMapping (/Users/chenzx/repo/mediasoup-demo/server/node_modules/mediasoup/lib/ortc.js:500:19)
at PlainTransport.produce (/Users/chenzx/repo/mediasoup-demo/server/node_modules/mediasoup/lib/Transport.js:251:33)
at Room.createBroadcasterProducer (/Users/chenzx/repo/mediasoup-demo/server/lib/Room.js:544:20)
at /Users/chenzx/repo/mediasoup-demo/server/server.js:291:33
at Layer.handle [as handle_request] (/Users/chenzx/repo/mediasoup-demo/server/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/chenzx/repo/mediasoup-demo/server/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/Users/chenzx/repo/mediasoup-demo/server/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/Users/chenzx/repo/mediasoup-demo/server/node_modules/express/lib/router/layer.js:95:5)
at /Users/chenzx/repo/mediasoup-demo/server/node_modules/express/lib/router/index.js:281:22
at param (/Users/chenzx/repo/mediasoup-demo/server/node_modules/express/lib/router/index.js:354:14)
The rtpParameters’s parameters part is copied from config.js, why the line const rtpMapping = ortc.getProducerRtpParametersMapping(rtpParameters, routerRtpCapabilities); in Transport.js failed?
rtpParameters is a typo, sorry for my miss.
but gstreamer.sh + H264 RTP push stream still failed
i guess because i use the x264enc in gstreamer pipeline string, while x264enc is in gst-plugins-ugly, so there MUST be something wrong with this plugin…?
H264 codec negotiation is hard. You are not mentioning anything about profile-level-id, which determines the configuration of H264 and is critical that both sides support. I cannot help with that but you should investigate it and tell your H264 encoder to encode using a specific H264 profile that is supported by the receivers, and include such a H264 configuration codec in the mediasoup Router.