[FFmpeg-trac] #6945(avcodec:closed): ffmpeg fails at jpeg EXIF orientation (test included)

FFmpeg trac at avcodec.org
Mon Sep 20 23:50:07 EEST 2021


#6945: ffmpeg fails at jpeg EXIF orientation (test included)
--------------------------------------+-----------------------------------
             Reporter:  Johnny        |                    Owner:  (none)
                 Type:  enhancement   |                   Status:  closed
             Priority:  wish          |                Component:  avcodec
              Version:  git-master    |               Resolution:  fixed
             Keywords:  mjpeg rotate  |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+-----------------------------------
Comment (by U. Artie Eoff):

 This fix breaks vaapi jpeg 422 decoding:

 {{{
 $ 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/6945#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list