Digital Video Forums  

Go Back   Digital Video Forums > Video File Formats > AVI, DivX/Xvid

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 8 Apr 2002, 08:45 AM   #1
Junior Member
Junior Member
 
Join Date: Nov 2001
Posts: 26
Default Best way to encode multiple files?

I've come across abit of a problem. I have some video I captured off the TV and it came out great. All the audio is in sync, and the video looks great. But the avi's are very large, so I had to capture the video in about 8 minute files. I used VirtualDub and the Append AVI option and all looks fine. But when I try to encode the file, the audio goes WAY off sync from the very beginning. So I take it I sould remove the audio first, THEN interleave it after I encode the video.
But I'm wondering whats the best method to do this? I'm thinking of 2 ways currently.

1. Encode each individual avi, both the video and audio and interleave them. Then, after all the avi's are encoded, join them all together.

2. Encode each individual avi, video only. Join the videos first, THEN interleave the entire audio track.

Which is the easiest method? I'm thinking #1 would be the better solution since the audio will match the video, and after joining it sould all still be in sync.

And one more question. Whats the best program to use to interleave a mp3 audio track with a DivX5 video track? I've read that VirtualDub can't interleave a mp3 unless it has a wav header appended to it, but wont that throw off the correct start of the audio so that it stays in sync? Is there a better program to interleave mp3 and avi?

TIA
Mpegger is offline   Reply With Quote
Old 8 Apr 2002, 02:30 PM   #2
Retired
 
setarip's Avatar
 
Join Date: Dec 2001
Posts: 24,955
Default

Before you go through an awful lot of possibly unnecessary effort, try the following:

1) Load ONLY the SECOND segment into VirtualDub

2) Set both "Video" and "Audio" to "Direct Stream Copying"

3) From under the "Audio" dropdown menu, select "Interleaving"

4) Enter 1,000 in the box labeled "Audio skew correction" (You may have to adjust this number to get it "just right")

5) From the "File" dropdown menu, select "Save as AVI" and save this revised replacement file with a new name (Note: If you play this file by itself, it WILL be out of synch - but not to worry)

6) Close VirtualDub (as a precaution)

7) Re-open VirtualDub

8) Set both "Video" and "Audio" to "Direct Stream Copying"

9) Load your FIRST file

10) Append the REVISED second file (Make certain NOT to append the original second file during this step or the next!)

11) Append file 3 through last

12) From the "File" dropdown menu, select "Save as AVI" and save this combined file with a new name

Let us know of your success ;>}
setarip is offline   Reply With Quote
Old 8 Apr 2002, 10:20 PM   #3
Junior Member
Junior Member
 
Join Date: Nov 2001
Posts: 26
Default

I understand what you want me to do, but I'm not sure its possible. Each of the files are greater then 1gig in size, and there are 6 files in total per "episode". I wouldn't be able to save more then 3 sections at a time, cause the 4th would cause the file to be larger then 4gigs, and I currently use Win98SE.

The total running time of each episode is only about 47 minutes, so the encoding wouldn't take too long. But if I can save some steps here and there, it would help alot.

BTW, what exactly would setting the audio skew so large to only the 2nd file do? Does it cause all the other files to align themselves correctly? This is the first time I've tried encoding a avi. I've done mostly mpeg before, but after seeing how good a quality I can get with DivX, I've made the switch. But I've never tried encodeing multiple files that are so large, just smaller 1 section files.
Mpegger is offline   Reply With Quote
Old 8 Apr 2002, 11:52 PM   #4
Lord of Digital Video
Lord of Digital Video
 
Batman's Avatar
 
Join Date: Jan 2002
Location: Gotham City
Posts: 2,317
Default

If these are uncompressed avi's that you wish to join...why don't you convert each part and then join them as Setarip has indicated?
Batman is offline   Reply With Quote
Old 9 Apr 2002, 01:35 AM   #5
Retired
 
setarip's Avatar
 
Join Date: Dec 2001
Posts: 24,955
Default

"I used VirtualDub and the Append AVI option and all looks fine. But when I try to encode the file, the audio goes WAY off sync from the very beginning."

What I've proposed addresses your question.

If you have a DivX (or other) codec installed on your system, first use VirtualDub to compress the video of each file...
setarip is offline   Reply With Quote
Old 9 Apr 2002, 02:21 AM   #6
Digital Video Master
Digital Video Master
 
Join Date: Nov 2001
Posts: 1,309
Default

setarip, I think u missed a special thread....



Techno
techno is offline   Reply With Quote
Old 9 Apr 2002, 02:25 AM   #7
Junior Member
Junior Member
 
Join Date: Nov 2001
Posts: 26
Default

I guess I sould have said that the avi's are as close to uncompressed as can be.

So I sould encode each file individually first to DivX format, then use your method for joing multiple avi's, correct?
Mpegger is offline   Reply With Quote
Old 9 Apr 2002, 03:34 AM   #8
Retired
 
setarip's Avatar
 
Join Date: Dec 2001
Posts: 24,955
Default

Yes, that's what I would suggest. If you so desire, at the same time, from within VirtualDub, you can compress the audio (if not already in compressed form) in MP3 format. This will eliminate any size barriers...
setarip is offline   Reply With Quote
Old 9 Apr 2002, 03:36 AM   #9
Digital Video Master
Digital Video Master
 
Join Date: Nov 2001
Posts: 1,309
Default to setarip

setarip:

u do have a problem with me. why?
techno is offline   Reply With Quote
Old 9 Apr 2002, 04:48 AM   #10
Digital Video Master
Digital Video Master
 
Join Date: Nov 2001
Posts: 1,309
Default

Please setarip, I come in Peace, I have done nothing wrong to you so please help me my friend, is it too much to ask for?
techno is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT +10. The time now is 03:02 AM.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 1999 - 2018 Digital Digest

Visit DivXLand   Visit dvdloc8.com