PDA

View Full Version : Merging AVI's in VDub


dubdesign
22nd August 2006, 18:42
I am trying to merge a bunch of AVI files in VirtualDub.
I followed the guide (http://www.doom9.org/index.html?/virtualdub_procedures.htm) from the main page.

The problem I have is that I can merge the compressed XviD footage but I can't seem to merge the footage in it's "raw" (encoded with HUFF) state.

I get this error:
The video streams have incompatible data formats.
Mismatch detected in opaque codec data at byte 24 of the format data.

The thing is, that I am sure the AVI's are the same format.
They come from the same source and are encoded identically.

Any ideas why I am getting this error?

mike_lee
23rd August 2006, 00:45
I have no idea but VD errors are seldom accurate, they just use a generic warning when something goes amiss. You get that sort of warning when trying to open wmv files, for example. After you set the wmv codec correctly the error goes away. I would make sure the proper filters are enabled.

You could d/l a hex editor and concatenate (join) the files.The header information from the second file will be added, not normally a problem. And the ending of the first file will be added. Still shouldn't pose any problems. I use a hex editor to join files all the time because it's so fast. I suggest winhex.

squid_80
28th August 2006, 10:16
The thing is, that I am sure the AVI's are the same format.
They come from the same source and are encoded identically.

Are you absolutely positive? Because it sounds as if different huffyuv encoding options were used (left, gradient or median). DO NOT attempt to join the files with a hex editor as the second file will certainly show up as garbage or cause a crash. If you just want to join the files to recompress with a different codec make a simple avisynth script that looks like this:

first=avisource("file1.avi")
second=avisource("file2.avi")
first++second

Open it in virtualdub and it should contain both streams.

dexy
29th August 2006, 01:56
Forget Vdub for muxing, download free avimux, and it will mux even different videos without problem.

GodofaGap
29th August 2006, 08:33
AVIMux GUI doesn't check the stream format block and therefor will create broken avis if you join multiple huffyuv's compressed with different settings.

dexy
29th August 2006, 16:08
GodofaGap is right,avi mux only look if codec fps and resolution is same, but not block. This can be usefull if you have problems to join avis which have same main settings, but it is not good to join avis if you know that the main settings are different. Anyway, try to join it using this program, then see if it is working, if it is then you can watch it on PC but I am not sure that you can watch this video on standalone.