[FFmpeg-trac] #8941(undetermined:new): Wrong color levels with kmsgrab and vaapi

FFmpeg trac at avcodec.org
Tue Nov 3 10:32:14 EET 2020


#8941: Wrong color levels with kmsgrab and vaapi
-------------------------------------+-------------------------------------
             Reporter:  kokoko3k     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  kmsgrab      |               Blocked By:
  vaapi color levels                 |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by kokoko3k):

 Thanks, but the problerm is not limited to kmsgrab (see comment 1)
 Anyway i tried your suggestion with the following:

 {{{
 ffmpeg -f x11grab -framerate 60 -video_size 1920x1080 -i :0.0+0,0  -b:v
 10000k  -maxrate 10000k  -threads 1 -vaapi_device /dev/dri/renderD128 -vf
 'setparams=range=limited,hwupload,scale_vaapi=format=nv12' -c:v h264_vaapi
 -f_strict experimental -syncpoints none -f nut -
 ffmpeg -f x11grab -framerate 60 -video_size 1920x1080 -i :0.0+0,0  -b:v
 10000k  -maxrate 10000k  -threads 1 -vaapi_device /dev/dri/renderD128 -vf
 'setparams=range=limited,hwupload,setparams=range=limited,scale_vaapi=format=nv12,setparams=range=limited'
 -c:v h264_vaapi -f_strict experimental -syncpoints none -f nut - | mpv
 --profile=low-latency --untimed -
 ffmpeg  -f kmsgrab -i - -vf
 'setparams=range=limited,hwmap=derive_device=vaapi,scale_vaapi=format=nv12'
 -c:v h264_vaapi -f nut - | mpv --profile=low-latency --untimed -
 ffmpeg  -f kmsgrab -i - -vf
 'setparams=range=limited,hwmap=derive_device=vaapi,setparams=range=limited,scale_vaapi=format=nv12,setparams=range=limited'
 -c:v h264_vaapi -f nut - | mpv --profile=low-latency --untimed -
 }}}

 And all of them still have the issue.
 I'm attaching a picture of it.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8941#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list