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

[BUG] Slides go black when video finishes #293

Closed
jeertmans opened this issue Oct 19, 2023 · 1 comment · Fixed by #297
Closed

[BUG] Slides go black when video finishes #293

jeertmans opened this issue Oct 19, 2023 · 1 comment · Fixed by #297
Labels
bug Something isn't working present Related to the main "present" feature qt Related to Qt (or its Python binding)

Comments

@jeertmans
Copy link
Owner

jeertmans commented Oct 19, 2023

Edit

This issue is tracked here: https://bugreports.qt.io/browse/QTBUG-118501.

Description

When presenting non-looping slides, each slide goes to black when the video has finished playing.

This is a visual issue because transition are therefore brutal.

I have reached the PySide6 community for help, waiting for a response: https://forum.qt.io/topic/151237/qmediaplayer-stopping-on-last-frame.

Version

v5

Platform

Linux

Screenshots

No response

Additional information

No response

@jeertmans jeertmans added bug Something isn't working present Related to the main "present" feature labels Oct 19, 2023
@jeertmans
Copy link
Owner Author

This is apparently a bug introduced in PySide6 v6.5.3, I will force the PySide6 version and wait for a bug fix or response from Qt.

jeertmans added a commit that referenced this issue Oct 23, 2023
jeertmans added a commit that referenced this issue Oct 23, 2023
jeertmans added a commit that referenced this issue Feb 27, 2024
Apparently, the "recommended* versions of Qt (i.e., Qt 6.5.1 and 6.5.2) produces errors.

I could not exactly re-produce #315, but I also have `failed to get textures for frame; format: 172 textureConverter null` in the output, as #315 (comment) mentioned.

After searching a bit, this feels like the faulty lines are (at least related to) https://github.com/jeertmans/manim-slides/blob/1dbd2fdde58030867f15d7bf0ecede11d59d6903/manim_slides/present/player.py#L245-L247.

I could not yet find a fix for that, but I created this PR for testing purposes... I also added quite a few debug prints, for the future.

When upgrading  Qt to 6.5.3 and above, the error message disappear, but we then have the same visual issue as described in #293.
@jeertmans jeertmans pinned this issue Apr 8, 2024
@jeertmans jeertmans changed the title [BUG] Slides go black when video [BUG] Slides go black when video finishes Apr 8, 2024
@jeertmans jeertmans added the qt Related to Qt (or its Python binding) label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working present Related to the main "present" feature qt Related to Qt (or its Python binding)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant