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] error after presenting the slide #502

Open
3 of 4 tasks
Gpiovesana opened this issue Dec 22, 2024 · 1 comment
Open
3 of 4 tasks

[BUG] error after presenting the slide #502

Gpiovesana opened this issue Dec 22, 2024 · 1 comment
Labels
bug Something isn't working present Related to the main "present" feature qt Related to Qt (or its Python binding) windows Windows related

Comments

@Gpiovesana
Copy link

Gpiovesana commented Dec 22, 2024

Terms

Describe the issue

After I make the slideshow, when I look at the terminal I get the following error message: [h264 @ 0000019B8BB0BCC0] Failed setup for format d3d11: hwaccel initialization returned error.

image

Command

manim Slide.py -pqk , manim-slides present BasicExample

Issue Type

Visual bug when presenting (manim-slides present)

Python version

3.12.6

Manim Slides version: 5.1.10
Python executable: C:\Python312\python.exe
Manim bindings:
manim (version: 0.18.1)
manimgl not found
Qt API: pyside6 (version: 6.8.1)

What is your platform?

Windows

Other platform

No response

Manim Slides Python code

from manim import *
from manim_slides import Slide

class BasicExample(Slide):
    def construct(self):
        circle = Circle(radius=3, color=BLUE)
        dot = Dot()

        self.play(GrowFromCenter(circle))
        self.next_slide()  
        self.next_slide(loop=True)  
        self.play(MoveAlongPath(dot, circle), run_time=2, rate_func=linear)
        self.next_slide()  

        self.play(dot.animate.move_to(ORIGIN))
        self.next_slide()
        self.play(FadeOut(circle), FadeOut(dot))
        texto=Tex("Introdução a cinemática")
        self.play(Write(texto))
        self.next_slide()

Relevant log output

PS D:\Python\Manim\Slide> manim Slide.py -pqk         
Manim Community v0.18.1

[12/22/24 14:48:07] INFO     Animation 0 : Partial movie file written in                                                                                    scene_file_writer.py:527
                             'D:\Python\Manim\Slide\media\videos\Slide\2160p60\partial_movie_files\BasicExample\1457378895_1210654341_223132457.mp4'                                
[12/22/24 14:48:12] INFO     Animation 1 : Partial movie file written in                                                                                    scene_file_writer.py:527
                             'D:\Python\Manim\Slide\media\videos\Slide\2160p60\partial_movie_files\BasicExample\1993220219_3931823519_1829105458.mp4'                               
[12/22/24 14:48:14] INFO     Animation 2 : Partial movie file written in                                                                                    scene_file_writer.py:527
                             'D:\Python\Manim\Slide\media\videos\Slide\2160p60\partial_movie_files\BasicExample\1993220219_2212810254_3481576351.mp4'                               
[12/22/24 14:48:17] INFO     Animation 3 : Partial movie file written in                                                                                    scene_file_writer.py:527
                             'D:\Python\Manim\Slide\media\videos\Slide\2160p60\partial_movie_files\BasicExample\1993220219_1601693142_1829105458.mp4'                               
[12/22/24 14:48:22] INFO     Animation 4 : Partial movie file written in                                                                                    scene_file_writer.py:527
                             'D:\Python\Manim\Slide\media\videos\Slide\2160p60\partial_movie_files\BasicExample\1993220219_3650254723_223132457.mp4'                                
                    INFO     Combining to Movie file.                                                                                                       scene_file_writer.py:617
                    INFO                                                                                                                                    scene_file_writer.py:737
                             File ready at 'D:\Python\Manim\Slide\media\videos\Slide\2160p60\BasicExample.mp4'                                                                      
                                                                                                                                                                                    
                    INFO     Rendered BasicExample      scene.py:247
                             Played 5 animations                  
                    INFO     Previewed File at: 'D:\Python\Manim\Slide\media\videos\Slide\2160p60\BasicExample.mp4'   file_ops.py:231
[12/22/24 14:48:37] INFO     Generated 4 slides to 'D:\Python\Manim\Slide\slides\files\BasicExample'       base.py:547
                    INFO     Slide 'BasicExample' configuration written in 'D:\Python\Manim\Slide\slides\BasicExample.json'       base.py:559
PS D:\Python\Manim\Slide> manim-slides BasicExample
[h264 @ 0000019B87BFB300] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B8AD1BC40] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B8AD1BC40] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B8AD1D280] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B87BFC580] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B8AD1D280] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B8AD1D280] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B87BFC580] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B8BB0BCC0] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B87BFD440] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B935BF300] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B8BB0BCC0] Failed setup for format d3d11: hwaccel initialisation returned error.
[h264 @ 0000019B8BB0BCC0] Failed setup for format d3d11: hwaccel initialisation returned error.

Screenshots

No response

Additional information

No response

Recommended fix or suggestions

No response

@Gpiovesana Gpiovesana added the bug Something isn't working label Dec 22, 2024
@jeertmans jeertmans added present Related to the main "present" feature qt Related to Qt (or its Python binding) windows Windows related labels Dec 24, 2024
@jeertmans
Copy link
Owner

Hi @Gpiovesana, thank you for reporting this bug!

Unfortunately, this is a bug that is related to Qt and its support on all platforms. We have had many issues with their packages not working exactly the same on all platforms, especially for the media module (which we use to play video). The easiest solution would be to try finding another version of their package that works on your platform.

Can you do as suggested in #446 (comment), and perform a small trial-and-error search to identify a package version for either PySide6 or PyQt6 that might work? I would especially try PyQt6 instead of PySide6.

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) windows Windows related
Projects
None yet
Development

No branches or pull requests

2 participants