PDA

View Full Version : Problem with small file size


koolaje
8th September 2002, 18:19
Hi Guys,

Want to get some help here. I have been encoding some dvds for the past 2 weeks or so. But I had this problem with this particular dvd. For some reason, the end result is less (in size and duration of the movie). I expect it to be around 1 hour 30 minutes (around 690 MBs), but I ended up getting the movie to be around 53 minutes (and size is about 643 MBs).

I already checked the Frame Rate (29.97 fps) and it's just a usual NTSC film, so no Forced Film here ( I checked in DVD2AVI and Gknot when opening the D2V file, both are the same ). Regarding the incorrect file result, everything is fine (audio and sub), it's just that it's somehow being cut at around 52 minutes instead of 1 hour 30 minutes. A part that I think is important is here: (complete log file at the end).

---------------
5:23:31 PM: WARNING: Number of counted frames differs from settings!
5:23:31 PM: WARNING: Settings: 163204
5:23:31 PM: WARNING: Counted: 95461
5:23:31 PM: WARNING: Difference: 67743
5:23:31 PM: Correcting Bitrate...
5:23:31 PM: Original Bitrate = 929 k(=1000)Bits/s
5:23:31 PM: Now encoding at 1598 k(=1000)Bits/s
---------------

Tried to look around in the forum, but there are a couple solutions such as wrong framerate, but mine is correct. I tried to encode it twice (after rebooting), and still doesn't work. And after that, I tried to encode a different DVD and it was working fine. So .. can you guys help me on this? Thanks in advance.

-- Kool Aje --

Ripping: DVD Decrypter 3.1.2.0
Encode: Using bare Gknot 26.1 (didn't upgrade the rest of the softwares.

Log File:
9/7/2002 3:47:07 PM: Job "Arc" started.

o DivX5-First Pass: F:\DVDVolume\VIDEO_TS\gokudo4.avs
o DivX5-Second Pass: F:\DVDVolume\VIDEO_TS\gokudo4.avs
o Mux Audio.
End of Job 2 (Arc).
_______________________________________________________________________________________________________________________

Gordian Knot 0.26.1.8
Encoding Job Data:

Type: EncD5_Both
Number: 2
Name: Arc
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: F:\DVDVolume\VIDEO_TS\gokudo4_1.avi
AviMovie: F:\DVDVolume\VIDEO_TS\gokudo4_1_Movie.avi
AviCredits: F:\DVDVolume\VIDEO_TS\gokudo4_1_Credits.avi
MovieFS: F:\DVDVolume\VIDEO_TS\gokudo4.avs
CreditsFS:
Log : F:\DVDVolume\VIDEO_TS\gokudo4_1.log
Stats: F:\DVDVolume\VIDEO_TS\gokudo4_1.stats
Ecf : F:\DVDVolume\VIDEO_TS\gokudo4_1.ecf

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

Calculator:
VideoSize: 618351 kbyte.
Audio1Size: 85093 kbyte.
Audio2Size: 0 kbyte.
Overhead: 10282 kbyte.
AviSize: 713728 kbyte (697 mbyte).
FilesSize: 0 kbyte.
TotalSize: 713728 kbyte (697 mbyte).
Interleaving: vbrmp3
Bitrate: 930 k(=1000)Bits/s
Frames: 163204
FPS: 29.970
Duration: 1:30:46
Quality: 0.176 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.349 bits/(pixel*frame).
DivX5BiDirect: 0
DivX5GMC: 0
DivX5QuartPel: 0
DivX5PsyVis: 0
Resolution: 480 x 368

Audio 1:
mode: Just Mux Source File.
sourceFile: F:\DVDVolume\VIDEO_TS\gokudo4 AC3 T02 2_0ch 192Kbps DELAY 0ms.mp3
wavFile: F:\DVDVolume\VIDEO_TS\gokudo4 AC3 T02 2_0ch 192Kbps DELAY 0ms.wav
mp3File: F:\DVDVolume\VIDEO_TS\gokudo4 AC3 T02 2_0ch 192Kbps DELAY 0ms_1.mp3
azid: ""
lame: ""
delay: 0
interval: 2
preload: 500
mux: 1
recalc: 1
deleteWav: 1

Audio 2:
none.

3:47:08 PM: Audio 1, determined: 86057 kb
3:47:08 PM: Audio 1, calc: 85093 kb
3:47:08 PM: New Bitrate for Movie = 929 k(=1000)Bits/s

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

// $job "DivX4 First Pass"
// $input "F:\DVDVolume\VIDEO_TS\gokudo4.avs"
// $output "F:\DVDVolume\VIDEO_TS\gokudo4_1_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("F:\\DVDVolume\\VIDEO_TS\\gokudo4.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(364,"GAEAAOgsDgDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAgAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEY6XERWRFZvbHVtZVxWSURFT19UU1xnb2t1ZG80XzEubG9nAGM6XHRlc3QuZGl2eABGOlxEVkRWb2x1bWVcVklERU9fVFNcZ29rdWRvNF8xLm12AG0=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("F:\\DVDVolume\\VIDEO_TS\\gokudo4_1_Movie.avi");
VirtualDub.Close();

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

3:47:08 PM: Started DivX5-First Pass: F:\DVDVolume\VIDEO_TS\gokudo4.avs
5:23:26 PM: Finished DivX5-First Pass. Duration: 1 hour, 36 minutes, 18 seconds.
5:23:26 PM: Trying to open Log-file.
5:23:31 PM: Success: Log-file open.
5:23:31 PM: Encoded: 95461 Frames.
5:23:31 PM: Speed: 16.520 Frames per Second.
5:23:31 PM: WARNING: Number of counted frames differs from settings!
5:23:31 PM: WARNING: Settings: 163204
5:23:31 PM: WARNING: Counted: 95461
5:23:31 PM: WARNING: Difference: 67743
5:23:31 PM: Correcting Bitrate...
5:23:31 PM: Original Bitrate = 929 k(=1000)Bits/s
5:23:31 PM: Now encoding at 1598 k(=1000)Bits/s

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

// $job "DivX4 Second Pass"
// $input "F:\DVDVolume\VIDEO_TS\gokudo4.avs"
// $output "F:\DVDVolume\VIDEO_TS\gokudo4_1_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("F:\\DVDVolume\\VIDEO_TS\\gokudo4.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(364,"GAEAADBiGADQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAwAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEY6XERWRFZvbHVtZVxWSURFT19UU1xnb2t1ZG80XzEubG9nAGM6XHRlc3QuZGl2eABGOlxEVkRWb2x1bWVcVklERU9fVFNcZ29rdWRvNF8xLm12AG0=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("F:\\DVDVolume\\VIDEO_TS\\gokudo4_1_Movie.avi");
VirtualDub.Close();

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

5:23:31 PM: Started DivX5-Second Pass: F:\DVDVolume\VIDEO_TS\gokudo4.avs
6:49:18 PM: Finished DivX5-Second Pass. Duration: 1 hour, 25 minutes, 47 seconds.
6:49:18 PM: Speed: 18.546 Frames per Second.

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

// $job "DivX3 Append"
// $input "F:\DVDVolume\VIDEO_TS\gokudo4_1_Movie.avi"
// $output "F:\DVDVolume\VIDEO_TS\gokudo4_1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("F:\\DVDVolume\\VIDEO_TS\\gokudo4_1_Movie.avi",0,0);
VirtualDub.audio.SetSource("F:\\DVDVolume\\VIDEO_TS\\gokudo4 AC3 T02 2_0ch 192Kbps 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("F:\\DVDVolume\\VIDEO_TS\\gokudo4_1.avi");
VirtualDub.Close();

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

6:49:18 PM: Started Appending Credits and Muxing Audio.: F:\DVDVolume\VIDEO_TS\gokudo4_1_Movie.avi
6:57:08 PM: Finished Appending Credits and Muxing Audio.. Duration: 7 minutes, 49 seconds.

6:57:08 PM: Done.
6:57:08 PM: Movie = F:\DVDVolume\VIDEO_TS\gokudo4_1.avi
Total Encoding Time: 3 hours, 10 minutes, 0 seconds.
9/7/2002 6:57:08 PM: Job "Arc" finished.
_______________________________________________________________________________________________________________________

hakko504
9th September 2002, 09:00
Did the first pass go all the way or was it aborted with an error?

If not, can you please post the .avs, the log file suggests you might have set a credit start point somewhere, even though you don't use credits.

koolaje
9th September 2002, 14:30
AVS file below.

I don't think I added any credits. I didn't actually see the first pass since I encoded when I was sleeping. Thanks.

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\GreedyHMA.dll")
LoadPlugin("C:\WINDOWS\System32\vobsub.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\SimpleResize.dll")
#
# SOURCE
mpeg2source("F:\DVDVolume\VIDEO_TS\gokudo4.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# 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(17,0,686,478)
#
# DEINTERLACING (2)
VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# SUBTITLES
VobSub("F:\DVDVolume\VIDEO_TS\VTS_01_PGC_01_0")
#
# RESIZING
BicubicResize(480,368,0,0.5)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

Hiro2k
9th September 2002, 14:53
You said the movie is 29.97 FPS right? Why don't you try doing IVTC and in Gknow tell it to calculate for 23.97 FPS. That might be the reason it's only encoding that many frames.

koolaje
9th September 2002, 18:29
Okay, I'll try to do that tonight. Will post the result tomorrow :)

koolaje
11th September 2002, 03:22
Bugger .. I've encoding a couple of times already and it still doesn't give me the right file size. This is what happen:

I used IVTC.dll to do Inverse Telecline, this is the avs file i used last time:

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\IVTC.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\GreedyHMA.dll")
LoadPlugin("C:\WINDOWS\System32\vobsub.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\SimpleResize.dll")
#
# SOURCE
mpeg2source("F:\DVDVolume\VIDEO_TS\gokudo4.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
ivtc(44,11,95)
#Telecide()
#Decimate(cycle=5)
# or use
#InverseTelecine(40,10,15)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#
# CROPPING
crop(17,0,686,478)
#
# DEINTERLACING (2)
VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# SUBTITLES
VobSub("F:\DVDVolume\VIDEO_TS\VTS_01_PGC_01_0")
#
# RESIZING
BicubicResize(480,368,0,0.5)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

Okay, and I wanted to test the both framerates (29.97 and 23.967) to check which one produces the right one (both using the same IVTC setting). I specified in Gknot to produce a 697 meg file. I thought it suppose to be the 23.967 that gives me the result I wanted, but ...

What happened is that the movie file that uses the 23.967 framerate is 1 gigabyte big. (and for some reason, I couldn't jump to the last 1/3 part of the movie, messed up the keyframes, audio is still there, but no picture). And .. the movie file that uses the 29.97 framerate has a more accurate file size, which is 847 mbs. And that one is better cause I can jump to any part of the movie without the problem.

So .. should I post the log here also? I'll try to use decomb now (using basic setting in Gknot) and see what happens.

koolaje
11th September 2002, 16:03
Um .. I did it. But not using IVTC at all :(

I was using decomb but I think i set it up wrong so it didn't even take a few seconds to complete the process. Since I was abit desperate, I tried to re-encode the movie again using the usual process, and .. it came out that the final result is only 100 megs big :scared:
:confused: :mad: !!

Then, I looked at the file_Movie.avi (the movie file that has no audio but the video part is okay), and that part is FINE :P So .. I decided to use Nandub to mux the audio and the video, PERFECT :D I'm soooo happy !

So .. well there could be a problem during the muxing part (I was watching another movie at that time, so I dunno if that affects or not, I don't think so, but ..). Anyway, I got it to work. Next time, I'll try to reboot and then encode again before I start to pull my hair off. (come to think of it, I didn't restart my computer for two days when I was encoding that first time. IMO, computers have 'moods', they can be either sweet or cranky :P). Anyway, thanks for your help guys. Appreciate it :)

-- Kool Aje --