PDA

View Full Version : advice request on first time encoding


o770
21st January 2006, 15:44
I'm attaching the .log and the .avs files.
I'm mostly concerned about the AVS script to handle this type of video and the time it takes to be encoded.
the video: pure interlaced 4:3 NTSC (9m45s);
the softw.: DVD Decrypter, DGIndex set to honor the pulldown flags, Gordian Knot and DivX6.1.1;
the hardw.: Athlon XP 2800+, 512MB DDR400.
The Comp. Test returned a value of 40% at the avg. bitrate seen in the .log files. The 1st pass encoding was HT Balanced and the 2nd pass was HT Extreme Quality with the source field set to Progressive. The resulting file size is 102MB. Results please me.

Is there anything you think is wrong or should be better?
Pls advise me!

the .avs:
# Created with Gordian Knot
#
# http://gknot.doom9.org

# PLUGINS
LoadPlugin("D:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\LeakKernelDeint.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")

# SOURCE
mpeg2source("I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top.d2v")

LeakKernelDeint(order=1)

# RESIZING
LanczosResize(640,480)

# DENOISING: choose one combination (or none)
Undot()

the .log:
1/26/2006 13:33:54: Job " 1 - abitrate1327_ct40.avi" started.

o Transcode source -> MP3: I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY 0ms.ac3
o DivX5-First Pass: I:\101_Transcode\abitrate1327_ct40.avs
o DivX5 - Pass 2: I:\101_Transcode\abitrate1327_ct40.avs
o Mux Audio.
End of Job 1 ( 1 - abitrate1327_ct40.avi).
_______________________________________________________________________________________________________________________

Gordian Knot
Encoding Job Data:

Type: EncD5_All
Container: Audio-Video Interleave (AVI)
Number: 1
Name: 1 - abitrate1327_ct40.avi
Platform: Win2000 (5.0.2195).2

Files:
VirtualDubModExe: D:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: D:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: I:\101_Transcode\abitrate1327_ct40.avi
AviMovie: I:\101_Transcode\abitrate1327_ct40_Movie.avi
AviCredits: I:\101_Transcode\abitrate1327_ct40_Credits.avi
MovieFS: I:\101_Transcode\abitrate1327_ct40.avs
CreditsFS:
Log : I:\101_Transcode\abitrate1327_ct40.log
Stats: I:\101_Transcode\abitrate1327_ct40.stats
Ecf : I:\101_Transcode\abitrate1327_ct40.ecf

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

Calculator:
VideoSize: 94750 kbyte.
Audio1Size: 13710 kbyte.
Audio2Size: 0 kbyte.
Overhead: 1107 kbyte.
AviSize: 109568 kbyte (107 mbyte).
FilesSize: 0 kbyte.
TotalSize: 109568 kbyte (107 mbyte).
Interleaving: vbrmp3
Bitrate: 1327 k(=1000)Bits/s
Frames: 17535
FPS: 29.970
Duration: 09:45
Quality: 0.144 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.361 bits/(pixel*frame).
Resolution: 640 x 480

Audio 1:
Mode: ac3 -> mp3
SourceFile: I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY 0ms.ac3
WavFile: I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY 0ms.wav
Mp3File: I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY 0ms.mp3
OggFile: I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY 0ms.ogg
OggQuality: 0.200
OggLanguage: English
Azid: -c normal
Lame: -h --abr 128
Delay: 0
Interval: 1
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.


13:33:54: Started Transcoding Audio.

13:33:54: Using "BeSweet" to transcode I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY 0ms.ac3
CommandLine: "D:\PROGRA~1\GORDIA~1\BeSweet\BeSweet.exe" -core( -input "I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced...
_Top T01 2_0ch 192Kbps DELAY 0ms.ac3" -output "I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY...
0ms.mp3" -logfile "I:\101_Transcode\input\TWO_TOWERS_BONUS\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY 0ms.log" ) -ota( -hybridgain )...
-azid( -c normal ) -lame( -h --abr 128 )
13:35:07: Finished. Duration: 1 minute, 13 seconds.

13:35:07: Audio Done.
13:35:07: MP3-File-Size is 9323 kb.
13:35:07: Audio 1, determined: 9323 kb
13:35:07: Audio 1, calc: 13710 kb
13:35:07: New Bitrate for Movie = 1389 k(=1000)Bits/s

Adding this script to D:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5 First Pass"
// $input "I:\101_Transcode\abitrate1327_ct40.avs"
// $output "I:\101_Transcode\abitrate1327_ct40_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("I:\\101_Transcode\\abitrate1327_ct40.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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("I:\\101_Transcode\\abitrate1327_ct40_Movie.avi");
VirtualDub.Close();

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

13:35:08: Started DivX5-First Pass: I:\101_Transcode\abitrate1327_ct40.avs
13:43:30: Finished DivX5-First Pass: Duration: 8 minutes, 22 seconds.
13:43:30: Trying to open Log-file.
13:43:30: Success: Log-file open.
13:43:30: Encoded: 17535 Frames.
13:43:30: Speed: 34.875 Frames per Second.

Adding this script to D:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Second Pass"
// $input "I:\101_Transcode\abitrate1327_ct40.avs"
// $output "I:\101_Transcode\abitrate1327_ct40_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("I:\\101_Transcode\\abitrate1327_ct40.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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("I:\\101_Transcode\\abitrate1327_ct40_Movie.avi");
VirtualDub.Close();

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

13:43:30: Started DivX5 - Pass: 2: I:\101_Transcode\abitrate1327_ct40.avs
14:02:12: Finished DivX5 - Pass: 2: Duration: 18 minutes, 41 seconds.
14:02:12: Speed: 15.640 Frames per Second.

Adding this script to D:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Append"
// $input "I:\101_Transcode\abitrate1327_ct40_Movie.avi"
// $output "I:\101_Transcode\abitrate1327_ct40.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("I:\\101_Transcode\\abitrate1327_ct40_Movie.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("I:\\101_Transcode\\input\\TWO_TOWERS_BONUS\\43NTSCInterlaced_Top T01 2_0ch 192Kbps DELAY 0ms.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,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("I:\\101_Transcode\\abitrate1327_ct40.avi");
VirtualDub.Close();

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

14:02:12: Started Muxing Audio.: I:\101_Transcode\abitrate1327_ct40_Movie.avi
14:02:21: Finished Muxing Audio.: Duration: 9 seconds.

14:02:21: Done.
14:02:21: Movie = I:\101_Transcode\abitrate1327_ct40.avi
Total Encoding Time: 28 minutes, 26 seconds.
1/26/2006 14:02:21: Job " 1 - abitrate1327_ct40.avi" finished.
_______________________________________________________________________________________________________________________

[)370|\|470!2
21st January 2006, 22:58
Your video most likely has 3:2 pulldown. Just set DgIndex to "Force Film", and,
if after processing it DGIndex says 100% FILM, no further IVTC needed.

Stingrey
22nd January 2006, 23:16
For the deinterlacing I tryed out many deinterlacer and I got the best results with TDeint (http://forum.doom9.org/showthread.php?t=82264&highlight=TDeint).
If the whole content is interlaced just replace LeakKernelDeint(order=1) with TDeint().
If some content is interlaced and some progressive try TDeint(mode=0,full=false,tryWeave=true).

o770
26th January 2006, 20:14
The test I ran of TDeint resulted too slow for everyday usage.
Does it sound ok that 1 hour movie takes 3 hours to be encoded with settings like the ones shown above?

I assume there isn't anything wrong in the .log files. Actually I was expecting them to be wrong at some point...

Teegedeck
27th January 2006, 12:33
Errr... if the movie is telecined, not TDeint but TIVTC is the thing to use.

And no, that encoding time seems perfectly alright to me. I usually encode at around 4 fps with my AMD64 3200.