In some situations when working with .ts Uris the current live detection mechanism fails to identify the stream as being a live format resulting in errors like Failed to load video: failed to query media duration or position.
This merge request introduces an is_live optional boolean flag to the from_pipeline function, allowing for manual selection of whether the video is a live format.
When the flag is set to None, the video format is automatically determined by the existing detection mechanism.
The new flag is only exposed when calling the from_pipeline function directly, ensuring minimal changes to other parts of the API and the default behavior remains unchanged when the flag is None.
In some situations when working with .ts Uris the current live detection mechanism fails to identify the stream as being a live format resulting in errors like
Failed to load video: failed to query media duration or position
. This merge request introduces anis_live
optional boolean flag to the from_pipeline function, allowing for manual selection of whether the video is a live format.When the flag is set to None, the video format is automatically determined by the existing detection mechanism.
The new flag is only exposed when calling the from_pipeline function directly, ensuring minimal changes to other parts of the API and the default behavior remains unchanged when the flag is None.