Skip to content

Conversation

@davidplowman
Copy link
Collaborator

Some protocols open their own file handes, so we mustn't try to do this for them as it will fail. The correct way to do this is to check the context's oformat->flags, not the flags field directly.

The reason is that the flags report the current state of the context, whereas oformat->flags reports what this particular output format requires, which is therefore correct.

The consequence is that we can output RTSP streams directly, which is useful for publishing to media servers like MediaMTX using a runOnDemand command.

Some protocols open their own file handes, so we mustn't try to do
this for them as it will fail. The correct way to do this is to check
the context's oformat->flags, not the flags field directly.

The reason is that the flags report the current state of the context,
whereas oformat->flags reports what this particular output format
requires, which is therefore correct.

The consequence is that we can output RTSP streams directly, which is
useful for publishing to media servers like MediaMTX using a
runOnDemand command.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
@davidplowman davidplowman merged commit ad0a10a into raspberrypi:main Jan 7, 2026
1 of 7 checks passed
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.

2 participants