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 22 Dec 2002, 05:28 AM   #1
Junior Member
Junior Member
 
Join Date: Feb 2002
Posts: 20
Question convert codec 3 to 4 or 5?

Does anyone know if it's possible to convert div-x movies encoded with codec 3.11 to codec 4 or codec 5 in a simple way?

Thanks in advance.
slappy_pappy is offline   Reply With Quote
Old 22 Dec 2002, 05:52 AM   #2
Retired
 
setarip's Avatar
 
Join Date: Dec 2001
Posts: 24,955
Default

Try the following to change codecs (compression) used:

1) Load the .AVI into VirtualDub

2) Set "Audio" to "Direct Stream Copying"

3) Set "Video" to "Full Processing Mode"

4) From under the "Video" dropdown menu, click on "Compression"

5) Select the codec that you want to change TO - If possible, set the adjustable settings to the same as the original file

6) From the "File" dropdown menu, select "Save as AVI" and enter a new filename for the modified file
setarip is offline   Reply With Quote
Old 22 Dec 2002, 07:51 AM   #3
Junior Member
Junior Member
 
Join Date: Feb 2002
Posts: 20
Default

Thanks for answering.

I tried to do this in VirtualDub but when I'm going to save the file all I get is this message.

*Fatal Error
Could not open log file for reading.

Would you mind making me an more consistently tutorial?
slappy_pappy is offline   Reply With Quote
Old 22 Dec 2002, 08:30 AM   #4
khp
The Other
 
khp's Avatar
 
Join Date: Nov 2001
Location: Online
Posts: 2,161
Default

Setarip's guide is aimed towards 1-pass encoding, you codec is probably configured for two pass encoding, in step 5 in setarips guide, you need to click configure after selecting the codec, and set encoding method to 1-pass, and select a resonable bitrate. You can calculate the bitrate using a bitrate calculator.

http://www.divx-digest.com/software/...ml#calculators

If you feel up to it you could also go for a two pass encoding. As follows,

1) Load the file into virtualdub.
2) Select video->fast recompression, audio->'Direct Stream copy'
3) Select video->compression, Select DivX 5.02, configure, and set encoding mode to '2-pass first pass', set the bitrate, and click OK, OK.
4) Select File->'Save as AVI', in the save menu, check 'Add operation to joblist and defer processing'. And Save the file under a new name.
5) Select video->compression, Select DivX 5.02, configure, and set encoding mode to '2-pass second pass', and click OK, OK.
6) Select File->'Save as AVI', in the save menu, check 'Add operation to joblist and defer processing'. And Save the file under a new name (it's OK to use the same file name for the first and second pass)
7) Select File->'Job Control' and click start.
__________________
Donate your idle CPU time for something usefull.
http://folding.stanford.edu/

Last edited by khp; 22 Dec 2002 at 08:33 AM
khp is offline   Reply With Quote
Old 22 Dec 2002, 12:16 PM   #5
Junior Member
Junior Member
 
Join Date: Feb 2002
Posts: 20
Default

Thanks again for answering.

When I'm trying "1-pass" bitrate mode (efter using a bitrate calc) I instead get this error ->
VirtualDub Error: Video compression error, Anunknown error acurred (may be corrupt data). (error code -100)

If someone please could make me somekind of "visual" tutorial (using screenshots) would be great.

Is there maybe somthing more I'm missing? There's alot of setting avaible in VirtualDub maybe there's a box I forgot to mark or unmark in the settings config.

Oh... on more thing, The only Div-X comperession under the "compressions menu I can find are the Div-X Pro 5.0 Codec, isn't 4.0 also supposed to be avaible?
slappy_pappy is offline   Reply With Quote
Old 22 Dec 2002, 12:27 PM   #6
khp
The Other
 
khp's Avatar
 
Join Date: Nov 2001
Location: Online
Posts: 2,161
Default

Quote:
Originally posted by slappy_pappy

VirtualDub Error: Video compression error, Anunknown error acurred (may be corrupt data). (error code -100)
I'am not exactly sure what might cause this, as a test could you try setting audio to 'No audio' instead of direct stream copy.

Quote:
Originally posted by slappy_pappy

Oh... on more thing, The only Div-X comperession under the "compressions menu I can find are the Div-X Pro 5.0 Codec, isn't 4.0 also supposed to be avaible?
No, divx 4 and 5 can't be installed at the same time unless you playaround with some special tricks.
khp is offline   Reply With Quote
Old 22 Dec 2002, 12:39 PM   #7
Junior Member
Junior Member
 
Join Date: Feb 2002
Posts: 20
Default

Doh!!!

I think I found the probelm, I forgot to register Div-X Pro.
It seams to be working now.

Last edited by slappy_pappy; 22 Dec 2002 at 01:05 PM
slappy_pappy is offline   Reply With Quote
Old 22 Dec 2002, 01:10 PM   #8
khp
The Other
 
khp's Avatar
 
Join Date: Nov 2001
Location: Online
Posts: 2,161
Default

Quote:
Originally posted by slappy_pappy


What's the easiest way for me to se how many kbit/sec the sound is encoded in? is there any special bitrate culculator you recomend?
You can see see the total size of the audio track by selecting File->'File Information', the last number in the last field is the total size of the audio track in KB.
You can then calculate the bitrate by dividing by the length in seconds and multiplying by 8.

I prefer using GordianKnot as a bitrate calculator, because you can enter the total size of the audio track instead of calculating the bitrate. GordianKnot can prefor a ton of other stuff, but you only need to use the bitrate tab, and there is no need to apply any of the upgrades, just select divx4, it will be fine for calculating the bitrate for divx5.
khp is offline   Reply With Quote
Old 22 Dec 2002, 01:59 PM   #9
Junior Member
Junior Member
 
Join Date: Feb 2002
Posts: 20
Default

Damn!

After I tried making a new file coded with the 5.0 codec all I got was a file with no image (just a green back) with audio.
This happend using the 2 pass encoding.
slappy_pappy is offline   Reply With Quote
Old 22 Dec 2002, 02:05 PM   #10
khp
The Other
 
khp's Avatar
 
Join Date: Nov 2001
Location: Online
Posts: 2,161
Default

Did the filesize come out as large as you expected ?

Sounds like you didn't use '2 pass second pass' for the second pass.
khp is offline   Reply With Quote
Old 22 Dec 2002, 10:27 PM   #11
Junior Member
Junior Member
 
Join Date: Feb 2002
Posts: 20
Default

I flollowed both tutorials exactly.

No the filesize was only about 100mb out of 692mb.

Last edited by slappy_pappy; 22 Dec 2002 at 11:03 PM
slappy_pappy is offline   Reply With Quote
Old 23 Dec 2002, 01:06 PM   #12
Junior Member
Junior Member
 
Join Date: Feb 2002
Posts: 20
Default

I've finnaly got it working now, exept the sound is way out of sync and don't match at all. Can this have something to do with this message I get from VirtualDub after I've opened the AVI file?
VBR audio stream detected
VirtualDub has detected an improper VB audio encoding in the source AVI file and will rwrite the audio header with standard CBR values during processing for better compability. This may itroduce up to 81853 ms of skew from the video stream. If this is umaccaptable, decompress the *entire* audio stream to an uncompressed WAV file and recompress with a constant bitrate encoder. (bitrate: 138,3 * 34,7 kbs)




How do I use GordianKnot as an bitrate calculator?
slappy_pappy is offline   Reply With Quote
Old 23 Dec 2002, 01:21 PM   #13
Super Moderator
 
UncasMS's Avatar
 
Join Date: Nov 2001
Posts: 9,047
Default

Quote:
How do I use GordianKnot as an bitrate calculator?
confer here:
http://www.atlandide.net/~uncasms/en...p?page=gordian
__________________
UncasMS is offline   Reply With Quote
Old 23 Dec 2002, 06:47 PM   #14
khp
The Other
 
khp's Avatar
 
Join Date: Nov 2001
Location: Online
Posts: 2,161
Default

Quote:
Originally posted by slappy_pappy

VBR audio stream detected
VirtualDub has detected an improper VB audio encoding in the source AVI file and will rwrite the audio header with standard CBR values during processing for better compability. This may itroduce up to 81853 ms of skew from the video stream. If this is umaccaptable, decompress the *entire* audio stream to an uncompressed WAV file and recompress with a constant bitrate encoder. (bitrate: 138,3 * 34,7 kbs)

Yes Virtualdub is not kidding when it shows messages like this. You can solve it, either as the warning message says, or better yet, by doing the following:

1) Load the file into nandub
2) select File->Save WAV, and name the file whatever.mp3. This will extract the audio stream to an mp3 file
3) Do compression as described above, except that you select audio->'no audio' in virtualdub.
4) Load the new divx5 compressed avi file into nandub, select video->'Direct Stream copy', audio->'(VBR) MP3 file' and select the mp3 file you extracted from the original file. And save as avi under a new file name.

It's important that you use nandub for mp3 extraction and muxing, because only nandub handles VBR mp3 audio properly. And we can't use nandub for reencoding the video because nandub only encodes with Divx3.11.
khp is offline   Reply With Quote
Old 24 Dec 2002, 07:42 AM   #15
Junior Member
Junior Member
 
Join Date: Feb 2002
Posts: 20
Default

I finnaly got it to work now!
Thanks for the help all, particulary you khp!

There's just one more problem left, something's worong with the colors, all peoples faces are turning mauve/purple it's like they're slowly pulsating until next scene or camera angle it's really wierd, does anybody know how to fix this?

Also is there any program out there witch can do both the audio and AVI compression in to codec 4 or 5?

Oh and MERRY CHRISTMAS everybody.

Last edited by slappy_pappy; 24 Dec 2002 at 07:46 AM
slappy_pappy 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 11:08 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