Is there a way to be able to read your current position in an audio file using FFmpeg?
I want to make it so my discord bot plays an audio clip and then on exit, it saves the current position and then when it rejoins the VC it can resume at that point. I know how to get it to resume at the correct time using -ss but I am not sure how to get the timestamp at the point ti leaves.
Any help would be appreciated :)!
I figured out a better way to do it if anyone is interested. if you set a global variable to the time since epoch and set that as start, then when the bot is disconnected set the time since epoch to end. You can then subtract start from end and you are left with the amount of time into the audio clip you are. this can then be stored and retrieved at a later date.
Being able to read the current audio frame using ffmpeg and python