GamezR2EZ
1st April 2011, 00:18
I am in the process of comparing the difference in speed with x264 running on a different number of threads.
I have done this before in small scale (10 min clips), I am now doing this for an entire movie.
I will eventually make a graph of threads vs time elapsed.
I decided to also check the various files against each other based on size. I was initially going to hash out each file, assuming the same size.
I was surprised to find that the first and second encode varied about 230k. Every encode produced a slightly different file.
The only change was the number of threads used. Granted this is across a 4gb file, but still, why the variance?
x264 encode parameters:
avs2yuv movie.avs -o - | x264_64 --crf 18 --preset veryslow --tune animation --weightp 1 --bframes 3 --nal-hrd vbr --vbv-maxrate 40000
--vbv-bufsize 30000 --level 4.1 --keyint 24 --b-pyramid strict --slices 4 --aud --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1
--threads=1 --fps 24000/1001 -o movie.264 --stdin y4m -
NOTE: The only difference in the encodes was changing the "threads=" option.
AVS script:
loadplugin("FFMS2.dll")
FFIndex("movie.MKV", indexmask=7, dumpmask=0, overwrite=true)
FFVideoSource("movie.MKV")
AssumeFPS(24000,1001)
PS: Initial results show an almost 92% increase in speed going from 1 thread to 2 threads on an 1 hour and a half long movie.
On 3 threads only 24% increase (over 2 threads). More to come... possibly a pie chart!
I have done this before in small scale (10 min clips), I am now doing this for an entire movie.
I will eventually make a graph of threads vs time elapsed.
I decided to also check the various files against each other based on size. I was initially going to hash out each file, assuming the same size.
I was surprised to find that the first and second encode varied about 230k. Every encode produced a slightly different file.
The only change was the number of threads used. Granted this is across a 4gb file, but still, why the variance?
x264 encode parameters:
avs2yuv movie.avs -o - | x264_64 --crf 18 --preset veryslow --tune animation --weightp 1 --bframes 3 --nal-hrd vbr --vbv-maxrate 40000
--vbv-bufsize 30000 --level 4.1 --keyint 24 --b-pyramid strict --slices 4 --aud --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1
--threads=1 --fps 24000/1001 -o movie.264 --stdin y4m -
NOTE: The only difference in the encodes was changing the "threads=" option.
AVS script:
loadplugin("FFMS2.dll")
FFIndex("movie.MKV", indexmask=7, dumpmask=0, overwrite=true)
FFVideoSource("movie.MKV")
AssumeFPS(24000,1001)
PS: Initial results show an almost 92% increase in speed going from 1 thread to 2 threads on an 1 hour and a half long movie.
On 3 threads only 24% increase (over 2 threads). More to come... possibly a pie chart!