Closed qwert3356 closed 7 months ago
i checked the NativeRtpCapabilities from aiortc peerconnection
it has two h264 profile level supported: Baseline 3_1 and constrained_baseline 3_1
"fmtp": [
{"payload": 98, "config": "apt=97"},
{
"payload": 99,
"config": "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f",
},
{"payload": 100, "config": "apt=99"},
{
"payload": 101,
"config": "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f",
},
{"payload": 102, "config": "apt=101"},
]
i change mediasoup server h264 codec config to 42e01f only then pymediasoup program can successfully consume h264 video frame
mediaCodecs :
[
{
kind : 'audio',
mimeType : 'audio/opus',
clockRate : 48000,
channels : 2
},
{
kind : 'video',
mimeType : 'video/VP8',
clockRate : 90000,
parameters :
{
'x-google-start-bitrate' : 200000
}
},
{
kind : 'video',
mimeType : 'video/VP9',
clockRate : 90000,
parameters :
{
'x-google-start-bitrate' : 200000
}
},
{
kind : 'video',
mimeType : 'video/h264',
clockRate : 90000,
parameters :
{
'packetization-mode' : 1,
'profile-level-id' : '42e01f',
'level-asymmetry-allowed' : 1,
'x-google-start-bitrate' : 200000
}
},
]
I am trying to let pymediasoup example to consume H264 stream, stream is from another mediasoup web client with url:forceH264=true,
but pymediasoup's device capability cannot have h264 codec with profile-level 4d001f after load server's capability response, (4d001f is created by mediasoup server's consumer, i added 4d001f 42e01f 4d0032 in mediasoup server's config before, but still no luck)
Then the server will not pass the video consumer to pymediasoup program,
could you give me a hint to resolve this problem? many thanks.
mediasoup server version: v3.8.3 pymediasoup version: v0.2.6 mediasoup web mediasoup-client version: 3.7.6
getRouterRtpCapability response from mediasoup server:
rtp capability after "await self._device.load(ans['data'])" (then it will be send in join reqest) it does not have h264 codec
consumer info that corrspond to producer from mediasoup web client's web cam: