-
Notifications
You must be signed in to change notification settings - Fork 1
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
Show the total time for the entire playlist? #5
Comments
@Kayizoku I don't think that there's an exposed function that the mpv api provides to do this, but one way is using other programmes. Could be something like this with fd -e mkv -x ffprobe -i {} -show_entries format=duration -v quiet -of csv="p=0" | awk '{total = total + $1}END{print total}' |
Thank you, could you show me a demonstration and how to use it as a script or on a hotkey? I would greatly appreciate the help :) |
The snippet accounts for all files in a folder. So it's not exactly what you wanted since you'd need to keep track of the current position in the playlist which is provided by |
No worries, I appreciate the help. Would love to see it in the script too. But might try to tinker with it myself. We'll see :) |
I would like to press a hotkey and then it calculates the whole playlist and shows the time it would take to watch the playlist in the same manner as before. It recalculates when playback is sped up. Of course, this would be with a different hotkey. Any thoughts about that?
The text was updated successfully, but these errors were encountered: