SHARE
TWEET

ImageIO and Python

silver2row Jun 1st, 2020 (edited) 900 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [AVHWDeviceContext @ 0x1c91320] No VA display found for device: /dev/dri/renderD128.
  2. Device creation failed: -22.
  3. Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Invalid argument
  4. Error parsing global options: Invalid argument
  5.  
  6. import imageio
  7. import numpy as np
  8.  
  9. # All images must be of the same size
  10. image1 = np.stack([imageio.imread('imageio:camera.png')] * 3, 2)
  11. image2 = imageio.imread('imageio:astronaut.png')
  12. image3 = imageio.imread('imageio:immunohistochemistry.png')
  13.  
  14. w = imageio.get_writer('my_video.mp4', format='FFMPEG', mode='I', fps=1,
  15.                        codec='h264_vaapi',
  16.                        output_params=['-vaapi_device',
  17.                                       '/dev/dri/renderD128',
  18.                                       '-vf',
  19.                                       'format=gray|nv12,hwupload'],
  20.                        pixelformat='vaapi_vld')
  21. w.append_data(image1)
  22. w.append_data(image2)
  23. w.append_data(image3)
  24. w.close()
  25.  
  26. ...
  27.  
  28. The top is the error. The source is listed and it is from imageio docs. online.
  29.  
  30. From what I can tell, the source is telling me, via the error, that ffmpeg does not encode for vaapi_device. Is this right?
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top