I'm serving some videos. Basically the user uses VLC to play a https stream, the request hits my server then I look at the HTTP-RANGE request and provide the asked bytes. I would like to save the user progression timestamp in the videos. I tried to served_byte/video_size*video_duration
but this is not working properly.
I also tried using ffprobe like this ffprobe -i cool.mkv -show_entries packet=pos,pts_time -select_streams v -of compact=p=0:nk=1 -v 0
(see this post) but it takes approximately 5s to parse a 3Gb video which is quiet long...
Isn't there just a simpler way to have the timestamp for a given byte?
Cheers :)