When attempting to run the example code using
python extract_scene.py example_scenes.py SquareToCircle -pl,
I get the following error:
Traceback (most recent call last):
File "extract_scene.py", line 269, in main
handle_scene(SceneClass(**scene_kwargs), **config)
File "extract_scene.py", line 159, in handle_scene
sp.call(commands, stdout=FNULL, stderr=sp.STDOUT)
File "C:\Python27\lib\subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Hi,
Same error showed to me today, I did sysscall tracing and problem was that I didn't have ffmpeg installed.
So try to install ffmpeg, if that didn't help, try to do system call tracing.
I have basically the same issue.
In my case:
C:\Users\sNAke\Desktop\manim-master\manim-master>python extract_scene.py example
_scenes.py SquareToCircle -pl
Writing to D:/3B1B\animations\example_scenes\480p15\SquareToCircleTemp.mp4
Animation 0: ShowCreationSquare: 100%|#########| 15/15 [00:00<00:00, 92.02it/s]
Animation 1: TransformSquareToCircle: 100%|###| 15/15 [00:00<00:00, 142.86it/s]
Animation 2: FadeOutSquareToSquare: 100%|#####| 15/15 [00:00<00:00, 148.52it/s]
Played a total of 3 animations
Traceback (most recent call last):
File "extract_scene.py", line 269, in main
handle_scene(SceneClass(**scene_kwargs), **config)
File "extract_scene.py", line 159, in handle_scene
sp.call(commands, stdout=FNULL, stderr=sp.STDOUT)
File "C:\Python27\lib\subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
ffmpeg is fine, I guess:
C:\Users\sNAke\Desktop\manim-master\manim-master>ffmpeg -version
ffmpeg version N-87294-gec1573f Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.1.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --ena
ble-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --en
able-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --
enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libf
reetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --e
nable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libs
nappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx -
-enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-l
ibxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 75.100 / 55. 75.100
libavcodec 57.106.101 / 57.106.101
libavformat 57. 82.100 / 57. 82.100
libavdevice 57. 8.101 / 57. 8.101
libavfilter 6.105.100 / 6.105.100
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
@samsamson33 have you fixed it?
@burlito could you tell me how to do sys call tracing?
I found this solution...
In extract_scene.py file, changing the code in line 159
sp.call(commands, stdout=FNULL, stderr=sp.STDOUT)
into
sp.call(commands, stdout=FNULL, stderr=sp.STDOUT, shell=True)
will open the video file after rendering is done.
@angeloyeo It works fine except the misleading end message: "The system cannot find the path specified."
Closing, as this has been resolved.
Most helpful comment
I found this solution...
In extract_scene.py file, changing the code in line 159
sp.call(commands, stdout=FNULL, stderr=sp.STDOUT)into
sp.call(commands, stdout=FNULL, stderr=sp.STDOUT, shell=True)will open the video file after rendering is done.