[FFmpeg-trac] #7722(undetermined:closed): [FFmpeg-vaapi][mpeg2 decode] failed setup for format vaapi_vld: hwaccel initialisation returned error

FFmpeg trac at avcodec.org
Fri Jul 12 12:18:27 EEST 2019


#7722: [FFmpeg-vaapi][mpeg2 decode] failed setup for format vaapi_vld: hwaccel
initialisation returned error
-------------------------------------+-------------------------------------
             Reporter:  andreyor     |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:  invalid
             Keywords:  vaapi        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by fulinjie):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 4:2:2 profile for mpeg2 is not supported by driver(iHD).

 $ mediainfo xdcam8mp2-1s_small.ts
 Video
 ID : 256 (0x100)
 Menu ID : 1 (0x1)
 Format : MPEG Video
 Format version : Version 2
 Format profile : 4:2:2 at Main



 $ vainfo

 VAProfileMPEG2Simple : VAEntrypointVLD
 VAProfileMPEG2Simple : VAEntrypointEncSlice
 VAProfileMPEG2Main : VAEntrypointVLD
 VAProfileMPEG2Main : VAEntrypointEncSlice
 VAProfileH264Main : VAEntrypointVLD

 Moreover, ffmpeg only enables hardware decode support for mpeg2 420 in
 mpeg12dec.c
 4:2:2 hardware accelerate is not supported.
 {{{
 static const enum AVPixelFormat mpeg2_hwaccel_pixfmt_list_420[] = {
 #if CONFIG_MPEG2_NVDEC_HWACCEL
     AV_PIX_FMT_CUDA,
 #endif
 #if CONFIG_MPEG2_XVMC_HWACCEL
     AV_PIX_FMT_XVMC,
 #endif
 #if CONFIG_MPEG2_VDPAU_HWACCEL
     AV_PIX_FMT_VDPAU,
 #endif
 #if CONFIG_MPEG2_DXVA2_HWACCEL
     AV_PIX_FMT_DXVA2_VLD,
 #endif
 #if CONFIG_MPEG2_D3D11VA_HWACCEL
     AV_PIX_FMT_D3D11VA_VLD,
     AV_PIX_FMT_D3D11,
 #endif
 #if CONFIG_MPEG2_VAAPI_HWACCEL
     AV_PIX_FMT_VAAPI,
 #endif
 #if CONFIG_MPEG2_VIDEOTOOLBOX_HWACCEL
     AV_PIX_FMT_VIDEOTOOLBOX,
 #endif
     AV_PIX_FMT_YUV420P,
     AV_PIX_FMT_NONE
 };

 static const enum AVPixelFormat mpeg12_pixfmt_list_422[] = {
     AV_PIX_FMT_YUV422P,
     AV_PIX_FMT_NONE
 };
 }}}



 So this issue is invalid and could be closed.

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


More information about the FFmpeg-trac mailing list