[FFmpeg-trac] #9432(avfilter:new): [regression] jpeg autorotate breaks vaapi 422 jpeg decode

FFmpeg trac at avcodec.org
Tue Sep 21 05:56:24 EEST 2021


#9432: [regression] jpeg autorotate breaks vaapi 422 jpeg decode
-------------------------------------+-------------------------------------
             Reporter:  U. Artie     |                     Type:  defect
  Eoff                               |
               Status:  new          |                 Priority:  normal
            Component:  avfilter     |                  Version:  git-
                                     |  master
             Keywords:  vaapi        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 Vaapi jpeg decode plugin can't decode 422 jpeg image since
 http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=e93c9986027d17917c3b4f533b28ee4a2ce7cd4c

 Format can't be converted between transpose and autoscale filters.

 Only workaround is to disable auto rotate {{{-autorotate 0}}}.

 How to reproduce:
 {{{
 $ ffmpeg -hwaccel vaapi -init_hw_device vaapi=hw:/dev/dri/renderD128 \
  -hwaccel_output_format vaapi -v verbose -i some-422.jpg \
  -vf 'hwdownload,format=yuv422p' -pix_fmt yuv422p \
  -f rawvideo -vframes 1 -y output.yuv

 ffmpeg version N-103752-g59719a905c5e Copyright (c) 2000-2021 the FFmpeg
 developers
   built with gcc 9 (GCC)
   configuration: --prefix=/home/uaeoff/Work/workspace/media/install
 --disable-static --enable-shared --enable-libdrm --enable-vaapi --enable-
 libmfx --disable-amf --disable-audiotoolbox --disable-cuda --disable-cuda-
 sdk --disable-cuvid --disable-d3d11va --disable-dxva2 --disable-libnpp
 --disable-mmal --disable-nvdec --disable-nvenc --disable-omx --disable-
 omx-rpi --disable-rkmpp --disable-v4l2-m2m --disable-vdpau --disable-
 videotoolbox --enable-gpl --enable-libx264 --enable-libx265
   libavutil      57.  6.100 / 57.  6.100
   libavcodec     59.  9.100 / 59.  9.100
   libavformat    59.  5.100 / 59.  5.100
   libavdevice    59.  0.101 / 59.  0.101
   libavfilter     8.  9.100 /  8.  9.100
   libswscale      6.  1.100 /  6.  1.100
   libswresample   4.  0.100 /  4.  0.100
   libpostproc    56.  0.100 / 56.  0.100
 [AVHWDeviceContext @ 0xc9c040] libva: VA-API version 1.13.0
 [AVHWDeviceContext @ 0xc9c040] libva: User environment variable requested
 driver 'iHD'
 [AVHWDeviceContext @ 0xc9c040] libva: Trying to open
 /home/uaeoff/Work/workspace/media/install/lib/dri/iHD_drv_video.so
 [AVHWDeviceContext @ 0xc9c040] libva: Found init function
 __vaDriverInit_1_13
 [AVHWDeviceContext @ 0xc9c040] libva: va_openDriver() returns 0
 [AVHWDeviceContext @ 0xc9c040] Initialised VAAPI connection: version 1.13
 [AVHWDeviceContext @ 0xc9c040] VAAPI driver: Intel iHD driver for Intel(R)
 Gen Graphics - 21.3.4 ().
 [AVHWDeviceContext @ 0xc9c040] Driver not found in known nonstandard list,
 using standard behaviour.
 Input #0, image2, from 'some-422.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: 217499 kb/s
   Stream #0:0: Video: mjpeg (Baseline), 1 reference frame, yuvj422p(pc,
 bt470bg/unknown/unknown, center), 2048x1536, 25 fps, 25 tbr, 25 tbn
 Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native))
 Press [q] to stop, [?] for help
 [graph 0 input from stream 0:0 @ 0xeb4b40] w:2048 h:1536 pixfmt:vaapi
 tb:1/25 fr:25/1 sar:0/1
 [auto_scale_0 @ 0xeb8d40] w:iw h:ih flags:'' interl:0
 [Parsed_hwdownload_0 @ 0xe51a40] auto-inserting filter 'auto_scale_0'
 between the filter 'transpose' and the filter 'Parsed_hwdownload_0'
 Impossible to convert between the formats supported by the filter
 'transpose' and the filter 'auto_scale_0'
 Error reinitializing filters!
 Failed to inject frame into filter network: Function not implemented
 Error while processing the decoded data for stream #0:0
 [AVIOContext @ 0xcec300] Statistics: 0 seeks, 0 writeouts
 [AVIOContext @ 0xce4380] Statistics: 1087496 bytes read, 0 seeks
 Conversion failed!
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9432>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list