Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Make GetMediaInputStatus return a duration for unloaded local ffmpeg sources #1252

Open
LordTocs opened this issue Sep 4, 2024 · 0 comments

Comments

@LordTocs
Copy link

LordTocs commented Sep 4, 2024

Feature Request Type

RPC Request

Feature Request Type (Other)

No response

Requested Feature

Currently if GetMediaInputStatus is run on a media source (specifically an ffmpeg source) the duration will come back unknown if the media is not playing. This makes it hard for apps to reason about how long a media source will play. An ffmpeg source can play remote sources and streams, but I am wagering the vast majority of media sources are playing local files off the hard drive.

It would be nice if when an the media input status is requested for an unloaded ffmpeg source playing a local file, instead of replying with an unknown duration it instead would use ffprobe to retrieve the duration.

Requested Feature Usage Scenario

My app allows users to schedule various actions around sounds, media, and events. But it's very hard to display to them the duration of media sources since getting the duration of a media source is unreliable. In reality I can do things like check if the OBS is running on the same computer as my app and run ffprobe myself, and even very quickly force OBS to load the media to test it's duration on a remote machine. But all of this is less desirable than just having OBS run ffprobe itself on the media file and report it over the websocket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant