Cannot record the screen with FFMPEG VAAPI.

lucasmsoares96

New Member
I can't use AMD GPU encoder

Code:
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Mesa Gallium driver 20.3.1 for AMD VERDE (DRM 2.50.0, 5.9.14-arch1-1, LLVM 11.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSlice
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointEncSlice
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointEncSlice
      VAProfileNone                   :    VAEntrypointVideoProc

Unable to create the output file. Check the log for more details of the error.
Warning: if you are using NVENC or AMD encoders, make sure your drivers are up to date.

Code:
12:22:24.288: CPU Name: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
12:22:24.289: CPU Speed: 2646.460MHz
12:22:24.289: Physical Cores: 4, Logical Cores: 8
12:22:24.289: Physical Memory: 15885MB Total, 10010MB Free
12:22:24.289: Kernel Version: Linux 5.9.14-arch1-1
12:22:24.289: Distribution: "Arch Linux" Unknown
12:22:24.290: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.10
12:22:24.291: Portable mode: false
12:22:24.324: OBS 26.0.2-3 (linux)
12:22:24.324: ---------------------------------
12:22:24.324: ---------------------------------
12:22:24.324: audio settings reset:
12:22:24.324:     samples per sec: 48000
12:22:24.324:     speakers:        2
12:22:24.326: ---------------------------------
12:22:24.326: Initializing OpenGL...
12:22:24.414: Loading up OpenGL on adapter AMD AMD VERDE (DRM 2.50.0, 5.9.14-arch1-1, LLVM 11.0.0)
12:22:24.414: OpenGL loaded successfully, version 4.5 (Core Profile) Mesa 20.3.1, shading language 4.50
12:22:24.426: ---------------------------------
12:22:24.426: video settings reset:
12:22:24.426:     base resolution:   2880x1800
12:22:24.426:     output resolution: 2880x1800
12:22:24.426:     downscale filter:  Bicubic
12:22:24.426:     fps:               60/1
12:22:24.426:     format:            NV12
12:22:24.426:     YUV mode:          709/Partial
12:22:24.426: NV12 texture support not available
12:22:24.427: Audio monitoring device:
12:22:24.427:     name: Padrão
12:22:24.427:     id: default
12:22:24.428: ---------------------------------
12:22:24.429: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
12:22:24.488: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
12:22:24.488: No blackmagic support
12:22:24.494: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente
12:22:24.494:
12:22:24.494: FFMPEG VAAPI supported
12:22:24.500: os_dlopen(libvlc.so.5->libvlc.so.5): libvlc.so.5: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente
12:22:24.500:
12:22:24.500: Couldn't find VLC installation, VLC video source disabled
12:22:24.500: ---------------------------------
12:22:24.500:   Loaded Modules:
12:22:24.500:     vlc-video.so
12:22:24.500:     text-freetype2.so
12:22:24.500:     rtmp-services.so
12:22:24.500:     obs-x264.so
12:22:24.500:     obs-transitions.so
12:22:24.500:     obs-outputs.so
12:22:24.500:     obs-libfdk.so
12:22:24.500:     obs-filters.so
12:22:24.500:     obs-ffmpeg.so
12:22:24.500:     linux-v4l2.so
12:22:24.500:     linux-pulseaudio.so
12:22:24.500:     linux-jack.so
12:22:24.501:     linux-decklink.so
12:22:24.501:     linux-capture.so
12:22:24.501:     linux-alsa.so
12:22:24.501:     image-source.so
12:22:24.501:     frontend-tools.so
12:22:24.501:     decklink-ouput-ui.so
12:22:24.501: ---------------------------------
12:22:24.501: ==== Startup complete ===============================================
12:22:24.504: All scene data cleared
12:22:24.504: ------------------------------------------------
12:22:24.511: alsa-input: PCM 'front:CARD=Microphone,DEV=0' rate set to 44100
12:22:24.511: alsa-input: PCM 'front:CARD=Microphone,DEV=0' channels set to 2
12:22:24.513: xshm-input: Geometry 2880x1800 @ 0,0
12:22:24.516: pulse-input: Server name: 'pulseaudio 14.0'
12:22:24.517: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
12:22:24.517: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
12:22:24.517: Switched to scene 'Cena'
12:22:24.517: ------------------------------------------------
12:22:24.517: Loaded scenes:
12:22:24.517: - scene 'Cena':
12:22:24.517:     - source: 'Captura de Tela (XSHM)' (xshm_input)
12:22:24.517:     - source: 'Dispositivo de Captura de Áudio (ALSA)' (alsa_input_capture)
12:22:24.517:     - source: 'Dispositivo de Saída de Áudio (PulseAudio)' (pulse_output_capture)
12:22:24.517: ------------------------------------------------
12:22:26.622: Starting recording due to hotkey
12:22:26.623: ---------------------------------
12:22:26.623: [FFMPEG VAAPI encoder: 'recording_h264'] settings:
12:22:26.623:     device:       /dev/dri/renderD128
12:22:26.623:     rate_control: CBR
12:22:26.623:     profile:      578
12:22:26.623:     level:        40
12:22:26.623:     qp:           0
12:22:26.623:     bitrate:      2500
12:22:26.623:     maxrate:      2500
12:22:26.623:     keyint:       120
12:22:26.623:     width:        2880
12:22:26.623:     height:       1800
12:22:26.623:     b-frames:     0
12:22:26.623:
12:22:26.630: [FFMPEG VAAPI encoder: 'recording_h264'] Failed to open VAAPI codec: Invalid Argument
 

Tuna

Member
Did you check the GPU specifications that it does support? VERDE sounds like an older generation AMD GPU. A video resolution of 2880x1800 sounds quite massive - even for today's standards. I would try with 1920x1080.
 

lucasmsoares96

New Member
The model of my video card is AMD Radeon R9 m370x. On macbook pro 2015.
I didn't find any information about my video card either on the apple website or on the amd website.
But on MacOS I can record the screen using the GPU.
 
Top