Log in

View Full Version : finished avi is half expected size, but no loss of quality?


zedstrange
18th November 2002, 12:01
This is not really a major problem, but i am still perplexed how this could have happened.

I made this movie with Gknot, and the expected end result should have been a file about 690mb, encoded at 990k b/r 81mins. However the finished movie is only 310mb.
You can also see the job took 2 hrs. Normally for a full movie on my PC it will take 7-8hrs

BUT the result is perfect, given the file size I would expect that the quality would be very poor.

The only issue is that if i want to start the movie from anywhere but the start, takes about 3-4 minutes for video and audio to synch, compared to what i normally experience of around 10 seconds.

I am wondering what i have done to get so much quality in such a small file? have i discovered Divx 6 :-)

following is the LOG, I can see a couple of anomalies but i dont know how to interpret them (becuase the movie works)

thanks
Zz


9/11/2002 12:35:02 PM: Job "domestic" started.

o Transcode AC3 -> MP3: D:\dvdrips\domestcdisturbance\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.ac3
o DivX5-First Pass: D:\dvdrips\domestcdisturbance\domesticd.avs
o DivX5-Second Pass: D:\dvdrips\domestcdisturbance\domesticd.avs
o Mux Audio.
End of Job 1 (domestic).
_______________________________________________________________________________________________________________________

Gordian Knot 0.26.1.8
Encoding Job Data:

Type: EncD5_Both
Number: 1
Name: domestic
Platform: WinXP (5.1.2600).2

Files:
VirtualDubExe: C:\PROGRA~1\GORDIA~1\virtualdub\Virtualdub.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: D:\dvdrips\domestcdisturbance\domesticd.avi
AviMovie: D:\dvdrips\domestcdisturbance\domesticd_Movie.avi
AviCredits: D:\dvdrips\domestcdisturbance\domesticd_Credits.avi
MovieFS: D:\dvdrips\domestcdisturbance\domesticd.avs
CreditsFS:
Log : D:\dvdrips\domestcdisturbance\domesticd.log
Stats: D:\dvdrips\domestcdisturbance\domesticd.stats
Ecf : D:\dvdrips\domestcdisturbance\domesticd.ecf

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

Calculator:
VideoSize: 620307 kbyte.
Audio1Size: 80203 kbyte.
Audio2Size: 0 kbyte.
Overhead: 6049 kbyte.
AviSize: 706560 kbyte (690 mbyte).
FilesSize: 0 kbyte.
TotalSize: 706560 kbyte (690 mbyte).
Interleaving: 1stream
Bitrate: 990 k(=1000)Bits/s
Frames: 128335
FPS: 25.000
Duration: 1:25:33
Quality: 0.269 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.000 bits/(pixel*frame).
DivX5BiDirect: 0
DivX5GMC: 0
DivX5QuartPel: 0
DivX5PsyVis: 0
Resolution: 512 x 288

Audio 1:
mode: ac3 -> mp3
sourceFile: D:\dvdrips\domestcdisturbance\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.ac3
wavFile: D:\dvdrips\domestcdisturbance\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.wav
mp3File: D:\dvdrips\domestcdisturbance\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.mp3
azid: "-L -3db -c normal"
lame: "--al-preset 128"
delay: 0
interval: 2
preload: 500
mux: 1
recalc: 1
deleteWav: 1

Audio 2:
none.


12:35:02 PM: Started Transcoding Audio.

12:35:02 PM: Using BeSweet to transcode D:\dvdrips\domestcdisturbance\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.ac3
Commandline: C:\PROGRA~1\GORDIA~1\besweet.exe -core( -input "D:\dvdrips\domestcdisturbance\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.ac3" -output "D:\dvdrips\domestcdisturbance\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.mp3" -logfile "D:\dvdrips\domestcdisturbance\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.log" ) -ota( -G max ) -azid( -L -3db -c normal ) -lame( --al-preset 128 --scale 1 ) -profile( Gordian Knot 0.26 )
12:51:18 PM: Finished. Duration: 16 minutes, 16 seconds.

12:51:18 PM: Audio Done.
12:51:18 PM: MP3-File-Size is 80212 kb.
12:51:18 PM: Audio 1, determined: 80212 kb
12:51:18 PM: Audio 1, calc: 80203 kb
12:51:18 PM: New Bitrate for Movie = 990 k(=1000)Bits/s

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

// $job "DivX4 First Pass"
// $input "D:\dvdrips\domestcdisturbance\domesticd.avs"
// $output "D:\dvdrips\domestcdisturbance\domesticd_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\dvdrips\\domestcdisturbance\\domesticd.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(380,"GAEAADAbDwDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAgAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEQ6XGR2ZHJpcHNcZG9tZXN0Y2Rpc3R1cmJhbmNlXGRvbWVzdGljZC5sb2cAYzpcdGVzdC5kaXZ4AEQ6XGR2ZHJpcHNcZG9tZXN0Y2Rpc3R1cmJhbmNlXGRvbWVzdGljZC5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\dvdrips\\domestcdisturbance\\domesticd_Movie.avi");
VirtualDub.Close();

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

12:51:18 PM: Started DivX5-First Pass: D:\dvdrips\domestcdisturbance\domesticd.avs
1:04:01 PM: Finished DivX5-First Pass. Duration: 12 minutes, 43 seconds.
1:04:01 PM: Trying to open Log-file.
1:04:01 PM: Success: Log-file open.
1:04:01 PM: Encoded: 16770 Frames.
1:04:01 PM: Speed: 21.979 Frames per Second.
1:04:01 PM: WARNING: Number of counted frames differs from settings!
1:04:01 PM: WARNING: Settings: 128335
1:04:01 PM: WARNING: Counted: 16770
1:04:01 PM: WARNING: Difference: 111565
1:04:01 PM: Correcting Bitrate...
1:04:01 PM: Original Bitrate = 990 k(=1000)Bits/s
1:04:01 PM: ERROR: Correction impossible.
1:04:01 PM: Now encoding at 990 k(=1000)Bits/s

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

// $job "DivX4 Second Pass"
// $input "D:\dvdrips\domestcdisturbance\domesticd.avs"
// $output "D:\dvdrips\domestcdisturbance\domesticd_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\dvdrips\\domestcdisturbance\\domesticd.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(380,"GAEAADAbDwDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAwAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEQ6XGR2ZHJpcHNcZG9tZXN0Y2Rpc3R1cmJhbmNlXGRvbWVzdGljZC5sb2cAYzpcdGVzdC5kaXZ4AEQ6XGR2ZHJpcHNcZG9tZXN0Y2Rpc3R1cmJhbmNlXGRvbWVzdGljZC5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\dvdrips\\domestcdisturbance\\domesticd_Movie.avi");
VirtualDub.Close();

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

1:04:01 PM: Started DivX5-Second Pass: D:\dvdrips\domestcdisturbance\domesticd.avs
2:30:51 PM: Finished DivX5-Second Pass. Duration: 1 hour, 26 minutes, 50 seconds.
2:30:51 PM: Speed: 3.219 Frames per Second.

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

// $job "DivX3 Append"
// $input "D:\dvdrips\domestcdisturbance\domesticd_Movie.avi"
// $output "D:\dvdrips\domestcdisturbance\domesticd.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\dvdrips\\domestcdisturbance\\domesticd_Movie.avi",0,0);
VirtualDub.audio.SetSource("D:\\dvdrips\\domestcdisturbance\\domesticd AC3 T01 3_2ch 448Kbps DELAY 0ms.mp3");
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,500,2,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.audio2.SetSource(0);
VirtualDub.audio2.SetMode(0);
VirtualDub.audio2.SetInterleave(1,0,0,0,0);
VirtualDub.audio2.SetClipMode(1,1);
VirtualDub.audio2.SetConversion(0,0,0,0,0);
VirtualDub.audio2.SetVolume();
VirtualDub.audio2.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("D:\\dvdrips\\domestcdisturbance\\domesticd.avi");
VirtualDub.Close();

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

2:30:51 PM: Started Appending Credits and Muxing Audio.: D:\dvdrips\domestcdisturbance\domesticd_Movie.avi
2:32:35 PM: Finished Appending Credits and Muxing Audio.. Duration: 1 minute, 44 seconds.

2:32:35 PM: Done.
2:32:35 PM: Movie = D:\dvdrips\domestcdisturbance\domesticd.avi
Total Encoding Time: 1 hour, 57 minutes, 33 seconds.
9/11/2002 2:32:35 PM: Job "domestic" finished.
_______________________________________________________________________________________________________________________

N_F
18th November 2002, 12:18
From what I can see, your movie shouldn't be complete. Have you checked through the whole movie to see that you have picture everywhere?

zedstrange
18th November 2002, 13:33
Originally posted by N_F
From what I can see, your movie shouldn't be complete. Have you checked through the whole movie to see that you have picture everywhere?

Thanks, and you are right, from what i see in the log the movie should not be complete, but it is.

I have sat down and watched the movie from start to finish, no problems at all - not even a glitch.

CaPPyD
18th November 2002, 14:21
Can you post the contents of your AVS file?

Nandub is only encoding 13% of the movie. Maybe we can find a reason in your AVS.

1:04:01 PM: WARNING: Number of counted frames differs from settings!
1:04:01 PM: WARNING: Settings: 128335
1:04:01 PM: WARNING: Counted: 16770
1:04:01 PM: WARNING: Difference: 111565

16770 of 128335 is 13%

Trahald
18th November 2002, 15:09
well.. if you had not posted the log.. id say 'its possible for a movie to just be extremely compressable..'
my first pass quantizer 2 for a 2 hour movie i just did was 750mb.. so at for a 80 minute movie to end up that small is very remote.. but possible

if you examine the log you will see the first pass did not complete
BUT
the second pass did complete(and thats the one that gets used in the final product).. it had incomplete motion settings to work with( cause the 1st pass failed) , i dunno how divx5 makes up for the frames with no data.. maybe it falls back to quantizer 4 or something... that'll look pretty OK and end up being small. without the first pass data it would make getting the filesize right impossible.



if your happy with the output then just stick with it.. but if you think it can be better then you have to do both passes again

jggimi
18th November 2002, 16:13
The DivX produced .log files -- in your case, the log file is D:\dvdrips\domestcdisturbance\domesticd.log -- are what the first pass produces, and are a frame-by-frame analysis of the video. They are used by the second pass to produce the best possible final result with the average bitrate selected.

You might want to take a look at your .log file to see what's in it.

I did a little math, to see if for some reason this might have been a trim command problem -- but it doesn't appear to be. You set an end-credits point, but then did not encode the end-credits separately. Still, I checked the frame counts to make sure:

The log had:frames 128335
credits start 121511

Your credit section, had it been done separately, would have been 6824 frames. Your first pass frame count was 2.45 times larger than that.

I assume you're not overclocking your PC, right? If not, then as CappyD said, perhaps your .avs script will show us something. You might try opening the .avs in an .avi player or in Vdub, and seeing if you can scroll around in it.

zedstrange
23rd November 2002, 08:23
Thanks all for replying. Below is my avs file as requested.( i removed a lot of the unused stuff)

- i am not overclocking
- i did not encode the end credits - i just leave them out.
- opened the avs file in Vdub, no problems
- yes the first pass failed.


# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
#
# SOURCE
mpeg2source("D:\dvdrips\domestcdisturbance\domesticd.d2v")
#
# TRIM
trim(0,121510)
#
# IVTC
#Telecide()
#Decimate(cycle=5)
# or use
#InverseTelecine(40,10,15)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#
# CROPPING
crop(100,74,520,426)
#
# DEINTERLACING (2)
VerticalReduceBy2
# RESIZING
BicubicResize(512,288,0,0.5)