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

Can't navigate past 2^31 milliseconds in long (over 600 hour) videos #997

Closed
Hato1 opened this issue Jun 19, 2024 · 2 comments
Closed

Can't navigate past 2^31 milliseconds in long (over 600 hour) videos #997

Hato1 opened this issue Jun 19, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Hato1
Copy link

Hato1 commented Jun 19, 2024

Describe the bug
In long videos, skipping to a point past ~595 hours using the navigation bar instead plays the video from beginning
595 hours

To Reproduce
Steps to reproduce the behavior:

  1. Open video with duration over 600 hours
  2. Click on the navbar to get to a point past 595 hours
  3. Observe that while the navbar appears to have correctly updated, the video is playing from the start (The current timestamp is correctly shown)

Expected behavior
Playback continues from the timestamp clicked in the navbar

Screenshots
If applicable, add screenshots to help explain your problem.

Your Enviroment

  • SMPlayer version: 23.12.0
  • OS: Linux Mint 20.3
  • Multimedia engine you're using with SMPlayer (preferences -> general):
    [ ] MPlayer
    [X] MPV

Logs
Reproduce the bug in your computer and attach the smplayer log (menu View) here.

[16:25:57:306] BaseGui::checkStayOnTop
[16:25:57:535] Core::goToPosition: value: 816
[16:25:57:535] Core::goToSec: -1646299.000000
[16:25:57:535] MPVProcess::sendCommand: "seek 0 absolute keyframes"
[16:25:57:569] MPVProcess::parseLine: idle
[16:25:57:569] BaseGui::displayState: "Unknown"
[16:25:57:570] DefaultGui::togglePlayAction
[16:25:57:570] BaseGui::togglePlayAction
[16:25:57:570] StateWidget::watchState: 3
[16:25:57:571] BaseGui::checkStayOnTop
[16:25:57:613] BaseGui::displayState: "Playing"
[16:25:57:613] DefaultGui::togglePlayAction
[16:25:57:613] BaseGui::togglePlayAction
[16:25:57:614] StateWidget::watchState: 1
[16:25:57:614] Core::changeCurrentSec: mplayer reports that now it's playing
[16:25:57:614] BaseGui::checkStayOnTop
[16:25:57:851] Core::goToPosition: value: 779
[16:25:57:851] Core::goToSec: -1766397.000000
[16:25:57:851] MPVProcess::sendCommand: "seek 0 absolute keyframes"
[16:25:57:903] MPVProcess::parseLine: idle
[16:25:57:903] BaseGui::displayState: "Unknown"
[16:25:57:903] DefaultGui::togglePlayAction
[16:25:57:904] BaseGui::togglePlayAction
[16:25:57:904] StateWidget::watchState: 3
[16:25:57:905] BaseGui::checkStayOnTop
[16:25:57:948] BaseGui::displayState: "Playing"
[16:25:57:948] DefaultGui::togglePlayAction
[16:25:57:948] BaseGui::togglePlayAction
[16:25:57:948] StateWidget::watchState: 1
[16:25:57:948] Core::changeCurrentSec: mplayer reports that now it's playing

Additional context
I recorded a timestamp close to when the issue starts occuring and converted it to milliseconds (2131200000). Log base 2 of that is 30.99, suspiciously close to the maximum value of a signed int32.

@Hato1 Hato1 added the bug Something isn't working label Jun 19, 2024
@smplayer-dev
Copy link
Owner

Very difficult to test this.
Do you have a 600 hour sample video?

@Hato1
Copy link
Author

Hato1 commented Jun 21, 2024

Afraid I cannot share any real test cases, those videos are all over a TB anyway. I used this ffmpeg command which took almost an hour to generate a blank video:
ffmpeg -t 2520000 -f lavfi -i color=c=black:s=32x32 -c:v libx264 -r 1 -tune stillimage -pix_fmt yuv420p output.mp4
The video is 700 hours long at 1 fps and only 70MB. Trying to skip between the 600-700 hour range will cause the issue.
Video download: https://easyupload.io/79f4j8
Screen recording of me recreating the issue:
cinnamon-20240621-1.webm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants