max-holz
21st October 2005, 12:53
I have tried to encode an old film in black and white with 333A build but there are many artifacts, areas of the frame seems to be yellow colored:
This is the encode log:
Next job job1-1 is a video job. encoder commandline:
"C:\Programmi\x264\x264.exe" --pass 1 --bitrate 2012 --stats "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.stats" --ref 5 --mixed-refs --bframes 3 --subme 7 --weightb --analyse all --8x8dct --me umh --threads 2 --cqmfile "C:\Programmi\x264\eqm_avc_hr.cfg" --progress --no-psnr --output NUL "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.avs"
successfully set up video encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------
Log for job job1-1
avis [info]: 512x384 @ 25.00 fps (139759 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [info]: slice I:1169 Avg QP:19.99 size: 28551
x264 [info]: slice P:70846 Avg QP:21.87 size: 12370
x264 [info]: slice B:67744 Avg QP:24.09 size: 7201
x264 [info]: mb I I16..4: 10.2% 63.0% 26.8%
x264 [info]: mb P I16..4: 0.6% 3.6% 2.1% P16..4: 46.3% 22.3% 14.2% 1.6% 0.5% skip: 9.0%
x264 [info]: mb B I16..4: 1.6% 3.4% 0.8% B16..8: 45.5% 3.9% 8.3% direct: 5.0% skip:31.5%
x264 [info]: 8x8 transform intra:58.6% inter:44.7%
x264 [info]: ref P 63.8% 15.2% 9.8% 6.0% 5.3%
x264 [info]: ref B 73.8% 12.3% 6.6% 3.9% 3.5%
x264 [info]: kb/s:1999.9
Actual bitrate after encoding without container overhead: 2001.13
----------------------------------------------------------------------------------------------------------
job job1-1 has been processed. This job is linked to the next job: job1-2
Next job job1-2 is a video job. encoder commandline:
"C:\Programmi\x264\x264.exe" --pass 2 --bitrate 2012 --stats "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.stats" --ref 5 --mixed-refs --bframes 3 --subme 7 --weightb --analyse all --8x8dct --me umh --threads 2 --cqmfile "C:\Programmi\x264\eqm_avc_hr.cfg" --progress --no-psnr --output "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.mkv" "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.avs"
successfully set up video encoder and callbacks for job job1-2
----------------------------------------------------------------------------------------------------------
Log for job job1-2
avis [info]: 512x384 @ 25.00 fps (139759 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [info]: slice I:1169 Avg QP:19.70 size: 29215
x264 [info]: slice P:70846 Avg QP:21.80 size: 12559
x264 [info]: slice B:67744 Avg QP:24.15 size: 7115
x264 [info]: mb I I16..4: 9.8% 63.1% 27.1%
x264 [info]: mb P I16..4: 0.6% 3.5% 2.3% P16..4: 46.6% 21.8% 14.0% 1.7% 0.5% skip: 9.1%
x264 [info]: mb B I16..4: 1.5% 3.1% 0.9% B16..8: 45.0% 3.9% 8.5% direct: 4.8% skip:32.3%
x264 [info]: 8x8 transform intra:56.8% inter:44.4%
x264 [info]: ref P 63.9% 15.2% 9.7% 5.9% 5.2%
x264 [info]: ref B 73.9% 12.2% 6.5% 3.9% 3.5%
x264 [info]: kb/s:2011.9
Actual bitrate after encoding without container overhead: 2013.11
desired video bitrate of this job: 2012 kbit/s - obtained video bitrate: 2015.38962070421 kbit/s
and this the avs script I have used:
LoadPlugin("C:\Programmi\x264\DGDecode.dll")
LoadPlugin("C:\Programmi\x264\plugins\autocrop.dll")
LoadPlugin("C:\Programmi\x264\plugins\RemoveGrainSSE3.dll")
LoadPlugin("C:\Programmi\x264\plugins\kerneldeint.dll")
movie = mpeg2source("C:\Scambio\Elaborazione Video\Miracolo\Miracolo.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=1,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.06666666666667
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 512
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
KernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=1,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
This is the encode log:
Next job job1-1 is a video job. encoder commandline:
"C:\Programmi\x264\x264.exe" --pass 1 --bitrate 2012 --stats "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.stats" --ref 5 --mixed-refs --bframes 3 --subme 7 --weightb --analyse all --8x8dct --me umh --threads 2 --cqmfile "C:\Programmi\x264\eqm_avc_hr.cfg" --progress --no-psnr --output NUL "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.avs"
successfully set up video encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------
Log for job job1-1
avis [info]: 512x384 @ 25.00 fps (139759 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [info]: slice I:1169 Avg QP:19.99 size: 28551
x264 [info]: slice P:70846 Avg QP:21.87 size: 12370
x264 [info]: slice B:67744 Avg QP:24.09 size: 7201
x264 [info]: mb I I16..4: 10.2% 63.0% 26.8%
x264 [info]: mb P I16..4: 0.6% 3.6% 2.1% P16..4: 46.3% 22.3% 14.2% 1.6% 0.5% skip: 9.0%
x264 [info]: mb B I16..4: 1.6% 3.4% 0.8% B16..8: 45.5% 3.9% 8.3% direct: 5.0% skip:31.5%
x264 [info]: 8x8 transform intra:58.6% inter:44.7%
x264 [info]: ref P 63.8% 15.2% 9.8% 6.0% 5.3%
x264 [info]: ref B 73.8% 12.3% 6.6% 3.9% 3.5%
x264 [info]: kb/s:1999.9
Actual bitrate after encoding without container overhead: 2001.13
----------------------------------------------------------------------------------------------------------
job job1-1 has been processed. This job is linked to the next job: job1-2
Next job job1-2 is a video job. encoder commandline:
"C:\Programmi\x264\x264.exe" --pass 2 --bitrate 2012 --stats "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.stats" --ref 5 --mixed-refs --bframes 3 --subme 7 --weightb --analyse all --8x8dct --me umh --threads 2 --cqmfile "C:\Programmi\x264\eqm_avc_hr.cfg" --progress --no-psnr --output "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.mkv" "C:\Scambio\Elaborazione Video\Miracolo\Miracolo_movie.avs"
successfully set up video encoder and callbacks for job job1-2
----------------------------------------------------------------------------------------------------------
Log for job job1-2
avis [info]: 512x384 @ 25.00 fps (139759 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [info]: slice I:1169 Avg QP:19.70 size: 29215
x264 [info]: slice P:70846 Avg QP:21.80 size: 12559
x264 [info]: slice B:67744 Avg QP:24.15 size: 7115
x264 [info]: mb I I16..4: 9.8% 63.1% 27.1%
x264 [info]: mb P I16..4: 0.6% 3.5% 2.3% P16..4: 46.6% 21.8% 14.0% 1.7% 0.5% skip: 9.1%
x264 [info]: mb B I16..4: 1.5% 3.1% 0.9% B16..8: 45.0% 3.9% 8.5% direct: 4.8% skip:32.3%
x264 [info]: 8x8 transform intra:56.8% inter:44.4%
x264 [info]: ref P 63.9% 15.2% 9.7% 5.9% 5.2%
x264 [info]: ref B 73.9% 12.2% 6.5% 3.9% 3.5%
x264 [info]: kb/s:2011.9
Actual bitrate after encoding without container overhead: 2013.11
desired video bitrate of this job: 2012 kbit/s - obtained video bitrate: 2015.38962070421 kbit/s
and this the avs script I have used:
LoadPlugin("C:\Programmi\x264\DGDecode.dll")
LoadPlugin("C:\Programmi\x264\plugins\autocrop.dll")
LoadPlugin("C:\Programmi\x264\plugins\RemoveGrainSSE3.dll")
LoadPlugin("C:\Programmi\x264\plugins\kerneldeint.dll")
movie = mpeg2source("C:\Scambio\Elaborazione Video\Miracolo\Miracolo.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=1,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.06666666666667
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 512
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
KernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=1,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)