OSError:[Errno 8]读取视频Moviepy时,Exec格式错误

时间:2019-02-22 07:13:21

标签: python-3.x video-processing moviepy nvidia-jetson

我正在尝试使用moviepy在NVIDIA TX2上运行视频处理代码。代码是:

clip = VideoFileClip(video_file)
video_clip = clip.fl_image(process_vid)
video_clip.write_videofile(output_vid2)

第一行出现错误。完整的错误是:

Traceback (most recent call last):   
File "img_test.py", line 117, in <module>
    clip = VideoFileClip(video_file)   
File "/home/nvidia/.local/lib/python3.5/site-packages/moviepy/video/io/VideoFileClip.py", line 91, in __init__
    fps_source=fps_source)   
File "/home/nvidia/.local/lib/python3.5/site-packages/moviepy/video/io/ffmpeg_reader.py", line 33, in __init__
    fps_source)   
File "/home/nvidia/.local/lib/python3.5/site-packages/moviepy/video/io/ffmpeg_reader.py", line 256, in ffmpeg_parse_infos
    proc = sp.Popen(cmd, **popen_params)   
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)   
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg) 
OSError: [Errno 8] Exec format error

我什至使用了this的引用,但是似乎没有任何作用。

有什么建议吗?

0 个答案:

没有答案