Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20499 Discussions

Hardware encoded video is wrong.

yuki_89
Novice
2,878 Views

Hello.

 

I have a problem and need your help.

 

I am using a program that does hardware encoding of mp4 videos.

 

The following problems therefore arose.

Use ffprobe

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x22efb00] stream 0, sample 1140, dts 38033008

[h264 @ 0x232b100] nal_unit_type: 7(SPS), nal_ref_idc: 3

[h264 @ 0x232b100] nal_unit_type: 8(PPS), nal_ref_idc: 3

[h264 @ 0x232b100] nal_unit_type: 5(IDR), nal_ref_idc: 3

[h264 @ 0x232b100] left block unavailable for requested intra mode

[h264 @ 0x232b100] error while decoding MB 0 17, bytestream 18526

[h264 @ 0x232b100] concealing 6169 DC, 6169 AC, 6169 MV errors in I frame

 

Analysis of the video showed that the mp4 macroblock appeared to be corrupted.

 

I would like the following information here.

・Is there any other information that is occurring?

・How to countermeasure when it occurs

・How to keep it from happening

・What should be checked if there is a problem?

 

Usage environment

・ubuntu16.04 lts

・CPU & QSV intel e3-1505m v6

・ffmpeg v4.1

・libva v2.5

Intel(R) Media Driver for VAAPI v18.3.0

 

Sorry, I can't provide video and images.

The situation is block noise in the video.

0 Kudos
14 Replies
David_G_Intel
Moderator
2,855 Views

Hello yuki_89


Thank you for posting on the Intel️® communities. Please share with us the Intel® System Support Utility for the Linux* Operating System results:

This will help us investigate, we will post the updates on the thread.


Regards, 

David G 

Intel Customer Support Technician


yuki_89
Novice
2,791 Views

Thank you!

Sorry for the late reply.

 

Information was obtained.

 

 

0 Kudos
David_G_Intel
Moderator
2,768 Views

Thank you for the update. Just to confirm the main issue is the audio on the transcoded videos, and please also confirm the codec used.


Regards, 

David G 

Intel Customer Support Technician


0 Kudos
yuki_89
Novice
2,695 Views

Thanks for getting back to me!

 

The codec used is H.264 (MPEG-4 AVC).

 

The encoder used is "Lavf58.27.103".

0 Kudos
David_G_Intel
Moderator
2,637 Views

We are currently investigating, thank you for the information.


Regards, 

David G 

Intel Customer Support Technician


David_G_Intel
Moderator
2,569 Views

@yuki_89 to continue, please confirm with us the following:

  1. Does this same issue happen on Windows 10 or Windows 11?
  2. When you test the latest drivers on Windows, do you see the same problem?
  3. Confirm if you ran all the updates from Ubuntu16.04 LTS

Since Intel does not provide direct downloads and technical support for Linux drivers. The Intel Graphics Linux driver is primarily supported through the original equipment manufacturer (OEM), the Linux distribution vendor, or by the Intel Open Source Technology Center at 01.org/linuxgraphics.


Regards, 

David G 

Intel Customer Support Technician


0 Kudos
yuki_89
Novice
2,499 Views

Thanks for the reply.

 

Sorry, it's just not possible to try it on Windows.

Ubuntu16.04 LTS updates will be checked.

 

Ok.

I understand the status of the support.

 

Let me ask you a question.

 

Are there any cases of memory corruption of information encoded with Quick Sync Video?

It seems to be caused by unintended binaries in the I-frames of the video.

0 Kudos
David_G_Intel
Moderator
2,456 Views

Thank you, let us know once the Ubuntu updates are completed. There are no known memory corruption issues reported at this moment and we recommend using Windows to confirm it's not OS related, we can also try to replicate this issue but this will be done in a Windows environment. Let us know if you can try Windows and the issue persists.


Regards, 

David G 

Intel Customer Support Technician


David_G_Intel
Moderator
2,414 Views

Were you able to check the previous post?  

Let us know if you still need assistance.    


Best regards,  

David G.  

Intel Customer Support Technician  


David_G_Intel
Moderator
2,373 Views

We have not heard back from you, so we will close this thread. If you need any additional information, please submit a new question as this thread will no longer be monitored. 


Best regards,  

David G. 

Intel Customer Support Technician  


0 Kudos
yuki_89
Novice
2,367 Views

OK.

If you have additional questions, ask a new question.

Thanks for the information.

 

Best regards

0 Kudos
edbe
Novice
2,334 Views

use this

https://github.com/rigaya/QSVEnc

is made in Japan and so far is the best video encoder for intel.

 

  • Encoding using QuickSyncVideo
    • H.264/AVC
    • H.265/HEVC (8bit/10bit)
    • MPEG2
    • VP9 (8bit/10bit)
  • Encode mode of QuickSyncVideo
    • CQP (Fixed Quantization)
    • CBR (Constant bitrate)
    • VBR (Variable bitrate)
    • AVBR (Adaptive Variable bitrate)
    • QVBR (Quality based Variable bitrate)
    • LA (Lookahead mode)
    • LA-HRD (HRD compatible Lookahead mode)
    • ICQ (Constant Quality)
    • LA-ICQ (Constant Quality with Lookahead)
    • VCM (Video Conference mode)
  • Quality preset of 7 steps
  • Interlaced encoding (by PAFF)
  • Supports setting of codec profile & level, SAR, colormatrix, maxbitrate, GOP len, etc...
  • Calculation of ssim/psnr of the encode
  • Supports various vpp(video pre-processing) filters
    • MFX (Media Fixed function) filters
      • resize
      • deinterlace (normal / bob / it)
      • detail enhancement
      • denoise
      • image stablizier
    • OpenCL filters
      • deinterlacer
        • afs (Automatic field shift)
        • nnedi
      • decimate
      • mpdecimate
      • colorspace conversion
        • hdr2sdr
      • delogo
      • subburn
      • resize
        • bilinear
        • spline16, spline36, spline64
        • lanczos2, lanczos3, lanczos4
      • transpose / rotate / flip
      • padding
      • deband
      • noise reduction
        • knn (K-nearest neighbor)
        • pmd (modified pmd method)
      • edge / detail enhancement
        • unsharp
        • edgelevel (edge ​​level adjustment)
        • warpsharp

QSVEncC

  • Supports QSV(hw) decoding
    • MPEG2
    • H.264/AVC
    • HEVC
    • VP8
    • VP9
  • Supports various formats such as avs, vpy, y4m, and raw
  • Supports demux/muxing using libavformat
  • Supports decode using libavcodec

On QSVEncC if you have audio/video sync/incomplete problem use this setting "--avsync forcecfr"

 

Or use this for video editing

https://xmedia-recode.de/en/

 

ps. both programs are FREE !

0 Kudos
yuki_89
Novice
2,331 Views

Thanks for the info!


These are the ways to encode with QSV in Windows, right?
I would like to make use of them.


Thanks.

0 Kudos
edbe
Novice
2,323 Views

QSV 4 win and lin, yes !

 

for HEVC be sure to use something like this ICQ

QSVEncC64 --avhw --async-depth 16 -c hevc --d3d11 --icq 24 --quality best

 

and for AVC

QSVEncC64 --avhw --async-depth 16 -c h264 --d3d11 --la-icq 24 --qp-min 29 --qp-max 25 --la-depth 40 --la-quality slow --quality best

 

Reply