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

nvenc encoder nvidia #264

Closed
fortunto2 opened this issue Feb 13, 2016 · 4 comments
Closed

nvenc encoder nvidia #264

fortunto2 opened this issue Feb 13, 2016 · 4 comments

Comments

@fortunto2
Copy link

Hi don't support render with nvenc encoder

`[MoviePy] Writing video /ubuntu/conv/149557/film/24029/baaadhon.mp4
0%| | 0/1181 [00:00<?, ?it/s]Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/moviepy-0.2.2.11-py3.4.egg/moviepy/video/io/ffmpeg_writer.py", line 137, in write_frame
self.proc.stdin.write(img_array.tostring())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./1job.py", line 210, in
duration = template.fast.render(allParam, data)
File "/ubuntu/newconv/template/fast.py", line 396, in render
ffmpeg_params=ffmpeg_params, write_logfile=True)
File "", line 2, in write_videofile
File "/usr/local/lib/python3.4/dist-packages/moviepy-0.2.2.11-py3.4.egg/moviepy/decorators.py", line 54, in requires_duration
return f(clip, _a, *_k)
File "", line 2, in write_videofile
File "/usr/local/lib/python3.4/dist-packages/moviepy-0.2.2.11-py3.4.egg/moviepy/decorators.py", line 137, in use_clip_fps_by_default
return f(clip, _new_a, *_new_kw)
File "", line 2, in write_videofile
File "/usr/local/lib/python3.4/dist-packages/moviepy-0.2.2.11-py3.4.egg/moviepy/decorators.py", line 22, in convert_masks_to_RGB
return f(clip, _a, *_k)
File "/usr/local/lib/python3.4/dist-packages/moviepy-0.2.2.11-py3.4.egg/moviepy/video/VideoClip.py", line 338, in write_videofile
ffmpeg_params=ffmpeg_params)
File "/usr/local/lib/python3.4/dist-packages/moviepy-0.2.2.11-py3.4.egg/moviepy/video/io/ffmpeg_writer.py", line 216, in ffmpeg_write_video
writer.write_frame(frame)
File "/usr/local/lib/python3.4/dist-packages/moviepy-0.2.2.11-py3.4.egg/moviepy/video/io/ffmpeg_writer.py", line 139, in write_frame
ffmpeg_error = self.proc.stderr.read()
AttributeError: 'NoneType' object has no attribute 'read'`

final.write_videofile(urlfilm, fps=30, audio_bitrate="128k", bitrate=bitrate,codec='nvenc', ffmpeg_params=ffmpeg_params, write_logfile=True)

@fortunto2
Copy link
Author

hm...
moviepy, using not my installed version ffmpeg
in system 2.8.6
in moviepy 2.4.2

where i can change path?

@Zulko
Copy link
Owner

Zulko commented Feb 13, 2016

from moviepy.config import change_settings
change_settings({"FFMPEG_BINARY":"ffmpeg"})

@fortunto2
Copy link
Author

cool, thank you)) now work!

@fortunto2 fortunto2 changed the title nvenc encoder nvidea nvenc encoder nvidia Feb 13, 2016
@sircambridge
Copy link

this worked for me too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants