[FFmpeg-user] Webcam capture

Rodolfo Medina rodolfo.medina at gmail.com
Wed Jul 22 23:31:19 EEST 2020


Leonardo via ffmpeg-user <ffmpeg-user at ffmpeg.org> writes:

> 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
>
>
> ... "


Nothing, the problem remains...  it gets stuck for some seconds...

rodolfo


More information about the ffmpeg-user mailing list