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

FFmpeg trac at avcodec.org
Thu Oct 29 15:38:10 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):

 Hi, i tested further, and it seems that the color levels problems appears
 even with this:

 {{{
 ffmpeg -f x11grab -r 60 -framerate 60 -video_size 3840x1080 -i :0.0+0,0
 -b:v 10000k  -maxrate 10000k         -threads 1 -vaapi_device
 /dev/dri/renderD128 -vf 'hwupload,scale_vaapi=format=nv12' -c:v h264_vaapi
 -f_strict experimental -syncpoints none -f nut - | ffplay -
 }}}


 ...but NOT with this:

 {{{
 ffmpeg -f x11grab -r 60 -framerate 60 -video_size 3840x1080 -i :0.0+0,0
 -b:v 10000k  -maxrate 10000k         -threads 1 -vaapi_device
 /dev/dri/renderD128 -vf 'format=nv12,hwupload' -c:v h264_vaapi -f_strict
 experimental -syncpoints none -f nut - | ffplay -
 }}}


 The difference is

 {{{
 -vf 'hwupload,scale_vaapi=format=nv12'
 }}}

 vs

 {{{
 -vf 'format=nv12,hwupload'
 }}}

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


More information about the FFmpeg-trac mailing list