BeerKeg
6th July 2008, 17:36
Hello. I'm new here but I've read around and can't seem to figure out why I'm having this problem.
The source video is from a satellite recording .ts file which the actually recording does not have this flashing but whenever I encode this video to convert it to xvid I'm getting this annoying flashing about 35 minutes or so into the video which is about 45 minutes long after I've edited the commercials out.
I don't see any problems at all in the .ts/mpg file before even after I've taken the commercials out and it seems to be fine until the last 5-10 minutes happens where some of the camera angle/scene type of changes cause this annoying flash to occur.
I re-encoded the file a few times with the same result and here is a sample of the results log below. If anyone has any advice for me on fixing this I'd greatly appreciate it. Thanks!
[6/30/2008 11:49:23 AM] AutoGK 2.45
[6/30/2008 11:49:23 AM] OS: WinXP (5.1.2600).2
[6/30/2008 11:49:23 AM] Job started.
[6/30/2008 11:49:23 AM] Input file: C:\Downloads\test01.mpg
[6/30/2008 11:49:23 AM] Output file: C:\Downloads\test01.avi
[6/30/2008 11:49:23 AM] Output codec: XviD
[6/30/2008 11:49:23 AM] Audio 1: Audio Stream 0 MPEG
[6/30/2008 11:49:23 AM] Subtitles: none
[6/30/2008 11:49:23 AM] Format: AVI
[6/30/2008 11:49:23 AM] Target size: 350Mb
[6/30/2008 11:49:23 AM] Custom resolution settings: fixed width of 640 pixels
[6/30/2008 11:49:23 AM] Audio 1 settings: VBR MP3 with average bitrate: 160Kbps
[6/30/2008 11:49:23 AM] Started encoding.
[6/30/2008 11:49:23 AM] Demuxing and indexing.
[6/30/2008 11:50:33 AM] Processing file: C:\test01.mpg
[6/30/2008 11:50:33 AM] Source resolution: 704x480
[6/30/2008 11:50:33 AM] Found NTSC source.
[6/30/2008 11:50:33 AM] Source aspect ratio: 4:3
[6/30/2008 11:50:33 AM] Manual aspect ratio: Original
[6/30/2008 11:50:33 AM] Color correction enabled.
[6/30/2008 11:50:33 AM] Analyzing source.
[6/30/2008 11:52:49 AM] Source has percentage of interlacing in motion areas: 89.27
[6/30/2008 11:52:49 AM] Source has percentage of telecined patterns: 1.86
[6/30/2008 11:52:49 AM] Source has percentage of progressive patterns: 4.87
[6/30/2008 11:52:49 AM] Source has percentage of interlaced patterns: 93.27
[6/30/2008 11:52:49 AM] Source is considered to be interlaced.
[6/30/2008 11:52:49 AM] Output will contain 80740 frames
[6/30/2008 11:52:49 AM] Encoding audio.
[6/30/2008 11:59:53 AM] Picking up autocrop parameters.
[6/30/2008 11:59:53 AM] Audio1 size: 46,441,440 bytes (44.29 Mb)
[6/30/2008 11:59:53 AM] Overhead: 3,229,568 bytes (3.08 Mb)
[6/30/2008 11:59:53 AM] Video size: 317,330,592 bytes (302.63 Mb)
[6/30/2008 11:59:53 AM] Running compressibility test.
[6/30/2008 11:59:53 AM] Writing the following script to C:\Downloads\agk_tmp\test_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\leakkerneldeint.dll")
movie = mpeg2source("C:\Downloads\agk_tmp\test01.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=200,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
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
LeakKernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=200,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false,threads=0)
SelectRangeEvery(300,15)
===========================================================
[6/30/2008 12:05:31 PM] Duration was: 5 minutes 37 seconds
[6/30/2008 12:05:31 PM] Speed was: 11.98 fps.
[6/30/2008 12:05:31 PM] Compressibility percentage is: 38.10
[6/30/2008 12:05:31 PM] Using softer resizer.
[6/30/2008 12:05:31 PM] Chosen resolution is: 640x432 ( AR: 1.48 )
[6/30/2008 12:05:31 PM] Predicted comptest value is: 39.53%
[6/30/2008 12:05:31 PM] Running first pass.
[6/30/2008 12:05:31 PM] Writing the following script to C:\Downloads\agk_tmp\test01_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\leakkerneldeint.dll")
movie = mpeg2source("C:\Downloads\agk_tmp\test01.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=200,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
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
LeakKernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=200,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false,threads=0)
===========================================================
[6/30/2008 12:50:15 PM] Duration was: 44 minutes 44 seconds
[6/30/2008 12:50:15 PM] Speed was: 30.08 fps.
[6/30/2008 12:50:15 PM] Expected quality of first pass size: 42.05%
[6/30/2008 12:50:15 PM] Running second pass.
[6/30/2008 1:52:47 PM] Duration was: 1 hour, 2 minutes 31 seconds
[6/30/2008 1:52:47 PM] Speed was: 21.52 fps.
[6/30/2008 1:52:47 PM] Job finished. Total time: 2 hours 3 minutes 23 seconds
The source video is from a satellite recording .ts file which the actually recording does not have this flashing but whenever I encode this video to convert it to xvid I'm getting this annoying flashing about 35 minutes or so into the video which is about 45 minutes long after I've edited the commercials out.
I don't see any problems at all in the .ts/mpg file before even after I've taken the commercials out and it seems to be fine until the last 5-10 minutes happens where some of the camera angle/scene type of changes cause this annoying flash to occur.
I re-encoded the file a few times with the same result and here is a sample of the results log below. If anyone has any advice for me on fixing this I'd greatly appreciate it. Thanks!
[6/30/2008 11:49:23 AM] AutoGK 2.45
[6/30/2008 11:49:23 AM] OS: WinXP (5.1.2600).2
[6/30/2008 11:49:23 AM] Job started.
[6/30/2008 11:49:23 AM] Input file: C:\Downloads\test01.mpg
[6/30/2008 11:49:23 AM] Output file: C:\Downloads\test01.avi
[6/30/2008 11:49:23 AM] Output codec: XviD
[6/30/2008 11:49:23 AM] Audio 1: Audio Stream 0 MPEG
[6/30/2008 11:49:23 AM] Subtitles: none
[6/30/2008 11:49:23 AM] Format: AVI
[6/30/2008 11:49:23 AM] Target size: 350Mb
[6/30/2008 11:49:23 AM] Custom resolution settings: fixed width of 640 pixels
[6/30/2008 11:49:23 AM] Audio 1 settings: VBR MP3 with average bitrate: 160Kbps
[6/30/2008 11:49:23 AM] Started encoding.
[6/30/2008 11:49:23 AM] Demuxing and indexing.
[6/30/2008 11:50:33 AM] Processing file: C:\test01.mpg
[6/30/2008 11:50:33 AM] Source resolution: 704x480
[6/30/2008 11:50:33 AM] Found NTSC source.
[6/30/2008 11:50:33 AM] Source aspect ratio: 4:3
[6/30/2008 11:50:33 AM] Manual aspect ratio: Original
[6/30/2008 11:50:33 AM] Color correction enabled.
[6/30/2008 11:50:33 AM] Analyzing source.
[6/30/2008 11:52:49 AM] Source has percentage of interlacing in motion areas: 89.27
[6/30/2008 11:52:49 AM] Source has percentage of telecined patterns: 1.86
[6/30/2008 11:52:49 AM] Source has percentage of progressive patterns: 4.87
[6/30/2008 11:52:49 AM] Source has percentage of interlaced patterns: 93.27
[6/30/2008 11:52:49 AM] Source is considered to be interlaced.
[6/30/2008 11:52:49 AM] Output will contain 80740 frames
[6/30/2008 11:52:49 AM] Encoding audio.
[6/30/2008 11:59:53 AM] Picking up autocrop parameters.
[6/30/2008 11:59:53 AM] Audio1 size: 46,441,440 bytes (44.29 Mb)
[6/30/2008 11:59:53 AM] Overhead: 3,229,568 bytes (3.08 Mb)
[6/30/2008 11:59:53 AM] Video size: 317,330,592 bytes (302.63 Mb)
[6/30/2008 11:59:53 AM] Running compressibility test.
[6/30/2008 11:59:53 AM] Writing the following script to C:\Downloads\agk_tmp\test_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\leakkerneldeint.dll")
movie = mpeg2source("C:\Downloads\agk_tmp\test01.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=200,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
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
LeakKernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=200,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false,threads=0)
SelectRangeEvery(300,15)
===========================================================
[6/30/2008 12:05:31 PM] Duration was: 5 minutes 37 seconds
[6/30/2008 12:05:31 PM] Speed was: 11.98 fps.
[6/30/2008 12:05:31 PM] Compressibility percentage is: 38.10
[6/30/2008 12:05:31 PM] Using softer resizer.
[6/30/2008 12:05:31 PM] Chosen resolution is: 640x432 ( AR: 1.48 )
[6/30/2008 12:05:31 PM] Predicted comptest value is: 39.53%
[6/30/2008 12:05:31 PM] Running first pass.
[6/30/2008 12:05:31 PM] Writing the following script to C:\Downloads\agk_tmp\test01_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\leakkerneldeint.dll")
movie = mpeg2source("C:\Downloads\agk_tmp\test01.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=200,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
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
LeakKernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=200,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false,threads=0)
===========================================================
[6/30/2008 12:50:15 PM] Duration was: 44 minutes 44 seconds
[6/30/2008 12:50:15 PM] Speed was: 30.08 fps.
[6/30/2008 12:50:15 PM] Expected quality of first pass size: 42.05%
[6/30/2008 12:50:15 PM] Running second pass.
[6/30/2008 1:52:47 PM] Duration was: 1 hour, 2 minutes 31 seconds
[6/30/2008 1:52:47 PM] Speed was: 21.52 fps.
[6/30/2008 1:52:47 PM] Job finished. Total time: 2 hours 3 minutes 23 seconds