Skip to content

Commit 9250baa

Browse files
add frame size to webrtc video metadata
1 parent d6d7061 commit 9250baa

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

inference/core/interfaces/webrtc_worker/entities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class WebRTCVideoMetadata(BaseModel):
5757
time_base: Optional[float] = None
5858
declared_fps: Optional[float] = None
5959
measured_fps: Optional[float] = None
60+
width: Optional[int] = None
61+
height: Optional[int] = None
6062

6163

6264
class WebRTCOutput(BaseModel):

inference/core/interfaces/webrtc_worker/webrtc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ async def _send_data_output(
415415
pts=frame.pts,
416416
time_base=frame.time_base,
417417
declared_fps=self._declared_fps,
418+
height=frame.height,
419+
width=frame.width,
418420
)
419421

420422
webrtc_output = WebRTCOutput(

0 commit comments

Comments
 (0)