[FFmpeg-devel] Questions about ffmpeg h264_qsv

Ron yoyo at yoyo.so
Thu Aug 6 04:34:51 CEST 2015


Hi,
 I have some questions about ffmpeg h264_qsv with Intel media sdk.
  
 1. The command 'ffmpeg -i in.mp4 -an -c:v h264_qsv out.mp4' to encode sucessful, how can I make the qsv decoder work?
   I disabled h264 decoder in 'libavcodec/allcodecs.c' to make  h264_qsv decoder work, error messages as follow:
     'ffmpeg -i in.mp4 -an -c:v h264_qsv out.mp4' ,(h264 parser error !!!)
          libavcodec     56. 49.101 / 56. 49.101
         libavformat    56. 40.101 / 56. 40.101
         libavdevice    56.  4.100 / 56.  4.100
         libavfilter     5. 25.100 /  5. 25.100
         libswscale      3.  1.101 /  3.  1.101
         libswresample   1.  2.101 /  1.  2.101
         libpostproc    53.  3.100 / 53.  3.100
        [NULL @ 0x3413760] AVC: nal size 268435457
        [NULL @ 0x3413760] missing picture in access unit with size 66365
        [h264_qsv @ 0x3412540] Only 8-bit YUV420 streams are supported.
        [NULL @ 0x3413760] AVC: nal size 268435457
        [NULL @ 0x3413760] missing picture in access unit with size 66365
        [h264_qsv @ 0x3412540] Only 8-bit YUV420 streams are supported.
        [NULL @ 0x3413760] AVC: nal size 268435457
        [NULL @ 0x3413760] missing picture in access unit with size 66365
        [h264_qsv @ 0x3412540] Only 8-bit YUV420 streams are supported.
        [NULL @ 0x3413760] AVC: nal size 268435457
        [NULL @ 0x3413760] missing picture in access unit with size 66365
        [h264_qsv @ 0x3412540] Only 8-bit YUV420 streams are supported.
        [NULL @ 0x3413760] AVC: nal size 268435457
 
    'ffmpeg -i in.264 -c:v h264_qsv out.mp4' ,  qsv decoder work sucessful but missing header!!!
 
        [h264_qsv @ 0x3678a30] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
        libva info: VA-API version 0.35.0
        libva info: va_getDriverName() returns 0
        libva info: User requested driver 'iHD'
        libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
        libva info: Found init function __vaDriverInit_0_32
        libva info: va_openDriver() returns 0
             Last message repeated 8 times
        [h264_qsv @ 0x3678a30] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
            Last message repeated 4 times
        [h264_qsv @ 0x3678a30] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
            Last message repeated 5 times
 
2.  libavcodec/qsvenc.c, function:init_video_param, line 124, 
 
        'q->param.mfx.MaxKbps          = avctx->bit_rate / 1000;'  why not 'q->param.mfx.MaxKbps          = avctx->rc_max_rate / 1000;'
 3. Many hwacc registed in the source  file 'libavcodec/allcodecs.c', How to use it? Try 'ffmpeg -hwacc h264_qsv ' failed.
  
  
 Thanks!!


More information about the ffmpeg-devel mailing list