Extract video resolution #2285
-
Hi, I have a pion webrtc signaling server which relays videos to transcoder server for rescaling into smaller resolutions - what is the natural way to extract video resolution coming from client using pion? I see several ways but I lack expertise to decide which is better for my case:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
One thing to note is the video resolution will dynamically change during the call (if using libwebrtc or other clients with BWE). 1.) This could work! This will be codec specific, but if doing H264 you can get this from the SPS/PPS. 2.) Some RTP Payloaders (AV1) include this in the OBU. Making it even easier then above. 3.) No information in the SDP will be helpful. 4.) You could get the information via |
Beta Was this translation helpful? Give feedback.
Hey @kisasexypantera94
One thing to note is the video resolution will dynamically change during the call (if using libwebrtc or other clients with BWE).
1.) This could work! This will be codec specific, but if doing H264 you can get this from the SPS/PPS.
2.) Some RTP Payloaders (AV1) include this in the OBU. Making it even easier then above.
3.) No information in the SDP will be helpful.
4.) You could get the information via
getStats
on the clients and send it via your signaling.