You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed MoviePy with sudo pip install moviepy. However, I get the following error when importing it:
$ python
Python 2.7.5 (default, Feb 11 2014, 07:46:25)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import moviepy.editor
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2261:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2261:(snd_pcm_open_noupdate) Unknown PCM default
It appears that the errors have to do with my server not having an audio card. I am connected via SSH, and I have X11 forwarding enabled, but not audio.
Is there a way to run MoviePy without connecting it to an A/V card?
The text was updated successfully, but these errors were encountered:
It may be due to the fact that importing moviepy.editor does a lot of things (like finding pygame and initializing pygame's sound module). In that case you can still use MoviePy by not using moviepy.editor, and instead importing directly the objects you need. Try this:
from moviepy.video.io import VideoFileClip
clip = VideoFileClip("some_video.mp4").subclip(0, 3)
clip.write_videofile("my_new_video.mp4")
I installed MoviePy with
sudo pip install moviepy
. However, I get the following error when importing it:It appears that the errors have to do with my server not having an audio card. I am connected via SSH, and I have X11 forwarding enabled, but not audio.
Is there a way to run MoviePy without connecting it to an A/V card?
The text was updated successfully, but these errors were encountered: