Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
15th February 2008, 12:19 | #241 | Link |
x264 enthusiast
Join Date: Jul 2002
Location: Santa Fe
Posts: 77
|
Folks,
I've just encoded another 15000 frames from Transformers (h.264 1080p source - > x264 720p destination) and got more then excellent results! AVInaptic reported VERY HIGH DRF quality when used Sagekilla's TemporalDegrain filter compared to MEDIUM DRF quality without the filter! Nice work Sagekilla! The only backdraw is the speed.. At 2fps it would take almost 48h for me to encode the entire movie ... but that's the price paid for this quality boost
__________________
"What are you lookin' at ?!?" http://www.hoving.com/umc-05.html |
15th February 2008, 12:54 | #243 | Link |
x264 enthusiast
Join Date: Jul 2002
Location: Santa Fe
Posts: 77
|
Actually no...
I have downloaded the MT version of the avisynth and have put this line into my avs script: SetMTmode(2), but for some reason my encoding is even slower, and I have no idea why fyi - I am running Intel Core 2 Duo E6700 2.6GHz EDIT: Well, according to this post, using MT when you already have 100%CPU usage (which I obviously have as x264 is running), will slow-down encoding even more...
__________________
"What are you lookin' at ?!?" http://www.hoving.com/umc-05.html Last edited by Sasovics; 15th February 2008 at 13:04. |
15th February 2008, 19:27 | #244 | Link |
x264aholic
Join Date: Jul 2007
Location: New York
Posts: 1,752
|
Thanks for the praise, but it should be directed towards Didee; He wrote the core functionality for TD. If you want, you can try TemporalDegrain(HQ=2,ov=2,Degrain=1) for a bit more speed. It doesn't degrain as strongly, but that's the offset of using MVDegrain1 over MVDegrain2.
I also have an extremely simple script that cleaned up 300 fairly well at about 6-8 fps. It's inherently multithreaded because I call MT() for the filter chain, so no need to use SetMTMode(). I'll send it to you if you're interested, but to be honest it's nothing special. Still, it did a fairly good job on degraining 300. Last edited by Sagekilla; 15th February 2008 at 19:30. |
15th February 2008, 20:18 | #245 | Link |
x264 enthusiast
Join Date: Jul 2002
Location: Santa Fe
Posts: 77
|
I am interested in that simplified script, please upload it to mediafire and I'll post back my feedback!
Thanks in advance!
__________________
"What are you lookin' at ?!?" http://www.hoving.com/umc-05.html |
15th February 2008, 21:05 | #246 | Link |
x264aholic
Join Date: Jul 2007
Location: New York
Posts: 1,752
|
Here's the script, I couldn't upload it earlier because I was in school still. There should be a noticeable difference between Temporal Degrain and the Fast Degrain script, as well as a difference in sharpness since TD has Contra Sharpening.
Feel free to adjust any settings if you feel it isn't working for you, or you see room for improvement. Just ask that you send me a PM detailing any useful changes that I can add to this Only setting I recommend you be careful of is blksize, as sometimes you might getting blocking at 0 (I noticed this while testing on 300) If this is the case, raise it to 2. Code:
################################################################### # Fast Degrain by Sagekilla # # # # Nothing special, just removes noise and grain very quickly and # # sharpens the image a bit. Runs at about 8 fps on my machine. # # Tweak to your tastes, but defaults perform perfectly fine. # # # # Required plugins: HQDn3d.dll / LimitedSharpenFaster.avs # # MT.dll / mt_masktools.dll / MVTools.dll # # # ################################################################### # Fast Degrain Syntax # # threads = Number of threads for MT -- Speeds up the program on multicores. # degrain = Uses MVDegrain 1, 2, or 3. Each is progressively stronger and slower. # thSAD = Affects overall degraining strength. Default works fine. # limit = Limits maximum change from MVDegrain. Lower from 255 if you experience artifacts. # pel = Subpixel accuracy for MVAnalyse. Increasing it raises quality of MVs and lowers speed. # ov = function FastDegrain( clip input, int "threads", int "degrain", int "thSAD", int "limit", int "pel", \ int "blksize", bool "sharp", bool "post", int "str", float "ss", int "sft", int "oshot" ) { threads = default( threads, 0 ) # Threads to use for MT degrain = default( degrain, 2 ) # Degraining method thSAD = default( thSAD, 350 ) # MVDegrain thSAD limit = default( limit, 255 ) # MVDegrain limit pel = default( pel, 1 ) # MVAnalyse pel ov = default( ov, 0 ) # MVAnalyse block size sharp = default( sharp, true ) # Toggles LSF post = default( post, true ) # Toggles postprocessing str = default( str, 150 ) # LSF strength ss = default( ss, 1.5 ) # LSF supersampling sft = default( sft, 40 ) # LSF soft oshot = default( oshot, 0 ) # LSF overshoot Return(input) global idx1 = 50 MT(""" idx1 = idx1 + 1 f = last o = f # Search for motion vectors. No prefiltered clips because it slows things down too much. b3vec = (degrain>=3) ? o.MVAnalyse(isb=true, delta=3,idx=idx1,pel=pel,ov=ov) : BlankClip b2vec = (degrain>=2) ? o.MVAnalyse(isb=true, delta=2,idx=idx1,pel=pel,ov=ov) : BlankClip b1vec = (degrain>=1) ? o.MVAnalyse(isb=true, delta=1,idx=idx1,pel=pel,ov=ov) : BlankClip f1vec = (degrain>=1) ? o.MVAnalyse(isb=false,delta=1,idx=idx1,pel=pel,ov=ov) : BlankClip f2vec = (degrain>=2) ? o.MVAnalyse(isb=false,delta=2,idx=idx1,pel=pel,ov=ov) : BlankClip f3vec = (degrain>=3) ? o.MVAnalyse(isb=false,delta=3,idx=idx1,pel=pel,ov=ov) : BlankClip # Degraining the video using MVDegrain. Nothing special here. f = (degrain==3) ? f.MVDegrain3(b1vec,f1vec,b2vec,f2vec,b3vec,f3vec,idx=idx1) : f f = (degrain==2) ? f.MVDegrain2(b1vec,f1vec,b2vec,f2vec,idx=idx1) : f f = (degrain==1) ? f.MVDegrain1(b1vec,f1vec,idx=idx1) : f # Sharpen the video a bit to counter the slight loss of detail and texture. # Follow this up by post processing to remove stray dancing pixels. f = (sharp==true) ? f.LimitedSharpenFaster(strength=str,ss_x=ss,ss_y=ss,soft=sft,overshoot=oshot) : f f = (post==true) ? f.HQDn3D(2,1,6,1) : f return(f) """,threads,2) } Last edited by Sagekilla; 15th February 2008 at 22:31. |
15th February 2008, 22:50 | #252 | Link |
x264aholic
Join Date: Jul 2007
Location: New York
Posts: 1,752
|
Also, I just got my hands on a new Blu-Ray drive so I can finally rip and play with 300 in HD! I'll see if I can do a before and after using 1080p frames to show how well it works, and help me do testing to improve it. If I have enough time, I might even encode it twice to show the bitrate reduction possible.
Edit: How odd, I tried changing the idx on the NR2 MVDegrain from idx=2 to idx=3 and wanna know what my results were? idx=2 (same idx as the last MVdegrain) was more detailed and looked better. It was only MARGINALLY better though. You have to look VERY closely to see if there was any change. Results from no TD (first one) vs with TD Code:
G:\Movies\300_HD>x264_aq --crf 18 --ref 5 --mixed-refs --no-fast-pskip --bframes 16 --bime --weightb --b-pyramid --b-rdo --8x8dct --subme 7 --me umh --trellis 1 --aq-strength 0.3 --threads auto --progress "source.avs" --output "Grainy.264" --pass 1 --stats "Grainy.log" avis [info]: 1920x800 @ 23.98 fps (360 frames) x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 3DNow! x264 [info]: slice I:2 Avg QP:15.80 size:402956 PSNR Mean Y:47.30 U:51.04 V:51.57 Avg:48.26 Global:48.26 x264 [info]: slice P:181 Avg QP:18.05 size:224610 PSNR Mean Y:44.65 U:49.72 V:50.04 Avg:45.80 Global:45.78 x264 [info]: slice B:177 Avg QP:20.15 size:152771 PSNR Mean Y:42.90 U:49.27 V:49.64 Avg:44.20 Global:44.18 x264 [info]: mb I I16..4: 29.0% 45.7% 25.3% x264 [info]: mb P I16..4: 29.5% 16.7% 12.0% P16..4: 18.4% 17.3% 5.1% 0.0% 0 .0% skip: 0.9% x264 [info]: mb B I16..4: 13.4% 7.8% 7.2% B16..8: 38.1% 6.1% 6.6% direct: 14.4% skip: 6.4% x264 [info]: 8x8 transform intra:28.5% inter:17.4% x264 [info]: ref P 75.9% 12.5% 6.4% 3.2% 2.1% x264 [info]: ref B 74.2% 19.5% 4.4% 2.0% x264 [info]: SSIM Mean Y:0.9813726 x264 [info]: PSNR Mean Y:43.801 U:49.506 V:49.853 Avg:45.025 Global:44.928 kb/s: 36497.25 encoded 360 frames, 0.68 fps, 36497.60 kb/s G:\Movies\300_HD>pause Press any key to continue . . . G:\Movies\300_HD>pause Press any key to continue . . . G:\Movies\300_HD>x264_aq --crf 18 --ref 5 --mixed-refs --no-fast-pskip --bframes 16 --bime --weightb --b-pyramid --b-rdo --8x8dct --subme 7 --me umh --trellis 1 --aq-strength 0.3 --threads auto --progress "source.avs" --output "NotGrainy.26 4" --pass 1 --stats "NotGrainy.log" avis [info]: 1920x800 @ 23.98 fps (360 frames) x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 3DNow! x264 [info]: slice I:2 Avg QP:15.45 size:278436 PSNR Mean Y:47.03 U:51.37 V:51.57 Avg:48.07 Global:48.07 x264 [info]: slice P:136 Avg QP:17.75 size:108867 PSNR Mean Y:44.63 U:50.04 V:50.26 Avg:45.81 Global:45.79 x264 [info]: slice B:222 Avg QP:19.84 size: 32984 PSNR Mean Y:43.42 U:50.00 V:50.23 Avg:44.73 Global:44.71 x264 [info]: mb I I16..4: 21.3% 54.7% 24.0% x264 [info]: mb P I16..4: 6.4% 12.5% 3.1% P16..4: 34.6% 30.1% 11.2% 0.0% 0 .0% skip: 2.1% x264 [info]: mb B I16..4: 0.3% 0.7% 0.2% B16..8: 38.1% 3.7% 8.2% direct: 6.2% skip:42.6% x264 [info]: 8x8 transform intra:57.0% inter:46.0% x264 [info]: ref P 70.6% 21.3% 3.3% 2.4% 2.3% x264 [info]: ref B 85.3% 13.8% 0.6% 0.3% x264 [info]: SSIM Mean Y:0.9810072 x264 [info]: PSNR Mean Y:43.895 U:50.026 V:50.245 Avg:45.159 Global:45.100 kb/s: 12086.75 encoded 360 frames, 0.26 fps, 12087.09 kb/s G:\Movies\300_HD>pause Press any key to continue . . . Last edited by Sagekilla; 16th February 2008 at 01:53. |
17th February 2008, 03:48 | #256 | Link | ||
Registered User
Join Date: Jun 2002
Location: Greece
Posts: 242
|
Quote:
Quote:
We need a little more teaching from Didée about idx
__________________
Greece PAL User... Last edited by Nikos; 17th February 2008 at 03:53. |
||
17th February 2008, 04:30 | #257 | Link | |
*Space Reserved*
Join Date: May 2006
Posts: 953
|
Quote:
They don't use any of these premade scripts, I can tell you that for sure. |
|
17th February 2008, 04:33 | #258 | Link | |
x264 enthusiast
Join Date: Jul 2002
Location: Santa Fe
Posts: 77
|
Quote:
.. if they don't use these scripts, what are they using ? How can you tell ?
__________________
"What are you lookin' at ?!?" http://www.hoving.com/umc-05.html |
|
17th February 2008, 04:42 | #259 | Link | |
*Space Reserved*
Join Date: May 2006
Posts: 953
|
Real Life source, as in, non-toon sources (like this movie 300 for instance).
Quote:
(btw, lets leave out encoders or groups for that matter, as it's against the rules per se.) Lets just say that what they use is actually simpler than you think; btw, it's not so hard to write scripts, just look over the syntax document in avisynth's directory, or take examples from scripts like mc_spuds or temporaldegrain for that matter. |
|
17th February 2008, 05:14 | #260 | Link | |
x264aholic
Join Date: Jul 2007
Location: New York
Posts: 1,752
|
Quote:
|
|
|
|