[FFmpeg-trac] #10443(avfilter:new): VPP_QSV: Output distorted when the crop offset (cx/cy) is an odd value

FFmpeg trac at avcodec.org
Mon Jul 3 06:32:25 EEST 2023


#10443: VPP_QSV: Output distorted when the crop offset (cx/cy) is an odd value
-------------------------------------+-------------------------------------
             Reporter:  NLE-         |                    Owner:  (none)
  Chipcraft                          |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avfilter
              Version:  git-master   |               Resolution:
             Keywords:  Intel,       |               Blocked By:
  VPP_QSV, Crop                      |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by NLE-Chipcraft:

Old description:

> The output frame will be distorted, if the crop offset (cx/cy parameter)
> of the VPP_QSV filter is not divisible by two. When the crop offset IS an
> even value, the output matches of the one from AVFilter crop-function.
>
> Tested with:
>
> - Intel(R) HD Graphics Gen11 (DeviceID 4E71h) w/ 31.0.101.2125 driver
> - Windows 10 Pro 22H2 19045.3086
> - FFMpeg git-master built with gcc 13.1.0 (Rev7, Built by MSYS2 project)
> - MFX_Dispatch master-branch: https://github.com/lu-zero/mfx_dispatch
>
> Examples:
> {{{
> ffmpeg -s 1920x1080 -i Sample.yuv -vf crop=1920:1038:0:20 LAVFI_Even.PNG
> // Reference - Even.
>
> ffmpeg -s 1920x1080 -i Sample.yuv -vf crop=1920:1038:0:21 LAVFI_Odd.PNG
> // Reference - Odd.
>
> ffmpeg -hwaccel qsv -hwaccel_output_format qsv -init_hw_device
> qsv=hw,child_device_type=d3d11va -filter_hw_device hw -s 1920x1080 -i
> Sample.yuv -vf vpp_qsv=cw=1920:ch=1040:cx=0:cy=20 QSV_Even.PNG // QSV -
> No distortion, matches LAVFI output.
>
> ffmpeg -hwaccel qsv -hwaccel_output_format qsv -init_hw_device
> qsv=hw,child_device_type=d3d11va -filter_hw_device hw -s 1920x1080 -i
> Sample.yuv -vf vpp_qsv=cw=1920:ch=1038:cx=0:cy=21 QSV_Odd.PNG // QSV -
> Distorted output relative to LAVFI.
> }}}
>
> Samples uploaded using the "VideoLAN File Uploader", with reference to
> this ticket number.

New description:

 The output frame will be distorted, if the crop offset (cx/cy parameter)
 of the VPP_QSV filter is not divisible by two. When the crop offset IS an
 even value, the output matches of the one from AVFilter crop-function.

 Tested with:

 - Intel(R) HD Graphics Gen11 (DeviceID 4E71h) w/ 31.0.101.2125 driver
 - Windows 10 Pro 22H2 19045.3086
 - FFMpeg git-master built with gcc 13.1.0 (Rev7, Built by MSYS2 project)
 - MFX_Dispatch master-branch: https://github.com/lu-zero/mfx_dispatch

 Examples:
 {{{
 ffmpeg -s 1920x1080 -i Sample.yuv -vf crop=1920:1040:0:20 LAVFI_Even.PNG
 // Reference - Even.

 ffmpeg -s 1920x1080 -i Sample.yuv -vf crop=1920:1038:0:21 LAVFI_Odd.PNG //
 Reference - Odd.

 ffmpeg -hwaccel qsv -hwaccel_output_format qsv -init_hw_device
 qsv=hw,child_device_type=d3d11va -filter_hw_device hw -s 1920x1080 -i
 Sample.yuv -vf vpp_qsv=cw=1920:ch=1040:cx=0:cy=20 QSV_Even.PNG // QSV - No
 distortion, matches LAVFI output.

 ffmpeg -hwaccel qsv -hwaccel_output_format qsv -init_hw_device
 qsv=hw,child_device_type=d3d11va -filter_hw_device hw -s 1920x1080 -i
 Sample.yuv -vf vpp_qsv=cw=1920:ch=1038:cx=0:cy=21 QSV_Odd.PNG // QSV -
 Distorted output relative to LAVFI.
 }}}

 Samples uploaded using the "VideoLAN File Uploader", with reference to
 this ticket number.

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


More information about the FFmpeg-trac mailing list