PDA

View Full Version : Problems Encoding TV Shows


CCoug83
28th January 2004, 08:35
Hybrids seem to be a true pain in the butt. First I encoded with AutoGK only to have varied results. Some parts of it looked good, but most looked extremely jerky motion. Here is the log:

[1/25/2004 7:46:21 PM] Input dir: C:\Ripping\Son of the Beach\101
[1/25/2004 7:46:21 PM] Output file: C:\Ripping\Son of the Beach\101\101_2.avi
[1/25/2004 7:46:21 PM] Audio: English
[1/25/2004 7:46:21 PM] Subtitles: none
[1/25/2004 7:46:21 PM] Codec: DivX
[1/25/2004 7:46:21 PM] Target size: 140Mb
[1/25/2004 7:46:21 PM] Custom resolution settings: minimum width of 448 pixels
[1/25/2004 7:46:21 PM] Custom audio settings: VBR MP3 with average bitrate: 96Kbps
[1/25/2004 7:46:21 PM] Started encoding.
[1/25/2004 7:46:21 PM] Demuxing and indexing.
[1/25/2004 7:46:48 PM] Analyzing source.
[1/25/2004 7:46:48 PM] Writing the following script to C:\Ripping\Son of the Beach\101\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\_.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\_.avi");
===========================================================
[1/25/2004 7:50:40 PM] Source has percentage of interlacing in motion areas: 34.53
[1/25/2004 7:50:40 PM] Source has percentage of telecined patterns: 85.10
[1/25/2004 7:50:40 PM] Source has percentage of progressive patterns: 7.99
[1/25/2004 7:50:40 PM] Source has percentage of interlaced patterns: 6.91
[1/25/2004 7:50:40 PM] Source is considered to be hybrid (mostly FILM).
[1/25/2004 7:50:40 PM] Writing the following script to C:\Ripping\Son of the Beach\101\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\_test.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\_test.avi");
===========================================================
[1/25/2004 7:50:40 PM] Looking for optimal hybrid thresholds.
[1/25/2004 7:53:02 PM] Found threshold of: 0.63
[1/25/2004 7:53:02 PM] Found 32104 frames
[1/25/2004 7:53:02 PM] Encoding audio.
[1/25/2004 7:59:42 PM] Audio size: 16,405,256 bytes (15.65 Mb)
[1/25/2004 7:59:42 PM] Overhead: 2,073,600 bytes (1.98 Mb)
[1/25/2004 7:59:42 PM] Video size: 128,321,784 bytes (122.38 Mb)
[1/25/2004 7:59:42 PM] Target bitrate is: 767kbps
[1/25/2004 7:59:42 PM] Running compressibility test.
[1/25/2004 7:59:42 PM] Writing the following script to C:\Ripping\Son of the Beach\101\gk_tmp\101_2_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\undot.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("C:\Ripping\Son of the Beach\101\gk_tmp\101_2.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=35)
c_width = width(cropclip)
c_height = round(height(cropclip) / 0.911392405063291)
input_par = float(c_width)/float(c_height)
fixed_aspect = input_par > 1.4 ? 0.911392405063291 : 0.888888888888889
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 640
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Telecide(order=getOrder(movie),guide=1,post=2).Decimate(mode=3,threshold=0.63)
Undot()
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[1/25/2004 7:59:43 PM] Writing the following script to C:\Ripping\Son of the Beach\101\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\101_2_comptest.avs",0,0);
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(447,"OAEAAAAAAAABAAAAzbILAAAAAEABAAAAAAAAAAAAAAAAAAAA8AAAADIAAAAgEWoAAAAwAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACamZmZmZnJP5qZmZmZmck/AAAAAAAAAAAAAAAAgAIAAOABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4D8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAABkAAAAAAAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAA/////wIAAAABAAAAAAAAAAEAAAACAAAAQzpcUmlwcGluZ1xTb24gb2YgdGhlIEJlYWNoXDEwMVxna190bXBcMTAxXzJfY29kZWMubG9nAGM6XHRlc3QuZGl2eABDOlxSaXBwaW5nXFNvbiBvZiB0aGUgQmVhY2hcMTAxXGdrX3RtcFwxMDFfMl9jb2RlYy5tdgBjOlxuZXdyYy50eHQA");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\101_2_comptest.avi");
===========================================================
[1/25/2004 8:04:26 PM] Duration was: 4 minutes 42 seconds
[1/25/2004 8:04:26 PM] Speed was: 5.68 fps.
[1/25/2004 8:04:26 PM] Compressibility percentage is: 19.65
[1/25/2004 8:04:26 PM] Using softer resizer.
[1/25/2004 8:04:26 PM] Using softer resizer.
[1/25/2004 8:04:26 PM] Chosen resolution is: 448x352 ( AR: 1.27 )
[1/25/2004 8:04:26 PM] Predicted comptest value is: 42.17
[1/25/2004 8:04:26 PM] Running first pass.
[1/25/2004 8:04:26 PM] Writing the following script to C:\Ripping\Son of the Beach\101\gk_tmp\101_2_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\undot.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("C:\Ripping\Son of the Beach\101\gk_tmp\101_2.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=35)
c_width = width(cropclip)
c_height = round(height(cropclip) / 0.911392405063291)
input_par = float(c_width)/float(c_height)
fixed_aspect = input_par > 1.4 ? 0.911392405063291 : 0.888888888888889
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 448
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Telecide(order=getOrder(movie),guide=1,post=2).Decimate(mode=3,threshold=0.63)
Undot()
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[1/25/2004 8:04:26 PM] Writing the following script to C:\Ripping\Son of the Beach\101\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\101_2_movie.avs",0,0);
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(447,"OAEAAAAAAAACAAAAzbILAAAAAEABAAAAAAAAAAAAAAAAAAAA8AAAADIAAAAgEWoAAAAwAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACamZmZmZnJP5qZmZmZmck/AAAAAAAAAAAAAAAAgAIAAOABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4D8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAABkAAAAAAAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAEAAAAAAAAA/////wIAAAABAAAAAAAAAAAAAAACAAAAQzpcUmlwcGluZ1xTb24gb2YgdGhlIEJlYWNoXDEwMVxna190bXBcMTAxXzJfY29kZWMubG9nAGM6XHRlc3QuZGl2eABDOlxSaXBwaW5nXFNvbiBvZiB0aGUgQmVhY2hcMTAxXGdrX3RtcFwxMDFfMl9jb2RlYy5tdgBjOlxuZXdyYy50eHQA");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Ripping\\Son of the Beach\\101\\101_2.avi");
===========================================================
[1/25/2004 8:38:29 PM] Duration was: 34 minutes 3 seconds
[1/25/2004 8:38:29 PM] Speed was: 15.71 fps.
[1/25/2004 8:38:29 PM] Running second pass.
[1/25/2004 8:38:30 PM] Writing the following script to C:\Ripping\Son of the Beach\101\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\101_2_movie.avs",0,0);
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(447,"OAEAAAAAAAADAAAAzbILAAAAAEABAAAAAAAAAAAAAAAAAAAA8AAAADIAAAAgEWoAAAAwAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACamZmZmZnJP5qZmZmZmck/AAAAAAAAAAAAAAAAgAIAAOABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4D8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAABkAAAAAAAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAEAAAAAAAAA/////wIAAAABAAAAAAAAAAAAAAACAAAAQzpcUmlwcGluZ1xTb24gb2YgdGhlIEJlYWNoXDEwMVxna190bXBcMTAxXzJfY29kZWMubG9nAGM6XHRlc3QuZGl2eABDOlxSaXBwaW5nXFNvbiBvZiB0aGUgQmVhY2hcMTAxXGdrX3RtcFwxMDFfMl9jb2RlYy5tdgBjOlxuZXdyYy50eHQA");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("C:\\Ripping\\Son of the Beach\\101\\gk_tmp\\101_2 AC3 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.SaveAVI("C:\\Ripping\\Son of the Beach\\101\\101_2.avi");
===========================================================
[1/25/2004 9:16:19 PM] Duration was: 37 minutes 49 seconds
[1/25/2004 9:16:19 PM] Speed was: 14.15 fps.
[1/25/2004 9:16:19 PM] Job finished.

After that I tried encoding it with regular Gordian Knot using Field De-interlace instead of the IVTC method used in AutoGK. The parts that were jerky in the AutoGK method were fixed, however other parts that looked fine in the AutoGK encode looked jerky. CURSED TV ENCODES! Can anyone help me find a way to get these kinds of encodes to actually look good?

len0x
28th January 2004, 23:57
Well, AutoGK did pretty good job I'd say (at least I know of no ways improving that). I'm puzzled though by "most parts looked jerky". log cleary states that 85% of the movie is FILM which should look good for most parts...

CCoug83
29th January 2004, 00:38
The jerky parts appear mostly in panning scenes, however some portions of the show the just the movement of the characters looked jerky. I know it has something to do with the frames taken out by IVTC because when ripped without IVTC and using Field De-Interlace the panning scenes are fine. I will try and post a clip if I can to show you what I mean ASAP.