Question / Help Hardware Accelerated Video Encoding On Intel GPU

fuzzymonkey

New Member
Hi. I can use h264 software encoding on Ubuntu 17.10, but this maxes out my CPU and causes dropped frames.
I can use h264 hardware (vaapi) encoding with an ffmpeg command like:
Code:
 ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i ~/Videos/MOV_0146.mp4 -an -c:v h264_vaapi ~/Videos/MOV_0146sml.mp4

So I know that hardware encoding is possible on some level. How can I get it working in OBS? When I select ffmpeg and h264_vaapi I get the error "An unspecified error occurred while recording." This is the output in the terminal:
Code:
warning: rtmp-common.c: [initialize_output] Could not find service ''
warning: Failed to open video codec: Invalid argument
warning: ffmpeg_data_init failed
info: ==== Recording Stop ================================================

Log file included as well.
 

Attachments

  • 2017-10-31 13-52-31.txt
    7.5 KB · Views: 25

Reboot

New Member
It does not support it directly. But if ffmpeg supports it and OBS is using the same ffmpeg library then the Advanced Custom Output (FFmpeg) should support it too. Maybe you just need to figure out how to pass the device parameters as encoder options.
 
Top