Log in

View Full Version : Encoding error: Number of counted frames differs from settings!


loni_blues
26th July 2003, 02:26
Hi,
I am trying to encode 24 (the TV series). I have succeeded with 2 episodes so far, but using the same procedures I get a number of warnings with the third one. Here is the avs:

SetWorkingDir("C:\ARCHIV~1\GORDIA~1\")
LoadPlugin("mpeg2dec3.dll")
LoadPlugin("decomb.dll")
mpeg2source("C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_DISC2.d2v")
Telecide(guide=1).Decimate(5)
crop(6,2,708,472)
LanczosResize(640,352)

And here is the log:

25/07/2003 09:27:57 a.m.: Job " 1" started.

o Xvid - First Pass: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avs
o Xvid - Second Pass: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avs
o Mux Audio.
End of Job 1 ( 1).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

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

Files:
VirtualDubModExe: C:\ARCHIV~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\ARCHIV~1\GORDIA~1\nandub\Nandub.exe
AviFinal: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avi
AviMovie: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8_Movie_1.avi
AviCredits: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8_Credits.avi
MovieFS: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avs
CreditsFS:
Log : C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.log
Stats: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8_1.stats
Ecf : C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.ecf

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

Calculator:
VideoSize: 297259 kbyte.
Audio1Size: 60247 kbyte.
Audio2Size: 0 kbyte.
Overhead: 893 kbyte.
AviSize: 358400 kbyte (350 mbyte).
FilesSize: 0 kbyte.
TotalSize: 358400 kbyte (350 mbyte).
Interleaving: 1stream
Bitrate: 947 k(=1000)Bits/s
Frames: 77023
FPS: 29.970
Duration: 042:50
Quality: 0.140 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.258 bits/(pixel*frame).
Resolution: 640 x 352

Audio 1:
Mode: Just Mux Source File.
SourceFile: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_DISC2 Track 1 English DELAY 0ms.ac3
WavFile: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_DISC2 Track 1 English DELAY 0ms.wav
Mp3File: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_DISC2 Track 1 English DELAY 0ms.mp3
Azid:
Lame:
Delay: 0
Interval: 2
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.

09:27:57 a.m.: Re-Calculating Frame Count.
09:27:57 a.m.: FrameRate was 29.970 fps
09:27:57 a.m.: FrameRate now is 23.976 fps
09:27:57 a.m.: IVTC: 61618 Frames.
09:27:57 a.m.: Audio 1, determined: 60247 kb
09:27:57 a.m.: Audio 1, calc: 60247 kb
09:27:57 a.m.: New Bitrate for Movie = 948 k(=1000)Bits/s

Adding this script to C:\ARCHIV~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Xvid - First Pass"
// $input "C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avs"
// $output "C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8_Movie_1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\24_DISC2_VTS_04_PGC4\\24_S1_EP8.avs",0,0);
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(0x64697678,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\DVD\\Projects\\24_DISC2_VTS_04_PGC4\\24_S1_EP8_Movie_1.avi");
VirtualDub.Close();

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

09:27:57 a.m.: Started Xvid - First Pass: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avs
02:31:02 p.m.: Finished Xvid - First Pass: Duration: 5 hours, 3 minutes, 5 seconds.
02:31:02 p.m.: Trying to open Log-file.
02:31:02 p.m.: Success: Log-file open.
02:31:02 p.m.: Encoded: 61629 Frames.
02:31:02 p.m.: Speed: 3.389 Frames per Second.
02:31:02 p.m.: WARNING: Number of counted frames differs from settings!
02:31:02 p.m.: WARNING: Settings: 61618
02:31:02 p.m.: WARNING: Counted: 61629
02:31:02 p.m.: WARNING: Difference: 11
02:31:02 p.m.: Correcting Bitrate...
02:31:02 p.m.: Original Bitrate = 948 k(=1000)Bits/s
02:31:02 p.m.: Now encoding at 948 k(=1000)Bits/s
02:31:03 p.m.: New target size = 297438 Kb

Adding this script to C:\ARCHIV~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Xvid - Second Pass"
// $input "C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avs"
// $output "C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8_Movie_1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\24_DISC2_VTS_04_PGC4\\24_S1_EP8.avs",0,0);
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(0x64697678,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\DVD\\Projects\\24_DISC2_VTS_04_PGC4\\24_S1_EP8_Movie_1.avi");
VirtualDub.Close();

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

02:31:03 p.m.: Started Xvid - Second Pass: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avs
07:18:23 p.m.: Finished Xvid - Second Pass: Duration: 4 hours, 47 minutes, 19 seconds.
07:18:23 p.m.: Speed: 3.575 Frames per Second.

Adding this script to C:\ARCHIV~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Append"
// $input "C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8_Movie_1.avi"
// $output "C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\24_DISC2_VTS_04_PGC4\\24_S1_EP8_Movie_1.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("C:\\DVD\\Projects\\24_DISC2_VTS_04_PGC4\\24_DISC2 Track 1 English DELAY 0ms.ac3",0x00000203,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,2,0,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].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:\\DVD\\Projects\\24_DISC2_VTS_04_PGC4\\24_S1_EP8.avi");
VirtualDub.Close();

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

07:18:23 p.m.: Started Muxing Audio.: C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8_Movie_1.avi
07:19:13 p.m.: Finished Muxing Audio.: Duration: 50 seconds.

07:19:13 p.m.: Done.
07:19:13 p.m.: Movie = C:\DVD\Projects\24_DISC2_VTS_04_PGC4\24_S1_EP8.avi
Total Encoding Time: 9 hours, 51 minutes, 16 seconds.
25/07/2003 07:19:13 p.m.: Job " 1" finished.

What I donīt get is that Iīve had no problems with the previous episodes. Is this a Gknot bug?

Thanks for any help,

Loni Blues

manono
26th July 2003, 08:25
Hi-

I'm just guessing here, but I think it's a rounding error between the way GKnot figures the 29.97fps-->23.976fps conversion and the number of frames that really result from the IVTC. It's only 11 frames, and I don't think it's anything to worry about. The encoding turned out OK, didn't it? You got the whole show (all the frames)?

Angelus
26th July 2003, 14:51
I get an error like that too for almost every rip that I do, and for the ones that work they come out fine. Here's an example of what all of mine say:

5:14:06 PM: Started Xvid - First Pass: C:\Tony\Gangs of New York\Gangs of NY 2.avs
5:14:09 PM: Finished Xvid - First Pass: Duration: 3 seconds.
5:14:09 PM: Trying to open Log-file.
5:14:09 PM: Success: Log-file open.
5:14:09 PM: Encoded: 0 Frames.
5:14:09 PM: Speed: 0.000 Frames per Second.
5:14:09 PM: WARNING: Number of counted frames differs from settings!
5:14:09 PM: WARNING: Settings: 104746
5:14:09 PM: WARNING: Counted: 0
5:14:09 PM: WARNING: Difference: 104746
5:14:09 PM: Correcting Bitrate...
5:14:09 PM: Original Bitrate = 1184 k(=1000)Bits/s
5:14:09 PM: Error: Correction impossible.
5:14:09 PM: Now encoding at 1184 k(=1000)Bits/s
5:14:09 PM: New target size = 631460 Kb

loni_blues
27th July 2003, 04:31
Thanks very much manono!
Youīre right. The encoding was OK. I didnīt notice any missing frames.

Loni Blues