INTERACT FORUM

Linux => JRiver Media Center 31 for Linux => Topic started by: RemyJ on July 10, 2023, 07:52:59 am

Title: Did something change recently in how MC calculates position in video tracks?
Post by: RemyJ on July 10, 2023, 07:52:59 am
A few releases ago, I reported an issue where seeking forward in a video file when you're already close to the end resulted in actually seeking backwards in the file and replaying the last few seconds.  I think I know why now.   Let's say you have a file that's exactly 10 minutes long with the time confirmed by ffprobe.  If you play the file in MC, the total track length does show as 10:00 but when you get close to the end, the MC current time hits 10:00 _before_ the actual end of the track and starts counting 10:01...10.02..., etc.   If you skip forward 15 seconds at this point, MC seeks to 10:00 which was the reported end of the track but since the time calculation is off, MC actually seeks backwards and continues to play the last few seconds.   The extra number of seconds seems to be proportional to the total length of the file.  For a 10 minute file it's only 2 or 3 seconds.   The issue isn't limited to seeking in that extra time though.  Let's say your skip forward time is 30 seconds and you're 25 seconds from the reported end of the track (but don't realize it).  If you skip forward, MC will take you to 10:00 as it should but then it continues to play the last few seconds.  So you skip again thinking you're not at the end yet but MC now takes you _back_ to the 10:00 mark and replays. 

I'm trying on different machines and collecting logs but it's been a consistent issue.

Thoughts?


EDIT:
I think I was mistaken about the overshoot being proportional to the file length.  It looks to be always between 2 and 4 seconds.
Title: Re: Did something change recently in how MC calculates position in video tracks?
Post by: RemyJ on July 14, 2023, 11:44:28 am
Just FYI...  I can reproduce this issue.  It'd be nice if someone else can confirm.

https://yabb.jriver.com/interact/index.php/topic,136512.msg945986.html#msg945986

Title: Re: Did something change recently in how MC calculates position in video tracks?
Post by: mattkhan on July 14, 2023, 12:09:05 pm
Can reproduce it here too
Title: Re: Did something change recently in how MC calculates position in video tracks?
Post by: RemyJ on July 14, 2023, 01:45:01 pm
Can reproduce it here too

Thanks for confirming it's not just me :)
Title: Re: Did something change recently in how MC calculates position in video tracks?
Post by: Ekpen on July 14, 2023, 02:35:41 pm
Thanks for confirming it's not just me :)
Watching Sisu mkvs 1080P, video stopped twice.
I thought MC crashed, I was able to restart the movie.
Is this related to what is being reported here.?
George Omoregie.
Title: Re: Did something change recently in how MC calculates position in video tracks?
Post by: mattkhan on July 14, 2023, 03:31:26 pm
Watching Sisu mkvs 1080P, video stopped twice.
I thought MC crashed, I was able to restart the movie.
Is this related to what is being reported here.?
George Omoregie.
Sounds like no
Title: Re: Did something change recently in how MC calculates position in video tracks?
Post by: Hendrik on July 17, 2023, 10:59:59 am
This should be fixed in the next build.
Title: Re: Did something change recently in how MC calculates position in video tracks?
Post by: RemyJ on July 17, 2023, 11:38:11 am
This should be fixed in the next build.

Thanks Hendrik!