Experimental ffmpeg-vaapi plugin

scurrvy2020

New Member
GloriousEggroll, thanks so much for this. I compiled the latest release with your patch and it works great on my intel machine. However, I'm having problems with my HD7770 (AMD southern islands) GPU. I have many dropped frames and it takes about 2 minutes to stop recording a 10 second screen capture.

I'd be grateful if you have any tips.

edit: I forgot to mention that I am on ubuntu 18.04 with 4.15 kernel, oibaf xorg updates, standard repo ffmpeg (ffmpeg -hwaccels lists vaapi).

Code:
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bicubic
    fps:               24000/1001
    format:            NV12
    YUV mode:          601/Partial
info: Settings changed (video)
info: ------------------------------------------------
info: ---------------------------------
info: [FFMPEG VAAPI encoder: 'recording_h264'] settings:
    device:       /dev/dri/renderD128
    qp:           20
    quality:      0
    profile:      578
    level:        40
    bitrate:      2500
    keyint:       120
    width:        1920
    height:       1080
    b-frames:     0

mesa: for the -simplifycfg-sink-common option: may only occur zero or one times!
[h264_vaapi @ 0x56246e79f820] Warning: some packed headers are not supported (want 0xd, got 0).
info: libfdk_aac encoder created
info: libfdk_aac bitrate: 160, channels: 2
info: ==== Recording Start ===============================================
info: [ffmpeg muxer: 'adv_file_output'] Writing file '/home/pc/2018-07-16 20-58-32.flv'...
[flv @ 0x563b3e23c400] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[flv @ 0x563b3e23c400] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
info: [ffmpeg muxer: 'adv_file_output'] Output of file '/home/pc/2018-07-16 20-58-32.flv' stopped
info: Output 'adv_file_output': stopping
info: Output 'adv_file_output': Total frames output: 181
info: Output 'adv_file_output': Total drawn frames: 1278 (1281 attempted)
info: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 3 (0.2%)
info: ==== Recording Stop ================================================
info: Video stopped, number of skipped frames due to encoding lag: 197/217 (90.8%)
info: libfdk_aac encoder destroyed
 

cRaZy-bisCuiT

New Member
Dear GloriousEggroll,
thank you very much for your work! I'll try out tonight if Intel GPU and my RX 480 will succeed.

In addition: Can we expect this to be merged to mainline OBS any time soon? Is there already a pull request you could link here?
 
Top