Compatibility issue with raw bgr24 Open-DML avi file

Description

I am trying to generate some Open-DML raw bgr24 avi files using FFmpeg with the following command line.

ffmpeg.exe -i Oldtown_Orig.avi -c:v copy -c:a copy -y output.avi

The input file is a raw brg24 avi file(2.89GB)generated by VirtualDuB. Since in VirtualDuB the limitation of RIFF-AVI list size is around 2GB, so there is only 1 RIFF-AVI part 2GB and 1 RIFF-AVIX part 0.89GB in input avi header.

The output file is also a raw brg24 avi file(2.89GB) generated by FFmpeg as you can see from the command line. And in FFmpeg the limitation of RIFF-AVI list size is 1GB, so there is 1 RIFF-AVI part 1GB and 2 RIFF-AVIX parts 1GB and 0.89GB, respectively in output avi header.

We are using Harmonic Rhozet ProMedia? Carbon Coder to verify our output videos since Rhozet does check the avi header. The Issue is that Rhozet can load input file from VirtualDuB successfully BUT cannot load output file from FFmpeg even we use copy/copy here. And the error information is shown below

[DirectShow Importer] The Transcode can not import this file format.
[CR:0x00010F06]
[DirectShow Importer] The video codec “????” is not available on the system.
[EVS MXF Source] This media type is not supported.
[LXF Source] The application failed to handle the stream because it’s invalid or not supported.
[MPEG Importer] Failed to parse the stream. Stream seems invalid.
[Windows Media Source] Unable to open Windows Media source file.

VLC and MediaInfo? is happy with the output BUT not for Rhozet. And this issue only happen to Open-DML avi, which contains RIFF-AVIX list in avi header as well as RIFF-AVI.

Unrelated to this ticket: Could you provide Rhozet Carbon Coder EULA? This would be a great help to us.

I have fixed this issue and at least it works for me. FFmpeg puts 1024*1024 to dwSuggestBufferSize in strh list of AVI header. But in VirtualDuB this value is set to be the bytes of one frame, i.e. W x H x Components x Byte/Component?. And actually in movi list of AVI header, the single chuck size is for one frame, i.e. the dwSuggestedBufferSize. So I changed the 1024*1204 to the value I mentioned above and Rhozet can loca/open the output video.