Skip to content

Fix: add ffmpeg_output_width and ffmpeg_output_height parameters to client.py#4371

Open
Vishwa2684 wants to merge 2 commits into
openvinotoolkit:mainfrom
Vishwa2684:Vishwa2684_fix/rtsp_client_ffmpeg
Open

Fix: add ffmpeg_output_width and ffmpeg_output_height parameters to client.py#4371
Vishwa2684 wants to merge 2 commits into
openvinotoolkit:mainfrom
Vishwa2684:Vishwa2684_fix/rtsp_client_ffmpeg

Conversation

@Vishwa2684

Copy link
Copy Markdown

🛠 Summary

@atobiszei , @dtrawins

This PR adds ffmpeg_output_width and ffmpeg_output_height parameters to the RTSP output backend in client.py.

Previously, the FFmpeg output sink assumed that the output frame dimensions matched the input stream. MediaPipe graphs that resize or transform frames (for example, object detection graphs) can produce annotated frames whose dimensions differ from those assumed by the FFmpeg writer. This mismatch results in corrupted RTSP output (tearing, repeated tiles, or distorted frames).

By exposing the output dimensions as configurable parameters, the FFmpeg sink can be initialized with the correct frame size for each graph, avoiding these artifacts.

Vishwa2684 and others added 2 commits July 8, 2026 18:36
Removed conditional handling for RTSP output stream parameters and simplified StreamClient initialization.
@Vishwa2684 Vishwa2684 changed the title Vishwa2684 fix/rtsp client ffmpeg add ffmpeg_output_width and ffmpeg_output_height parameters to client.py Jul 13, 2026
@Vishwa2684 Vishwa2684 changed the title add ffmpeg_output_width and ffmpeg_output_height parameters to client.py Fix: add ffmpeg_output_width and ffmpeg_output_height parameters to client.py Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant