rigaya/QSVEnc

Decoding issue with AVI files

Closed this issue · 3 comments

Hi,

QSVEnc failed to decode AVI file when coupling with FastFlix.
I think there is a key component missing, perhaps a codec that I am not aware of.

  • HW:
    • CPU: 13900k
    • GPU: Intel A770 with latest driver (5768)
  • OS:
    • W10 22H2 (19045.4412)
  • SW:
  • Steps to reproduce:
    "D:\Softwares\QSVEncC_7.68_x64\QSVEncC64.exe" 
         -i "C:\Users\vitduck\Desktop\sample_1280x720_surfing_with_audio.avi" 
         --video-metadata clear --metadata clear 
         --chapter-copy 
         -c hevc --cqp 25 --quality best --level auto --output-depth 8 --avsync cfr  
         --audio-stream 1?:stereo --audio-codec 1?aac --audio-bitrate 1?128k  
         --audio-metadata 1?clear --audio-disposition 1?unset   
         -m default_mode:infer_no_subs 
         -o "C:\Users\vitduck\Desktop\sample_1280x720_surfing_with_audio-fastflix-bc2e.mp4"
    
    • Error message:
    avi: failed to decode avi file.
    
    failed to initialize file reader(s).
    
    QSVEncC.exe finished with error!
    

Regards.

Please try adding --avsw to switch avi reader to avsw reader.

avsw reader (using libavformat/libavcodec) will be able to handle the file fine.

Also, audio related option is not supported with avi reader. Therefore it will be better to switch to avsw to make use of audio options.

Thanks for the explanation.

Adding --avsw has resolved the issue.
Based on the options list my understanding is that

  • .avi and .wmv should be decoded through CPU.
  • The rest can be decoded through GPU with --avhw

Please close the issue as you see fit and again thanks for your time.

Thank you for confirming.

I’ll close the issue as the problem is now gone.