Years ago I encoded some videos in Divx, some in Xvid.
Years later I learned trick using Visual Avi FourCC changer to fix DivX videos not playing on DVD
I also learned using MP4 modifier to unpack packed bitstream
But currently I found some AVI+XVID files I can't play on any of my hardware (TV, DVD, Bluray)
All of them have GMC in media-info (or GMC/QPel).
Any fix for that, beside re-encoding?
I know XVID is outdated etc. but I have too many movies![]()
+ Reply to Thread
Results 1 to 10 of 10
-
-
Only feature you can do lossless is unpacking b-frames if you have qpel and gmc a recode will have to be done.
if all else fails read the manual -
This is one of problematic files:
Code:ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L3 Format settings : BVOP2 / GMC2 Format settings, BVOP : 2 Format settings, QPel : No Format settings, GMC : 2 warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 22 min 27 s Bit rate : 1 301 kb/s Width : 512 pixels Height : 384 pixels Display aspect ratio : 4:3 Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.265 Stream size : 209 MiB (90%) Writing library : XviD 0.0.09 (UTC 2003-03-25)
-
GMC is the problem. Older players and android devices may stutter with b-frames, but most recent players won't. Keep the h263 matrix as well. For hardware compatibility a lot of the feature set is not used (qpel, gmc, multiple b-frames,mpeg-quant etc) but the quality loss is usually minimal when running in constant quant mode. if not using b-frames a gop setting of 30 will help with image color drift but not add too much to the file size. if using b-frames I'd still not go above 60 as color drift starts to accumulate from all the p-frames before a new i-frame is made. Also set the threads to 1. I've noticed for me at least that multiple threads may speed things up but cause color drift to occur with anything above a GOP of 15.
Last edited by dannyboy48888; 13th Jun 2025 at 16:59. Reason: explaining more.
if all else fails read the manual -
-
ok thanks. I know about FourCC changing
Strange that my Samsung TV (manufactured about 2015) plays DIVX3 video while not playing this XVID with GMC
(my question about DivX3: https://forum.videohelp.com/threads/418219-Change-fourCC-of-Divx3-Low-to-XVID )
I finally learned to use Avisynth, with help of AI which suggested to use script like that (currently I'm reencoding old cartoon):
Code:#step 0: download & put needed plugin files in Avisynth plugins directory video = FFmpegSource2("FILENAME") # Step 1: Gentle Deblocking for Clean Edges video_deblocked = Deblock_QED(video, quant1=12, quant2=18, aOff1=2, bOff1=3, aOff2=2, bOff2=2, uv=1) # Step 2: Soft Denoising for Smoother Flat Colors video_denoised = video_deblocked.FFT3DFilter(sigma=1.8) # Balanced filter for cartoons # Step 3: Slight Gamma Adjustment for Depth #video_gamma = video_denoised.Levels(0, 0.85, 255, 0, 255) # Gentle darkening to aid compression # Step 5: Resize with Lanczos for Sharpness video_resized = video_gamma.LanczosResize(720, 576) # Step 6: Banding Fix for Smooth Color Gradients video_final = video_resized.GradFun2DBmod(thr=1.0) # Conservative threshold to avoid excess blur video_sharpened = video_final.LSFmod(strength=100) # Controlled sharpening after banding fix return video_sharpened
And I think result looks little better than source.
btw.1 I know about h264 etc. but I'd like to keep whole series in one format.
btw.2. I don't know why ffmpeg xvid created 2x bigger file at same compression level
Btw.3. I have also one movie in more strange format, do you know what is it:
Code:ID : 0 Format : MPEG-4 Visual Codec ID : MP42 Codec ID/Info : Microsoft MPEG-4 v2 (pre-standard) Codec ID/Hint : Microsoft Duration : 22 min 35 s Bit rate : 1 016 kb/s Width : 320 pixels Height : 240 pixels Display aspect ratio : 4:3 Frame rate : 15.000 FPS Compression mode : Lossy Bits/(Pixel*Frame) : 0.882 Stream size : 164 MiB (90%)
-
Very old video, made with second draft mpeg-4. the stuff Microsoft originally made before the version that divx based it's hack off of. FFms2 in avisynth should open no problem
Last edited by dannyboy48888; 14th Jun 2025 at 17:58.
if all else fails read the manual -
MP42 is Microsoft's old MPEG 4 Part 2 encoder. It is mentioned in ProWo's link. Basically, not compatible with any other MPEG 4 Part 2 codecs like Xvid and Divx. ffmpeg has a decoder for it.
-
# Step 5: Resize with Lanczos for Sharpness
video_resized = video_gamma.LanczosResize(720, 576)
If you're going to resize, you should resize to exact 4:3 dimensions such as 640x480 or 768x576.Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview)
Similar Threads
-
Problem With HLG not recognised on FireTv Stick 4K KODI
By mx25 in forum Newbie / General discussionsReplies: 1Last Post: 26th Feb 2025, 12:25 -
Best Settings for Converting HD to Xvid/AVI with MeGUI at 720x480
By yomle in forum Video ConversionReplies: 2Last Post: 31st Jan 2024, 13:09 -
Are encoders the same regardless of hardware?
By seanmcnally in forum Newbie / General discussionsReplies: 1Last Post: 15th Feb 2022, 18:05 -
Increasing Audio volume on AVI/DivX/Xvid with AC3 Audio
By Spacedementia87 in forum User guidesReplies: 21Last Post: 24th Dec 2021, 07:21 -
Staxrip 2.8.0 xvid avi settings
By fubar87 in forum Video ConversionReplies: 4Last Post: 21st Aug 2021, 05:30