TheBashar
5th September 2005, 16:04
If you all could help me, I'd really appreciate it. I would like to collect a lot of specifically created x264 logfiles.
I am working on a formula (and little tool) to help determine a target bitrate for an encode so that it has comparable quality to another known encode. For instance, if the Matrix looked good to me at 1900kB what bitrate should I look around for a comparable quality encoding of say... Driving Miss Daisy?
Obviously this depends on several factors: dimensions of both films, complexity of both films, etc. To analyze these factors, I'm developing a simple complexity measurement tool which analyses an x264 logfile. In order to correctly account for a movie's complexity, it would help if I could normalize the naturaly postively skewed distribution of movie complexities. To have any chance of doing this, I need many more samples to charechtarize the distribution.
How you can help:
Please, if you can help me collect specially created log files, it would really help. To do this, please run a specifically composed x264 encode using the model avisynth script below and then send me the resulting logfile and test.txt file that will be generated.
Please use this avisynth script tuned as appropriate (see comments). Please do IVTC / Deinterlace as needed. Please do not encode interlaced or telecined material that had not been fixed. Please do not resize, sharpen, smooth, or otherwise cosmetically filter the movie.
# Save this file as test.avs
# Uncomment below if avisynth plugins are not autoloaded
# If you do not have the autocrop.dll you can download it from:
# http://www.avisynth.org/warpenterprises/files/autocrop_25_dll_20050103.zip
#LoadPlugin("DGDecode.dll")
#LoadPlugin("autocrop.dll")
c = MPEG2source("test.d2v")
# Please set begin frame and end frame to exclude studio logos at beginning and credits at end
#
begin = 0
end = 0
# Please please perform any needed field-matching, decimating, IVTC, deinterlacing, DeDup, etc here:
# Please DO NOT resize, remove grain, smooth, sharpen, or similar
#
# TFM
# TDecimate
# TDeint
# DeDup
c = Trim(c, begin, end)
len = c.Framecount
cuts = 30
ratio = 9
c = SelectRangeEvery(c, Int(len / cuts), Int(len / (cuts * ratio)))
c = AutoCrop(c, mode=0,wMultOf=16,hMultOf=16,samples=10)
c = WriteFileStart(c, "test.txt", String(c.width), """ "x" """ , String(c.height))
return c
Please then run an encode with the latest x264 CLI using the following command line: (you will need Sharktooth's AVC CQM (http://www.webalice.it/f.corriga/x264/eqm_avc_hr.cfg))
x264.exe test.avs --stats test.log --cqmfile eqm_avc_hr.cfg --output test.mp4 --qp 17 --keyint 300 --ref 5 --bframes 3 --b-pyramid --subme 6 --weightb --analyse all --8x8dct --me umh --progress --no-psnr --ratetol inf --pass 1
These two together will generate a test.log and test.txt file. Please zip (7z preferred) them up and email them to me at: videosurvey [dot] thebashar [at] xoxy [dot] net
If when you email me you tell me what movie/show the logfile is from, I will start a list to prevent duplication of effort. I'd really appreciate some help collecting these as I mainly have TV show collections which are not indicative of most DVDs. Feel free to use any source material: tv shows, movies, porn, captured video, porn, or anything else.
Thanks so much for your help!
PS: Just to make life easier, I'm going to attach a 7z archive of the information in this post, the avisynth script, the x264 commandline, and the cqm.
I am working on a formula (and little tool) to help determine a target bitrate for an encode so that it has comparable quality to another known encode. For instance, if the Matrix looked good to me at 1900kB what bitrate should I look around for a comparable quality encoding of say... Driving Miss Daisy?
Obviously this depends on several factors: dimensions of both films, complexity of both films, etc. To analyze these factors, I'm developing a simple complexity measurement tool which analyses an x264 logfile. In order to correctly account for a movie's complexity, it would help if I could normalize the naturaly postively skewed distribution of movie complexities. To have any chance of doing this, I need many more samples to charechtarize the distribution.
How you can help:
Please, if you can help me collect specially created log files, it would really help. To do this, please run a specifically composed x264 encode using the model avisynth script below and then send me the resulting logfile and test.txt file that will be generated.
Please use this avisynth script tuned as appropriate (see comments). Please do IVTC / Deinterlace as needed. Please do not encode interlaced or telecined material that had not been fixed. Please do not resize, sharpen, smooth, or otherwise cosmetically filter the movie.
# Save this file as test.avs
# Uncomment below if avisynth plugins are not autoloaded
# If you do not have the autocrop.dll you can download it from:
# http://www.avisynth.org/warpenterprises/files/autocrop_25_dll_20050103.zip
#LoadPlugin("DGDecode.dll")
#LoadPlugin("autocrop.dll")
c = MPEG2source("test.d2v")
# Please set begin frame and end frame to exclude studio logos at beginning and credits at end
#
begin = 0
end = 0
# Please please perform any needed field-matching, decimating, IVTC, deinterlacing, DeDup, etc here:
# Please DO NOT resize, remove grain, smooth, sharpen, or similar
#
# TFM
# TDecimate
# TDeint
# DeDup
c = Trim(c, begin, end)
len = c.Framecount
cuts = 30
ratio = 9
c = SelectRangeEvery(c, Int(len / cuts), Int(len / (cuts * ratio)))
c = AutoCrop(c, mode=0,wMultOf=16,hMultOf=16,samples=10)
c = WriteFileStart(c, "test.txt", String(c.width), """ "x" """ , String(c.height))
return c
Please then run an encode with the latest x264 CLI using the following command line: (you will need Sharktooth's AVC CQM (http://www.webalice.it/f.corriga/x264/eqm_avc_hr.cfg))
x264.exe test.avs --stats test.log --cqmfile eqm_avc_hr.cfg --output test.mp4 --qp 17 --keyint 300 --ref 5 --bframes 3 --b-pyramid --subme 6 --weightb --analyse all --8x8dct --me umh --progress --no-psnr --ratetol inf --pass 1
These two together will generate a test.log and test.txt file. Please zip (7z preferred) them up and email them to me at: videosurvey [dot] thebashar [at] xoxy [dot] net
If when you email me you tell me what movie/show the logfile is from, I will start a list to prevent duplication of effort. I'd really appreciate some help collecting these as I mainly have TV show collections which are not indicative of most DVDs. Feel free to use any source material: tv shows, movies, porn, captured video, porn, or anything else.
Thanks so much for your help!
PS: Just to make life easier, I'm going to attach a 7z archive of the information in this post, the avisynth script, the x264 commandline, and the cqm.