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

Add a way to get Video duration #2050

Open
totalgee opened this issue Apr 3, 2024 · 0 comments
Open

Add a way to get Video duration #2050

totalgee opened this issue Apr 3, 2024 · 0 comments
Labels
feature New feature or request

Comments

@totalgee
Copy link

totalgee commented Apr 3, 2024

I see this has been asked before on the forum, but I didn't see any issue entered here. I understand that "Theora video is hard", so maybe this is truly not possible(?). Anyhow, it would be really nice to have -- in particular for the case of video files without audio, because the workaround when they do contain audio is fine (get the audio Source duration).

The closest workaround I found (for video files without audio tracks) was to play the video and then get the tell time when it stops playing, but this is obviously not ideal, since you don't necessarily know if it stopped playing because someone requested a "pause", or because it actually finished... Another workaround I tried was doing a very long seek (like to 10000 seconds, definitely longer than my video), hoping it would stop at the end and then I could ask for the tell position, but it doesn't seem to do that.

Thanks for any solutions or workarounds!

@slime73 slime73 added the feature New feature or request label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants