Log in

View Full Version : Writing wrong color information to the AVI header?


Suikun
9th July 2003, 21:57
Recently I encoded three part of a video to join them later on. The source was an avisynth script, the processing modes always Fast Recompress, the codec Koepi's latest XviD.
Although the videos should obviously have had the same properties concerning fps, resolution and so on (I didn't change the avisynth script or anything), VirtualDub(Mod) adamantly refused to join them saying the clips had "different video formats".
As that shouldn't be the case I analyzed the AVI headers of all three files and found out that for two of the clips the bBitCount field (bits per pixel) was set to 0x0C (12), but the other one was 0x18 (24). Manually changing it to 0x0C made the clips perfectly joinable without any further problems.

Suiryc
10th July 2003, 14:36
I think there can be 2 cases :
- you used different AviSynth scripts which produces clips with different color depth (for exemple YV12 and YUY2)
- it's the XviD codec which returns a different bitcount value depending on your settings (IIRC someone told me that using the 'Credits' feature would return a different video depth than not using it).