[FFmpeg-devel] [PATCH 0/5] Refact qsv decoder parser and add new decoders

Eoff, Ullysses A ullysses.a.eoff at intel.com
Mon Jan 21 20:22:25 EET 2019


> -----Original Message-----
> From: ffmpeg-devel [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of Zhong Li
> Sent: Monday, January 21, 2019 4:42 AM
> To: ffmpeg-devel at ffmpeg.org
> Cc: Li, Zhong <zhong.li at intel.com>
> Subject: [FFmpeg-devel] [PATCH 0/5] Refact qsv decoder parser and add new decoders
> 
> Replace current parser with MFXVideoDECODE_DecodeHeader(),
> and add MJPEG/VP9 decoders.
> 
> Zhong Li (5):
>   lavc/qsvdec: add function ff_qsv_map_picstruct()
>   lavc/qsvdec: Replace current parser with MFXVideoDECODE_DecodeHeader()
>   lavc/qsvdec: remove orignal parser code since not needed now
>   lavc/qsvdec: Add mjpeg decoder support
>   lavc/qsvdec: Add VP9 decoder support
> 
>  Changelog                 |   2 +
>  configure                 |  12 +++--
>  libavcodec/Makefile       |   1 +
>  libavcodec/allcodecs.c    |   2 +
>  libavcodec/qsv.c          |  23 +++++++++
>  libavcodec/qsv_internal.h |   2 +
>  libavcodec/qsvdec.c       | 119 +++++++++++++---------------------------------
>  libavcodec/qsvdec.h       |   4 +-
>  libavcodec/qsvdec_other.c |  72 ++++++++++++++++++++++++++--
>  9 files changed, 140 insertions(+), 97 deletions(-)
> 
> --
> 2.7.4
> 

[UAE] This series breaks hevc 10 bit decoder:

$ ffmpeg -hwaccel qsv -hwaccel_device /dev/dri/renderD128 -v verbose \
  -c:v hevc_qsv -load_plugin hevc_hw -I test-10bit.h265 \
  -vf 'hwdownload,format=p010le' -pix_fmt p010le \
  -f rawvideo -vsync passthrough -vframes 5 -y test.yuv

<snip>
[hevc_qsv @ 0x1f39740] Error initializing the MFX video decoder: unsupported (-3)
Error while decoding stream #0:0: Function not implemented
[hevc_qsv @ 0x1f39740] Error decoding stream header: expect more data at input (-10)
Error while decoding stream #0:0: Unknown error occurred
[hevc_qsv @ 0x1f39740] video_get_buffer: image parameters invalid
[hevc_qsv @ 0x1f39740] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[hevc_qsv @ 0x1f39740] Too many errors when draining, this is a bug. Stop draining and force EOF.
Error while decoding stream #0:0: Internal bug, should not have happened

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list