0
I have 2 .AVI
files - one 625 MB (duration 1:02:45) and the other 925 MB (duration 1:32:12). I wish to combine the files into one .AVI
file. In a command window I issue the command:
copy /b *.avi combined.avi
combined.avi
results with a size of 1.51 GB (which is correct) but the duration is shown as 1:02:45 and, of course, when I try to play the combined.avi
, it finishes at 1:02:45.
Can anyone explain why I am not receiving a correctly merged file?
2This is probably due to the metadata in the first .avi file. It tells the player what codec etc to use and how long the video is I think. – Devan – 2015-04-08T00:30:08.797
I would try to run
copy /b second.avi + first.avi combined.avi
see if this gets the opposite effect. (shows 1:32:12 duration) btw which version of windows are you using? – Devan – 2015-04-08T00:36:26.917Devan:Thanks. WIndows 7. Re running second + first gives 1:32:12. Are you saying that I can't successfully merge the files? – Paul Richards – 2015-04-08T00:59:55.860
No but I'm saying that you may need to strip out the metadata before the copy so it will create it while doing the copy Refer to this post for removing metadata
– Devan – 2015-04-08T01:04:43.337I stripped out the metadata but the combined file is only 1:02:45 (using 1 + 2) – Paul Richards – 2015-04-08T01:17:36.500
Sorry about that. So looking at this it looks as though part of the avi standard includes a RIFF header section on the file that specifies the length of the video much like i was suggesting before. But this will not be able to be stripped out with the instructions I provided. I think you are going to be stuck with using a video converter simliar to FFmpeg.
– Devan – 2015-04-08T01:44:30.240Devan: thanks for you help. I found Karan's solution (below) provided the answer. – Paul Richards – 2015-04-08T02:17:34.703