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

Broken Pipe error #4

Open
guancheng817 opened this issue Dec 25, 2018 · 2 comments
Open

Broken Pipe error #4

guancheng817 opened this issue Dec 25, 2018 · 2 comments

Comments

@guancheng817
Copy link

I execute the script sh ./scripts/test_full_512.sh
Then appear the error as follows:
/media/ouc/4T_B/gc/everybody_dance_now_pytorch/models/pose2vidHD_model.py:146: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead.
input_label = Variable(input_label, volatile=infer)
100%|█████████████████████████████████████████| 500/500 [01:58<00:00, 4.19it/s]
Unknown encoder 'libx264'
Traceback (most recent call last):
File "/home/ouc/miniconda3/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 727, in _append_data
self._proc.stdin.write(im.tostring())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test_video.py", line 60, in
writer.append_data(im)
File "/home/ouc/miniconda3/lib/python3.6/site-packages/imageio/core/format.py", line 500, in append_data
return self._append_data(im, total_meta)
File "/home/ouc/miniconda3/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 734, in _append_data
raise IOError(msg)
OSError: [Errno 32] Broken pipe

FFMPEG COMMAND:
/home/ouc/miniconda3/bin/ffmpeg -y -f rawvideo -vcodec rawvideo -s 480x480 -pix_fmt rgb24 -r 25.00 -i - -an -vcodec libx264 -pix_fmt yuv420p -crf 25 -v warning /media/ouc/4T_B/gc/everybody_dance_now_pytorch/results/everybody_dance_now_temporal/latest/test_clip.avi

FFMPEG STDERR OUTPUT:

How can I fix the problem. Thanks

@Haoru
Copy link

Haoru commented Dec 26, 2018

I have met the same problem. Have you solved it?

@Lotayou
Copy link
Owner

Lotayou commented Dec 28, 2018

It seems like the ffmpeg plugin on your server is malfunctioning. You can check if your ffmpeg plugin is working properly by testing with the following script:

import imageio as imo

video_name = 'test.avi' #your video name#
reader = imo.get_reader(video_name)
writer = imo.get_reader('write_out.avi')

for im in reader:
    writer.append_data(im)
writer.close()

See if the script executes without error, and check if the generated video file write_out.avi is the same as your testing video.
Also, try to reinstall imageio package and see if that helps solve the problem.

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