[FFmpeg-user] Webcam capture

Leonardo lsbplsb at yahoo.com
Wed Jul 22 22:46:45 EEST 2020


Since you have an AMD cpu/apu, one last resort that I can think of is to capture webcam with hardware acceleration.


Extracted from https://trac.ffmpeg.org/wiki/Hardware/VAAPI

Also, you need to verify what "-vaapi_device" is the correct one for your machine.
The wiki has much more information.


"Camera Capture


Capture a raw stream from a V4L2 camera device and encode it as H.264:


$ ffmpeg -vaapi_device /dev/dri/renderD128 -f v4l2 -video_size 1920x1080 -i /dev/video0 -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mp4


... "


Kind regards,
Leonardo


More information about the ffmpeg-user mailing list