I have used a few different "AVI fixer" apps which found no issues with my AVI files and I have even changed the container to MKV. That did not help. The files are old and someone suggested that GMC2 / QPel may be the problem. I have come to the conclusion that the only option is to re-encode them. I believe the older versions of Kodi automatically turned off HW acceleration for files smaller than 800 pixels wide but Kodi 18 does not do this. I went out and bought a GeForce GTX 1060 card and used ffmpeg but the resulting files are almost twice as large as the originals and I see a degrade in quality. Below is the ffmpeg command line I used:
Code: Select all
for /R %%I in (*.avi) do ffmpeg -i "%%I" -c:v hevc_nvenc -preset slow -cq 18 -g 150 -c:a aac -b:a 160k "%%~nI.mkv" & echo del "%%I"
There must be a happy compromise. Can someone please suggest some other commands or Handbrake settings for me to try? There must be a way to see little to no quality loss converting to h.265 without increasing the file size, isn't there?
Below is a link to one of the hundreds of files I want to convert:
AVI file (135 MB):
Code: Select all
General Complete name : C:\1.avi Format : AVI Format/Info : Audio Video Interleave File size : 136 MiB Duration : 22 min 26 s Overall bit rate : 845 kb/s Writing application : VirtualDubMod 18.104.22.168a (build 1639/release) Writing library : VirtualDubMod build 1639/release Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L3 Format settings : GMC2 / QPel Format settings, BVOP : No Format settings, QPel : Yes Format settings, GMC : 2 warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 22 min 26 s Bit rate : 643 kb/s Width : 640 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.087 Stream size : 103 MiB (76%) Writing library : XviD 0.0.09 (UTC 2003-03-25) Audio ID : 1 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Format settings : Joint stereo / MS Stereo Codec ID : 55 Codec ID/Hint : MP3 Duration : 22 min 26 s Bit rate mode : Constant Bit rate : 192 kb/s Channel(s) : 2 channels Sampling rate : 48.0 kHz Compression mode : Lossy Stream size : 30.8 MiB (23%) Alignment : Split accross interleaves Interleave, duration : 42 ms (1.00 video frame) Interleave, preload duration : 464 ms
HandBrake version (e.g., 1.0.0):
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows Server 2012 R2