kypec
22nd January 2009, 12:08
I observed something strange while encoding with xvid 1.2.1
I'm using xvid-1.2.1-vaq-x86.7z (http://www.xvidvideo.ru/component/option,com_docman/task,doc_download/gid,808/) package downloaded from russian server.
I have unpacked and installed the files contained within:
xvid.ax 73728 13. 12. 2008 00:12:48
xvidcore.dll 617984 13. 12. 2008 00:10:10
xvidvfw.dll 178688 13. 12. 2008 00:12:16
xvid_encraw.exe 142336 13. 12. 2008 00:10:12
xvid.inf 2864 27. 11. 2008 17:42:00
My source is VOB file (2nd episode of FRIENDS DVD PAL R2) with the following Avisynth script# Load all the plugins that will be used in the script
LoadCPlugin("T:\Plugins\yadif.dll")
LoadPlugin("T:\DGMPGDec\DGDecode.dll")
LoadPlugin("T:\Plugins\ColorMatrix.dll")
# Open source video clip
MPEG2Source("E02.d2v",info=3)
# Transform to colour space which is expected by Xvid encoder
ColorMatrix("Rec.709->Rec.601",hints=true)
# Deinterlace video
Yadif()
# Resize video
Spline36Resize(512,384)
#~ # Helps to locate blank alias completely black frames
#~ Histogram(mode="levels")
# Trim only the desired frames
Trim(50,32874)
When I run the encoding process via included xvid_encraw.exe with the following 2-pass commandsT:\xvid\xvid_encraw.exe -i "E02.avs" -avi "E02_preliminary.avi" -pass1 "E02_xvid.stats" -max_key_interval 250 -vhqmode 4 -bvhq -lumimasking -progress 25 -stats >"E02_pass1.log"
T:\xvid\xvid_encraw.exe -i "E02.avs" -avi "E02.avi" -pass2 "E02_xvid.stats" -bitrate 860 -par 1:1 -max_key_interval 250 -vhqmode 4 -bvhq -lumimasking -progress 25 -stats >"E02_pass2.log"
the results look like this:
E02_pass1.logTot: enctime(ms) =247716.00, length(bytes) = 198546081
Avg: enctime(ms) = 7.55, fps = 132.52, length(bytes) = 6048, psnr y = 43.07, psnr u = 45.13, psnr v = 46.24
I frames: 378 frames, size = 25124/9496988, quants = 2 / 2.00 / 2
P frames: 11982 frames, size = 11899/142575894, quants = 2 / 2.00 / 2
B frames: 20465 frames, size = 2270/46473199, quants = 4 / 4.00 / 4
E02_pass2.logTot: enctime(ms) =695318.00, length(bytes) = 141089913
Avg: enctime(ms) = 21.18, fps = 47.21, length(bytes) = 4297, psnr y = 42.54, psnr u = 44.79, psnr v = 45.93
I frames: 378 frames, size = 21221/8021764, quants = 2 / 2.47 / 3
P frames: 11982 frames, size = 7760/92981743, quants = 2 / 2.69 / 3
B frames: 20465 frames, size = 1958/40086406, quants = 4 / 4.43 / 5
However, when I replace xvid_encraw.exe with one provided by squid_80 (http://members.optusnet.com.au/squid_80/xvid_encraw.zip) then there are some tiny differences at B-frames in the 1st pass and at I- & P-frames in the 2nd pass:
E02_pass1.logTot: enctime(ms) =865935.00, length(bytes) = 198546056
Avg: enctime(ms) = 26.38, fps = 37.91, length(bytes) = 6048, psnr y = 43.07, psnr u = 45.13, psnr v = 46.24
I frames: 378 frames, size = 25124/ 9496988, quants = 2 / 2.00 / 2
P frames: 11982 frames, size = 11899/ 142575894, quants = 2 / 2.00 / 2
B frames: 20465 frames, size = 2270/ 46473174, quants = 4 / 4.00 / 4
E02_pass2.logTot: enctime(ms) =1452702.00, length(bytes) = 141100709
Avg: enctime(ms) = 44.25, fps = 22.60, length(bytes) = 4298, psnr y = 42.54, psnr u = 44.79, psnr v = 45.93
I frames: 378 frames, size = 21185/ 8007997, quants = 2 / 2.47 / 3
P frames: 11982 frames, size = 7762/ 93008277, quants = 2 / 2.69 / 3
B frames: 20465 frames, size = 1958/ 40084435, quants = 4 / 4.43 / 5
How is such discrepancy possible when both processes used the same xvid core and scripts?:confused:
I'm using xvid-1.2.1-vaq-x86.7z (http://www.xvidvideo.ru/component/option,com_docman/task,doc_download/gid,808/) package downloaded from russian server.
I have unpacked and installed the files contained within:
xvid.ax 73728 13. 12. 2008 00:12:48
xvidcore.dll 617984 13. 12. 2008 00:10:10
xvidvfw.dll 178688 13. 12. 2008 00:12:16
xvid_encraw.exe 142336 13. 12. 2008 00:10:12
xvid.inf 2864 27. 11. 2008 17:42:00
My source is VOB file (2nd episode of FRIENDS DVD PAL R2) with the following Avisynth script# Load all the plugins that will be used in the script
LoadCPlugin("T:\Plugins\yadif.dll")
LoadPlugin("T:\DGMPGDec\DGDecode.dll")
LoadPlugin("T:\Plugins\ColorMatrix.dll")
# Open source video clip
MPEG2Source("E02.d2v",info=3)
# Transform to colour space which is expected by Xvid encoder
ColorMatrix("Rec.709->Rec.601",hints=true)
# Deinterlace video
Yadif()
# Resize video
Spline36Resize(512,384)
#~ # Helps to locate blank alias completely black frames
#~ Histogram(mode="levels")
# Trim only the desired frames
Trim(50,32874)
When I run the encoding process via included xvid_encraw.exe with the following 2-pass commandsT:\xvid\xvid_encraw.exe -i "E02.avs" -avi "E02_preliminary.avi" -pass1 "E02_xvid.stats" -max_key_interval 250 -vhqmode 4 -bvhq -lumimasking -progress 25 -stats >"E02_pass1.log"
T:\xvid\xvid_encraw.exe -i "E02.avs" -avi "E02.avi" -pass2 "E02_xvid.stats" -bitrate 860 -par 1:1 -max_key_interval 250 -vhqmode 4 -bvhq -lumimasking -progress 25 -stats >"E02_pass2.log"
the results look like this:
E02_pass1.logTot: enctime(ms) =247716.00, length(bytes) = 198546081
Avg: enctime(ms) = 7.55, fps = 132.52, length(bytes) = 6048, psnr y = 43.07, psnr u = 45.13, psnr v = 46.24
I frames: 378 frames, size = 25124/9496988, quants = 2 / 2.00 / 2
P frames: 11982 frames, size = 11899/142575894, quants = 2 / 2.00 / 2
B frames: 20465 frames, size = 2270/46473199, quants = 4 / 4.00 / 4
E02_pass2.logTot: enctime(ms) =695318.00, length(bytes) = 141089913
Avg: enctime(ms) = 21.18, fps = 47.21, length(bytes) = 4297, psnr y = 42.54, psnr u = 44.79, psnr v = 45.93
I frames: 378 frames, size = 21221/8021764, quants = 2 / 2.47 / 3
P frames: 11982 frames, size = 7760/92981743, quants = 2 / 2.69 / 3
B frames: 20465 frames, size = 1958/40086406, quants = 4 / 4.43 / 5
However, when I replace xvid_encraw.exe with one provided by squid_80 (http://members.optusnet.com.au/squid_80/xvid_encraw.zip) then there are some tiny differences at B-frames in the 1st pass and at I- & P-frames in the 2nd pass:
E02_pass1.logTot: enctime(ms) =865935.00, length(bytes) = 198546056
Avg: enctime(ms) = 26.38, fps = 37.91, length(bytes) = 6048, psnr y = 43.07, psnr u = 45.13, psnr v = 46.24
I frames: 378 frames, size = 25124/ 9496988, quants = 2 / 2.00 / 2
P frames: 11982 frames, size = 11899/ 142575894, quants = 2 / 2.00 / 2
B frames: 20465 frames, size = 2270/ 46473174, quants = 4 / 4.00 / 4
E02_pass2.logTot: enctime(ms) =1452702.00, length(bytes) = 141100709
Avg: enctime(ms) = 44.25, fps = 22.60, length(bytes) = 4298, psnr y = 42.54, psnr u = 44.79, psnr v = 45.93
I frames: 378 frames, size = 21185/ 8007997, quants = 2 / 2.47 / 3
P frames: 11982 frames, size = 7762/ 93008277, quants = 2 / 2.69 / 3
B frames: 20465 frames, size = 1958/ 40084435, quants = 4 / 4.43 / 5
How is such discrepancy possible when both processes used the same xvid core and scripts?:confused: