manim-slides icon indicating copy to clipboard operation
manim-slides copied to clipboard

[BUG] error after presenting the slide

Open Gpiovesana opened this issue 11 months ago • 1 comments

Terms

  • [X] Checked the existing issues and discussions to see if my issue had not already been reported;
  • [X] Checked the [frequently asked questions]](https://manim-slides.eertmans.be/latest/faq.html);
  • [X] Read the installation instructions;
  • [ ] Created a virtual environment in which I can reproduce my bug;

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 avatar Dec 22 '24 18:12 Gpiovesana

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 https://github.com/jeertmans/manim-slides/issues/446#issuecomment-2560974775, 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.

jeertmans avatar Dec 24 '24 10:12 jeertmans