View Full Version : Merging Segments of different DivX-AVI's to one AVI (with AC3!)
Los Eblos
17th August 2003, 23:43
Hi!
For an Open-Air-Party (with Video-Beamer) I'd like to take sequences of several DivX-AVI-Files (containing Live-Concerts with AC3!) and merge them together to one big AVI with AC3-Sound!
The AVI's perhaps have different Resolutions and DivX-Codecs.
I don't have the VOB-Files! Just AVI with AC3!
I can't find the way to get this together!
Who can help?
stax76
17th August 2003, 23:58
it's not possible if the resolution differs, use a player with playlist
Los Eblos
18th August 2003, 00:05
Player with playlist
That's one solution, but all players I tested make a pause with silence while seeking to next Playlist-Entry!
My first Idea was to find a player with picture- and Sound-Crossover-Fading between the Playlist-Tracks! Perhaps done by pllugin or something like that... I didn't find a player which is able to do this!
My second Idea was to use Video-editing-Software like Adobe Premiere or Cyberlink Power Director Pro, but when I like to keep the AC3-Sound, this doesn't work with it!
Therefor my idea to merge the AVI's!
Until now I extracted the AC3-Stream with Nandub "Save WAV...", and now I think I have to do it theoretically like this:
(1.) Convert the DIVX-AVI-Files to uncompressed AVI without sound (don't know how!)
(2.) Resize and crop uncompressed AVI's to same resolution
(3.) Encode it with DivX-5.0.5
(4.) Append file for file with Nandub oder Virtual-Dub
(5.) Merge the .ac3-Files with Filemerger
(6.) Multiplexing the big AVI and the big .ac3-File.
What do you think?
What about a player which can be controlled by a CUT-File, which contains seqeuence- and file-information like this...
Source: "Video_1.avi", Start-Frame: 12532, End-Frame: 15789;
Source: "Video_2.avi", Start-Frame: 84763, End-Frame: 95797;
and so on...
Do you know a player which can do this?
Los Eblos
18th August 2003, 01:44
Due to the 5 day signup restriction RoChess emailed me this...
Your problem is easaly solved, you got 3 solutions i can think of quick.
1). Use a player like Core Media Player at http://www.corecoded.com to play the files, but i don't believe support for segments is included yet (you'll have to check site for that)
2). Cut the pieces u need with VirtualDubMod from http://virtualdubmod.sourceforge.net/ by simply using the slider to make a selection for start, then mark start and mark end, then do File -> Save As, after u selected 'Direct Stream Copy' for the video part (audio should go direct too then, as no modification is needed), then use a player like Core Coded to play those pieces back.
3). If that still leaves gaps in audio playback from delays in the playlist, then do the dirty thing.
Load all the video files one by one in VirtualDubMod and use the video section to re-compress the videos to a general size and codec/bitrate, for example, encode all the movies to end up as 640x480 using the DivX5.0.5 codec at the same bitrate. Leave audio intact. You don't need to save as uncompressed first, as VDubMod can handle it direct to save from one codec to another, even if it's the same codec.
Now use AVI Mux GUI from the Doom9 download page and drag and drop all the seperate videos into the source container of AVIMux, select all the videos in the order you want and use the AVIMux source selector button to activate your selection, this will automatically turn the seperate files into one. The default AVIMux settings should be correct, so simply save file and enjoy. You can also do this direct from VirtualDubMod via the append function, but i got better mux results with AVIMux, especially for AC3 sound.
If you experience audio problems with this, then use AVIMux to extract the AC3 stream from the AVI file by right clicking on the audio stream. Then process all the video without audio, mux them seperate together with AVIMux to contain the AC3 sound and then mux all those files to one. You should be able to do this all at once, but i've experiences some slight audio problems when i did that, so i do it in 2 stages now.
Ron
When using "the dirty way" I think resizing to all the same resolution will bring up one "dirty" problem... some sequences will be stretched unnaturally to fit the new format. Or am I wrong? However, I'm interested in this and I'll test it tomorrow. There's not much time left, the party is on saturday ;-) Perhaps I'll use the splitted AVI's with a player which makes the smallest gap! I'll see... thanks so far!
Regards,
Lars alias Los Eblos @ Germany
precjednik
18th August 2003, 07:39
Originally posted by Los Eblos
When using "the dirty way" I think resizing to all the same resolution will bring up one "dirty" problem... some sequences will be stretched unnaturally to fit the new format. Or am I wrong?
[/B]
You're right, but you can always reecode via avisynth, all pieces to one targeted resolution with adding borders to some of the clips (AddBorders for example).
stax76
18th August 2003, 09:21
but then he would have to demux and merge the AC3 sound which would go most likely async
precjednik
18th August 2003, 09:29
Originally posted by Dolemite
but then he would have to demux and merge the AC3 sound which would go most likely async
Ah yeah, I did not think about that. Didn't in those waters. Isn't there some kind of "direct stream" option to preserve sync, but as I said, I'm not in such kind of stuff.
manono
18th August 2003, 13:29
Dolemite's suggestion is the best. Anything else is more trouble than it's worth.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.