Hi jorel,
The sample was encoded with a CQ of 66, which is about right for the movie on two CDs at 704x480. That's a full screen version, so on one CD, I would have gone 528x480 and not 704x480. But on two CDs, it will look just like the DVD :D -kwag |
Yesterday, I encoded "The Foreigner" with the script that was posted without scene change detection. The CQ that ToK calculated was CQ=63.65. I just fed the new script to ToK, and the new CQ is 63.974 :!:
Not that much, but obviously it's a small increase in CQ :) -kwag |
Quote:
:D again: Resolution (fps):480x480 (29,970 fps) Total Frames: 5001 Total Time : 00:02:47 Encoding... CQ : 71,867 Final Encoded Size: 27.415.408 Total Time (all operations): 00:07:42 results: clear like :sun: colors like :umbrella: quality :yippie: i can imagine the result with two CDs in 528x480, ...it will look just like the DVD 8O you will update the script or i wait a little more? your brain don't stop! :lol: |
Hi Kwag,
What is the function of "Limiter()"? |
Current script was just updated :)
Here's a sample with the new script with scene change detection. TRY to find macroblocks in the sample :!: Sample is 18 seconds @704x480, CQ=63.97 (target for one CD-R) MIN=300, MAX=2,500. www.kvcd.net/Foreigner-scd.mpg I know I won't be doing any more 352x480 resolution encodes :mrgreen: With this stuff, there's no need to go below 528x480, and we haven't even finished tweaking this yet :!: Can't wait to get some 90 minute CD-Rs in my hands 8) -kwag |
Quote:
-kwag |
Hi all !
Kwag - as always u are surprising us with new achievements :!: :!: :!: Clip looks great and there is nothing new in what I sead :lol: :lol: :lol: I have few questions or maybe requests to U or sh0dan or any others too : 1 . What about VobSub or TextSub for avs2.52 :?: :?: :?: any chanse to get it soon ??? 2. I have to encode my doughters wedding and I need to make a standard VCD . I tryed both of scripts in avs 2.08 and avs 2.5* and I'm disappointed with result : Encoder is just going creasy when he gets to dancing scenes : I see ugly noticable blockiness . I tryed to add some noise with blockbuster but no success . I can do that in higher resolution but there is compatibility prob with another players , So I'm stucked . Any suggestions ???? bman |
wow,Great!
the samples looks great, Kwag :D TBO |
Quote:
|
I have a problem here:
Code:
## DLL Section ## Evaluate Division by zero. I dont know whats wrong,please help. TBO |
:idea:
Jellygoose, i read some about the new filter from sh0dan called MipSmooth. i don't test it but seems good. do you know this filter? from sh0dan: MipSmoother is an attempt at reinventing SmoothHiQ and Convolution3D. For now this is a proof of concept, and the first versions are for evalutation of quality and speed. MipSmooth was made to enable smoothing of larger pixel areas than 3x3(x3), to remove blocks and smoothing out low-frequency noise. It is my hope that when this filter has been tweaked it will be better than C3D at smoothing out flat surfaces and gradients. This should be good for cartoons/anime, but it actually also helps film footage quite nicely. :!: |
Good stuff
Enjoying testing this, but I was testing encoding a 4:3 fullscreen Episode of Red-Dwarf. Im still getting a "Slight" burst of lightness on some scenes, but looks nice to say the orignal DVD looks, well below average.
but still testing :wink: |
Quote:
Code:
LoadPlugin("C:\01 - KVCD TESTS\filters\BlockBuster.dll") -kwag |
Hi kwag...
Hmmm just tested the newest script with scene change detection... The flashing is completely gone for me know, but I noticed that the whole movie looks a lot blurrier now... :roll: What do I have to change to remove the static MergeLuma of 0.1 from the script, as I think that this is the case... Can I just comment it out? or do I also have to alter these lines here: Code:
ScriptClip("(cf - lf) < scd_trigger && cf < MaxTreshold ? MergeLuma(blur(cf)) : MergeLuma(blur( 0.1 ))") I'd like to use maybe a static MergeLuma of 0.05 or 0.025... |
Re: Good stuff
Quote:
Try that same scene without the filters. There shouldn't be a problem. I might be that those conditions are present on the original DVD :!: Also, did you encode at 704x480(576) or another resolution :?: If it was lower than that, we're probably going to have to play with the scd_trigger value :idea: The value I selected look optimal for 704x480(576), but I have to try at other resolutions. If you want to see what values are being returned on each frame, look at the script I posted here earlier, that has the "Subtitle" lines added for debugging, and then you can see the value changed dynamically as you play your .avs in WMP or even in Vdub :) -kwag |
Quote:
Code:
ScriptClip("(cf - lf) < scd_trigger && cf < MaxTreshold ? MergeLuma(blur(cf)) : MergeLuma(blur( 0 ))") Code:
MergeLuma(blur( 0.1)) That will kill the MIN mergeluma of 0.1 completely on scene changes and throughout the picture, and only apply the dynamic value returned, which can go way below 0.1 throughout the picture :) -kwag |
Hey Kwag is there a way to lower the Briteness in a movie with avs 2.5
i know in 2.0 we had the tweak filter for that, or you could change the luminance when doing the d2v but this doen't work with 2.5 and i dont know of any filter for this problem. This movie is too brite and file size is too big, i want to up CQ a bit more. :!: |
Quote:
Code:
Sampler(100, length=24) Code:
Sampler() -ren |
Hey kwag,
Your scene detection algorithm is working beautifully! Great job :buzzmile: ren |
Quote:
I finished encoding "The Foreigner" (again!) and just watched some key areas that had "flashes" before, and they're all gone :!: Scene change transitions are completely smooth now 8) Did you run the script with the debugging subs turned on, to see the scene changes in action :?: -kwag |
Quote:
ren |
Hi.
I'm encoding my DVD of Holy Grail now, and so far so good (with the sample), couldn't believe the quality with the sample I got, no transition problems or variance in brightness problems like I had with red dwarf. This is encoding at 704x576 (pal) no probs. I'll test the full movie out when it's finished. Only thing I added to the script for Red-Dwarf was the FieldDeinterlace btw as far as I remember, Red |
Script updated :!:
Some minor tweaks, because of funny behaviour on variables assigned :roll: (Order of precedence on calling YDifferenceToNext() and YDifferenceFromPrevious() :?: :roll: ) Also, on high speed horizontal movements, sometimes it would detect scene change when in reality is was very high speed action. Now it doesn't "false" on that. -kwag |
Hi Kwag,
Why did you change the "Scene change trigger value" from 1.0 to 10 :?: :oops: |
Quote:
And the script was just updated again :!: -kwag |
Hi Kwag,
Did you purposely place this: FrameEvaluate("lf = YDifferenceToNext()") at the very end because when I first load up the script, Virtual Dub says it doesn't know the what is the vaule for "val", but after I move forward a few frames, it knows the valule and no more warning. |
Quote:
The purpose of the "FrameEvaluate("lf = YDifferenceToNext()" at the end, is to assign the value AFTER all calculations, and retain the variable "lf" for the next iteration (next frame) so I can compare last frame to current frame difference :) -kwag |
Quote:
However it works with out it. |
Quote:
Tweak Tweak(clip, float "hue", float "sat", float "bright", float "cont") This function provides the means to adjust the hue, saturation, brightness, and contrast of a video clip. Tweak requires YUY2 input. Use ConvertToYUY2() if necessary. Hue: (-180.0 to +180.0, default 0.0) is used to adjust the color hue of the image. Positive values shift the image towards red. Negative values shift it towards green. Sat: (0.0 to 10.0, default 1.0) is used to adjust the color saturation of the image. Values above 1.0 increase the saturation. Values below 1.0 reduce the saturation. Use sat=0 to convert to grayscale. Bright: (-255.0 to 255.0, default 0.0) is used to change the brightness of the image. Positive values increase the brightness. Negative values decrease it. Cont: (0.0 to 10.0, default 1.0) is used to change the contrast of the image. Values above 1.0 increase the contrast. Values below 1.0 decrease the contrast |
Thanks for the tip Smoochie3 :)
Script updated :!: (again!) I've fixed a LOT of logic errors, and simplified the logic. The line that does most of the magic is this: ScriptClip("((cf - lf) < scd_trigger) ? (val < MaxTreshold) ? MergeLuma(blur(val)) : MergeLuma(blur(MaxTreshold)) : MergeLuma(blur(1.5))") Basically the line does this: (1) If the frame currently being displayed is not a scene change, and the current value is below the mergeluma treshold, then it uses the returned value and applies it to mergeluma. If the value is equal to or greater than the maximum allowed ( 1.58 ), then use the maximum. (2) If the frame is a scene change, then saturate mergeluma with a max value. This is an interesting experiment :!:, because to the eye, we can't see a fast transition between scene changes (a single frame ), but for the encoder, it's a very heavy penalty. Every scene change causes a loss of compression because of the sharp transition. So what I did is "dampen" the frame after the scene change with a full saturation of mergeluma. The effect will probably be several extra megabytes of space saved per movie 8) Now, back to encoding :D -kwag |
YEEEEAHHHH :ole:
Previous CQ for the movie "The Foreigner" was 63.97. New CQ with the current script is 64.256 :mrgreen: Here's the short sampler made by ToK: www.kvcd.net/06022003-test.mpg Now we're cooking :mrgreen: *** Please update your script from the current script *** Edit: Here's an Extreme scene change detection sample with the latest script: www.kvcd.net/extreme-scenechange.mpg Same CQ as the previous sample (64.256) -kwag |
Quote:
ozjeff99 |
Yes - Tweak has been built into AviSynth for nearly a year - and it works nicely in YV12. I would however still recommend using ColorYUV - much more flexible.
|
@kwag:
How about: Code:
ScriptClip("MergeLuma(Blur( cf - lf < scd_trigger ? (val < MaxTreshold ? val : MaxThreshold) : 1.5))") Have you considered using a non-linear motion->blur function? I wondered if something like a log function or the distance formula would be better, so that blurring would be small for low motion scenes but very quickly ramp up as motion increased. I found a PDF with graphs of some common functions that might help illustrate what I'm on about: here I'm also not sure if I agree with lf=YDifferenceToNext being at the end of the script, but I havent decided yet so Im certainly not going to post about it before I have :wink: |
Quote:
thank you very much to accept my invite sh0dan. :D MipSmooth 0.9 released: http://www.kvcd.net/forum/viewtopic.php?t=4281 :wink: |
Quote:
|
Hi DorvalCS good pickup and a much-valued refinement Latexxx. Thought we might have to start another "Where's Sansgrip" thread. :P
Couple of questions for anyone: Interesting, both Vdub (through ffvfw codec) and Tmpgenc pick up the script OK but WMP9 inverts it 8O . Anyone else had this prob? shOdan mentions YUY2 space gives more flexibility however if all filters used work OK, is YV12 better because it is faster? ozjeff99 |
Quote:
Quote:
Quote:
Quote:
-kwag |
Quote:
Keep it up and pretty soon we'll be able to put a whole movie on my 256mb Thumb Drive. Hey I realize this is just the beginning, but if this is the beginning then I can't wait until it reaches full maturity. Yeah Baby, Yeah! Racer99 |
Quote:
I did that a long time ago, without any of the latest techniques, so now it would probably look even better 8) -kwag |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.