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. |
![]() |
#21 | Link |
Huh?
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
|
I see, thanks
![]() ![]()
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it. |
![]() |
![]() |
![]() |
#22 | Link |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Does anybody know how the size and strength and of the grain correlate to compression quantization? In other words, what size and strength of grain needs to be used in order for it to be preserved by H.264, VC-1 or MPEG-2 quantization?
|
![]() |
![]() |
![]() |
#23 | Link |
Testeur de codecs
Join Date: May 2003
Location: France
Posts: 2,530
|
Well not simple because for example grain retention is not the same between AVC implementation. Anyway for all codec big grain size with low temporal complexity is alway more simple to compress. Small grain size with high temporal complexity is really hard to compress for all codec and particulary for AVC. In this case the better way to compress is degrain/regrain pre-process.
__________________
Le Sagittaire ... ;-) 1- Ateme AVC or x264 2- VP7 or RV10 only for anime 3- XviD, DivX or WMV9 |
![]() |
![]() |
![]() |
#24 | Link |
Registered User
Join Date: Jan 2002
Location: France
Posts: 2,856
|
Zambelli : i advise you to make a gradient of noise (stacking grey videos with noises of different variances), and encode that in intra at different quantizer. You'll easily see the quantizer at which a noise of variance X disappear (or the variance needed for a noise to remain at quantizer Y). Do remember that in AVC, quantizers are exponential, so you don't need to test standard deviation 1,2,3,4,5,6....,n but rather 1.12^n (1.12^6 = 2 is the key factor behind AVC's quantization).
__________________
|
![]() |
![]() |
![]() |
#25 | Link |
Registered User
Join Date: Nov 2006
Posts: 83
|
Hi foxyshadis,
thanks for this nice little PlugIn. Would it be possible to add the option to add a grain pattern that is constant for a specified amount of frames and then changes to the next pattern for the specified length and so on? I basically want to use it for something like GrainOptimizer does. Regards and thanks in advance McCauley |
![]() |
![]() |
![]() |
#26 | Link |
Fighting spam with a fish
Join Date: Sep 2005
Posts: 2,716
|
Just use trim.
Ex. source=avisource("example.avi) a=source.trim(0.500).addgrainc(blah) b=source.trim(501,1000).addgrainc(blah) c=..... a+b+c+....
__________________
FAQs:Bond's AVC/H.264 FAQ Site:Adubvideo Zsmooth - Cross-platform smoothing for Vapoursynth |
![]() |
![]() |
![]() |
#27 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,398
|
More likely the aim is to change the noise pattern after only a few frames, ie. have like 2, 3, 4 or 5 frames with the same noise pattern, then switch to the next pattern, repeat, a.s.o.
Code:
x = 4 # set the no. of frames with same noise pattern clp = last grey = BlankClip(clp,color_yuv=$808080) noise = grey.AddGrainC(...) noise = noise.changefps(framerate(clp)*x).trim(0,framecount(clp)) clp.mt_makediff(noise,U=3,V=3) # if it's only luma noise, use "U=2,V=2"
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) Last edited by Didée; 1st June 2008 at 01:03. |
![]() |
![]() |
![]() |
#28 | Link |
Registered User
Join Date: Nov 2006
Posts: 83
|
Thanks Didée, that's what i need for my purposes! As always you had a few simple lines that did the trick!
But since this should'nt be closely as fast as the same thing in AddgrainC, i would be happy too see it implemented directly in AddgrainC. Regards McCauley |
![]() |
![]() |
![]() |
#29 | Link |
Angel of Night
![]() Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,562
|
Test it, that shouldn't be noticeably slower unless you use timecodec. Since my computer was stolen last weekend, I won't be updating anything for a while, but the source is in the package.
|
![]() |
![]() |
![]() |
#30 | Link |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
o_O;;;
(Thank god my machine + radiator is so bulky they'd probably leave it behind; or should I fill it with concrete just to be sure?)
__________________
now playing: [artist] - [track] ([album]) |
![]() |
![]() |
![]() |
#31 | Link | |
Derek Prestegard IRL
![]() Join Date: Nov 2003
Location: Los Angeles
Posts: 5,998
|
I'm wondering...
Why would one add chroma grain? I know it can be beneficial in certain cases or for artistic reasons to add luma grain, but chroma? Just curious ![]() Quote:
![]() ~MiSfit
__________________
These are all my personal statements, not those of my employer :) |
|
![]() |
![]() |
![]() |
#32 | Link |
Didée 4 President
Join Date: Jun 2008
Posts: 239
|
just FIY, this plugin creates mad memory leaks above 2 threads in MT via ffdshow.
problem doesn't exist in v1.0 and v1.1...they strictly obey SetMemoryMax() too bad you said noisegen was improved in v1.3, but 1.5 Gb of memory leak on 4 threads is a tad too much ![]() GrainFactory() works fine w/ any version Last edited by pitch.fr; 1st October 2008 at 14:56. |
![]() |
![]() |
![]() |
#34 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
It might not remain there but sure: http://users.telenet.be/darnley/avis...grainc_1.4.zip
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
![]() |
![]() |
![]() |
#35 | Link | |
Registered User
Join Date: Jun 2004
Posts: 144
|
Quote:
I put it up on megaupload too for anyone else in case your link dies http://www.megaupload.com/?d=90EXJZGZ |
|
![]() |
![]() |
![]() |
#36 | Link |
Angel of Night
![]() Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,562
|
I finally reinstalled a build environment and built a fix for a memory bug that mainly rears its head with MT. Thanks to leeperry for bugging me to fix it a while back.
|
![]() |
![]() |
![]() |
#37 | Link | |
Kid for Today
Join Date: Aug 2004
Posts: 3,494
|
yay, too awesome! I've been stuck w/ 1.1 since forever...what are the improvements exactly in the newer versions please? Could they make a noticeable difference in GrainFactory3()
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#38 | Link |
Angel of Night
![]() Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,562
|
I believe that was from combining the two chroma noise planes into one, faster & less memory w/ no real difference. Wish I'd recognized the other major memory hog at the time.
I was also informed that this version won't run on Win2k, thanks to using VC 2010. Intentionally, since 2000 is out of support; I bet IanB's going to be hatin'. Damn it, Microsoft. Apparently there might be a way to patch it out, in the meantime cretindesalpes sent me a working fix built with 2005. |
![]() |
![]() |
![]() |
#40 | Link |
Angel of Night
![]() Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,562
|
The grain's the grain, I've never messed with how it gets created or combined with the frame. The only thing that I've ever changed is how it randomizes the per-frame, in order to support constant grain and defined grain even with random access, and enabling chroma (which is identical to luma in YV12) and RGB/YUY2 (which won't affect YV12 at all).
If you do prefer it, that might be because in 1.1, if a frame gets flushed out of cache it'll have a whole new randomized grainy image. I don't know how GrainF3 munges the image, but if it uses that fact, it will look different. It might be worth enlarging the possible grain size though. The only thing pre-1.3 calculation would be good for is having different strength in the U and V planes... I can't think of any good reason why you would. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|