Log in

View Full Version : Final .AVI size wrong?


Killstun
10th June 2002, 10:53
I have just tried to make my first 2CD DivX movie with GKnot. But I'm running in to trouble when it comes to the final .AVI size. The outcome is only about 900 MB instead of 1300 MB. How can that be? Is it because I'm not running a compressibility check? The GKnot log is shown below:

(I'm doing the audio seperately, and have checked 'No audio' in setup)

10-06-02 04:13:47: Job "Movie 4" started.

o DivX5-Single, Quality 20%: C:\Film\Dvd\Liar_Credits.avs
o DivX5-First Pass: C:\Film\Dvd\Liar.avs
o DivX5-Second Pass: C:\Film\Dvd\Liar.avs
o Append Credits.
o Delete Intermediate Files.
End of Job 1 (Movie 4).
_______________________________________________________________________________________________________________________

Gordian Knot 0.26.0.6
Encoding Job Data:

Type: EncD5_Both_CreditsSep
Number: 1
Name: Movie 4
Platform: Win98SE (4.10.67766446).1

Files:
VirtualDubExe: C:\PROGRA~1\DIVX\GORDIA~1\virtualdub\Virtualdub.exe
NandubExe: C:\PROGRA~1\DIVX\GORDIA~1\nandub\Nandub.exe
AviFinal: C:\Film\Dvd\Liar.avi
AviMovie: C:\Film\Dvd\Liar_Movie.avi
AviCredits: C:\Film\Dvd\Liar_Credits.avi
MovieFS: C:\Film\Dvd\Liar.avs
CreditsFS: C:\Film\Dvd\Liar_Credits.avs
Log : C:\Film\Dvd\Liar.log
Stats: C:\Film\Dvd\Liar.stats
Ecf : C:\Film\Dvd\Liar.ecf

Options:
Quality/DRF: 20
CreditsStart: 119686
UseEcf: 1
CreditsIVTC: 0
CreditsAppend: 1
DeleteInterm.: 1
EnforceBitrate:0
AntiShit: 0

Calculator:
VideoSize: 1328222 kbyte.
Audio1Size: 0 kbyte.
Audio2Size: 0 kbyte.
Overhead: 2977 kbyte.
AviSize: 1331200 kbyte (1300 mbyte).
FilesSize: 0 kbyte.
TotalSize: 1331200 kbyte (1300 mbyte).
Interleaving: disabled
Bitrate: 2188 k(=1000)Bits/s
Frames: 124321
FPS: 25.000
Duration: 1:22:53
Quality: 0.407 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.000 bits/(pixel*frame).
DivX5BiDirect: 1
DivX5GMC: 1
DivX5QuartPel: 0
DivX5PsyVis: 0
Resolution: 640 x 336

Audio 1:
none.

Audio 2:
none.


Adding this script to C:\PROGRA~1\DIVX\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Single Pass"
// $input "C:\Film\Dvd\Liar_Credits.avs"
// $output "C:\Film\Dvd\Liar_Credits.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Film\\Dvd\\Liar_Credits.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(308,"GAEAAACgDwDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAQAAAMgAAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAEAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAGVtcHR5AGM6XHRlc3QuZGl2eABlbXB0eS5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Film\\Dvd\\Liar_Credits.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

04:13:47: Started DivX5-Single, Quality 20%: C:\Film\Dvd\Liar_Credits.avs
04:21:44: Finished DivX5-Single, Quality 20%. Duration: 7 minutes, 56 seconds.
04:21:44: Assumed: Main Movie has 119686 Frames.
04:21:44: Assumed: Credits Part has 4635 Frames.
04:21:44: Credits Size = 4882Kb
04:21:44: New Bitrate for Movie = 2264 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\DIVX\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 First Pass"
// $input "C:\Film\Dvd\Liar.avs"
// $output "C:\Film\Dvd\Liar_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Film\\Dvd\\Liar.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(334,"GAEAAMCLIgDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAgAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAEAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEM6XEZpbG1cRHZkXExpYXIubG9nAGM6XHRlc3QuZGl2eABDOlxGaWxtXER2ZFxMaWFyLm12AG0=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Film\\Dvd\\Liar_Movie.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

04:21:44: Started DivX5-First Pass: C:\Film\Dvd\Liar.avs
08:10:24: Finished DivX5-First Pass. Duration: 3 hours, 48 minutes, 39 seconds.
08:10:24: Trying to open Log-file.
08:10:27: Success: Log-file open.
08:10:27: Encoded: 119685 Frames.
08:10:27: Speed: 8.724 Frames per Second.

Adding this script to C:\PROGRA~1\DIVX\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Second Pass"
// $input "C:\Film\Dvd\Liar.avs"
// $output "C:\Film\Dvd\Liar_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Film\\Dvd\\Liar.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(334,"GAEAAMCLIgDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAwAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAEAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEM6XEZpbG1cRHZkXExpYXIubG9nAGM6XHRlc3QuZGl2eABDOlxGaWxtXER2ZFxMaWFyLm12AG0=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Film\\Dvd\\Liar_Movie.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

08:10:27: Started DivX5-Second Pass: C:\Film\Dvd\Liar.avs
10:53:40: Finished DivX5-Second Pass. Duration: 2 hours, 43 minutes, 12 seconds.
10:53:40: Speed: 12.223 Frames per Second.

Adding this script to C:\PROGRA~1\DIVX\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Append"
// $input "C:\Film\Dvd\Liar_Movie.avi"
// $output "C:\Film\Dvd\Liar.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Film\\Dvd\\Liar_Movie.avi",0,0);
VirtualDub.Append("C:\\Film\\Dvd\\Liar_Credits.avi");
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Film\\Dvd\\Liar.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

10:53:40: Started Appending Credits: C:\Film\Dvd\Liar_Movie.avi
10:56:00: Finished Appending Credits. Duration: 2 minutes, 20 seconds.
10:56:00: Hmm... Final Avi Size smaller than Intermediate files.
10:56:00: Something went wrong. NOT deleting Intermediate files.

10:56:00: Done.
10:56:00: Movie = C:\Film\Dvd\Liar.avi
Total Encoding Time: 6 hours, 42 minutes, 13 seconds.
10-06-02 10:56:00: Job "Movie 4" finished.
_______________________________________________________________________________________________________________________

hakko504
10th June 2002, 11:16
I was about to post the standard answer: read this (http://forum.doom9.org/showthread.php?s=&threadid=24584) and come back, when I noticed the following lines:
Originally posted by Killstun
10:53:40: Started Appending Credits: C:\Film\Dvd\Liar_Movie.avi
10:56:00: Finished Appending Credits. Duration: 2 minutes, 20 seconds.
10:56:00: Hmm... Final Avi Size smaller than Intermediate files.
10:56:00: Something went wrong. NOT deleting Intermediate files.

Have you checked the size of the files Liar_movie.avi and Liar_Credits.avi? If they are the right size, then try join them manually (and add audio) and see if it turns out the right size. If not, do a compression test and see what the result is. Do remember that some people have reported saturation with as low compression ratio as 60% when B-frames are enabled. If you ask me, I think is looks like overkill doing a 2CD rip at 640x336 when the movie only is 1h23m.

Killstun
10th June 2002, 11:44
The file Liar_movie.avi is also in wrong size, but you gave me a hint with the overkill. The reason why I wanted 2 CDs for this "little" movie is because it deserves it ;-) - but I have done a compressibility check, which give a huge indication of overkill. Red box appears next to 'Load ->'.

I have now made the resulution bigger, and can come down to 0.338 in 'Bits/(Pixel*Frame)'. Could that maybe be enough for the rip to be much closer to 2cd's? I have read that the optimal thing is to stay around 0.25 for 2cd's, but don't have any experience with this.

hakko504
10th June 2002, 13:02
0.338 bpp sounds good to me, have you made a compression test at that resolution?

In my experience, most films will turn out fine as long as the
compression test shows values between 60-80%, regardless of the actual bits/(pixel*frame) value. If the bpp value is high (0.5 or higher), they will usually look OK with compression ratio down to 40%. If the compression ratio is higher than 80% (DivX3:100%) then you will most likely get saturated movies and not reach your target size, so at that point you should either increase resolution or decrease number of CDs.

PeterTheMaster
10th June 2002, 20:20
this happens all the time. i didnt have a single case where the intermediate files were deleted. maybe there is some synergy with the avi overheads or its because of the clustersize of the filesystem.

Originally posted by Killstun
10:53:40: Started Appending Credits: C:\Film\Dvd\Liar_Movie.avi
10:56:00: Finished Appending Credits. Duration: 2 minutes, 20 seconds.
10:56:00: Hmm... Final Avi Size smaller than Intermediate files.
10:56:00: Something went wrong. NOT deleting Intermediate files.

CaPPyD
10th June 2002, 22:35
Originally posted by PeterTheMaster
this happens all the time. i didnt have a single case where the intermediate files were deleted. maybe there is some synergy with the avi overheads or its because of the clustersize of the filesystem.



I was very perplexed by this when I first saw it happening on every one of my rips, so I did some investigating to find out why. This happens when you are not muxing the audio into your video. The overhead on each AVI is 8192KB and you lose this amount when you join two AVI files. If you have GKnot mux in the audio, no error message because of the interleaving.

Killstun
11th June 2002, 00:29
I will try to make another one without the AVI overhead box checked. Will then hope that this will get i right, because I really need to encode audio seperately. This also maybe the solution to another problem, when I'm melting picture and sound together. I will return tomorrow again ;-)

PeterTheMaster
11th June 2002, 13:26
i never let gknot mux because i use ogg (yes: vorbis).

"I will try to make another one without the AVI overhead box checked."

will not change this. i had this box checked in the past. i dont do it any more because i use ogm (yes: ogg)

seems like Wef made a little mistake, this error shouldnt occur in case of
movie + credits < both
but
(movie-8k) + (credits-8k) < (both-8k)
(if that 8k is correct)

how can this be cause of another problem? the only thing it causes is that the intermediate files pollute your harddisk until you kill them manually.

Killstun
14th June 2002, 21:35
Did not get the first part you wrote, but my problem was as you said when movie + credits are being merge. The other problem I mentioned has also been solved. It was because of an audio error I made myself with the Mp3 codec :-(