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. |
29th April 2005, 21:25 | #21 | Link | |
Registered User
Join Date: Mar 2005
Location: Poland
Posts: 85
|
New, small update to version 0.1.1.
1. New parameter "circle" allows to increase speed 4 times with some little quality loss. Default value is 7, but you can go as low as 3. 2. Fixed bug with avg_lum (thanks to AVIL) 3. C optimization (thanks to tsp) 4. Other new parameters: coef_gain and min_sat. @Backwoods Quote:
Regards |
|
29th April 2005, 22:58 | #22 | Link | |
Registered User
Join Date: Jan 2003
Posts: 62
|
@paviko, about the 0-255 range, my point is that even your DV codec uses 0-255 range, and assuming it opens avi in YUY2 range (not such Panasonic -RGB only type codec), ConvertToRGB expands YUY2 luma from 16-235 to RGB 0-255 values. In this scenario all details above 235 luma will be lost. This is the common miniDV cam problem, even Sony HDR-FX1 which has a "zebra" function. Using cams with no "zebra" (such Sony HC-85) complicates situation even more.
By using ConvertToRGB(matrix="PC.601") you convert YUY2 from 0-255 to RGB 0-255 range (not 16-235 to 0-255) preserving all overshoot values above 235. Now you retain the original full luma range. If HDR AGC filter could do all the work in 0-255 range and finally keep (reduce) RGB values to 16-235 range would be perfect solution. My final target is DVDR, so my next step is frameserving *.avs to video editor (Vegas for example, which works correctly with full RGB range) editing and encoding to mpeg2. Quote:
It would be perfect if you could address all full RGB range and interlaced material handling related issues. Thanks. Last edited by Bordo32; 29th April 2005 at 23:01. |
|
30th April 2005, 07:32 | #23 | Link | |
ReMember
Join Date: Nov 2003
Posts: 416
|
Quote:
Of course I will test this new version all day tomorrow, great stuff. |
|
30th April 2005, 23:02 | #24 | Link | ||
Registered User
Join Date: Mar 2005
Location: Poland
Posts: 85
|
@Bordo32
Quote:
@Backwoods Quote:
Version 0.1.2 alpha I've found some low-light clips that behaves strangly. They have luma in range 0-80 and only gain to 0-150 with very plastic look. In new version I've changed lightness distribution routine to fix this problem. Now midtones also have higher contrast. New value for auto control of saturation - coef_sat can be 0.0 which means that max_sat will be applied to pixels that get max_gain, other pixels get saturation respectivaly to their gain. Calculated gain is independent of avg_lum parameter, so changing avg_lum won't change drastically gain for dark areas. Link to HDR AGC 0.1.2 Regards |
||
1st May 2005, 14:26 | #25 | Link |
Registered User
Join Date: Feb 2005
Location: Lyon
Posts: 718
|
I appreciate this beautiful work.
But a question challenges me. The human eye is able to observe the chromatic apects of its environment. With this optimization would not be it not worrying to raise the question of this filter about zones of shades and dark of a realistic scene. Nevertheless on the strategic level of defense (thorough war/investigations), this filter will be a considerable investment. |
1st May 2005, 18:11 | #26 | Link |
Registered User
Join Date: Dec 2003
Posts: 215
|
test with bad souce
Can anyone do slightly better with this dark source?
By the way this is a great plugin and maybe an unfair test. (originally DV footage) I tested this with the following script: Avisource("D:\capture\Swdark.avi") ConverttoRGB32() #HDRAGC(avg_lum= 1000,max_gain =3.8, min_gain=2.8, coef_gain=1.0) HDRAGC(max_gain =5.8, min_gain=4.8, coef_gain=2.5,max_sat=1.6) and compared with the original: vid1=Avisource("D:\capture\Swdark.avi") vid2=Avisource("D:\avis\Hadrag1.avi") vid2=vid2.converttoRGB32 stackhorizontal(vid1,vid2) reduceby2() |
2nd May 2005, 10:36 | #27 | Link | |
interlace this!
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
|
Quote:
it would be nice to have this extra bit of detail, as it's often the difference between "hot" and "overexposed". [edit] FWIW, pinnacle's old DV25 codec will decode DV to rgb24 and keep the luminance how it was captured, at the cost of slow speed (it's old) and slight blurring (i don't know where that comes from, probably the rgb conversion).
__________________
sucking the life out of your videos since 2004 |
|
2nd May 2005, 11:15 | #28 | Link | |||
Registered User
Join Date: Mar 2005
Location: Poland
Posts: 85
|
@guada 2
Quote:
@trolltuning Quote:
If you want it to be more bright then simply use: HDRAGC(max_gain = 12.0) If it's too bright lower max_gain. If you want to play with colours you need to white balance the scene (remove probably the yellow) and increase the max_sat value to the level you like: HDRAGC(max_gain = 12.0, max_sat = 3.0, coef_sat = 0.0) Probably with colours can't be done much - too dark scene for camcorder to keep them. @Mug Funky Quote:
Regards |
|||
2nd May 2005, 18:44 | #29 | Link | |
Registered User
Join Date: Jan 2003
Posts: 62
|
@paviko,
Quote:
Or HDR AGC my work in 0-255 RGB range and RGB values might be reduced to 16-235 after all work is done. Last edited by Bordo32; 2nd May 2005 at 18:52. |
|
9th May 2005, 11:48 | #32 | Link |
Registered User
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
|
Paviko,
*EDIT: I changed my opinion about the saturation, see my other posting below.* I did many tests, this weekend. It appears to me your first version is better... The second one gives too much saturation. But this is a problem with the first one, too. There is too much saturation, and I can not reduce this with max_sat=1. Also, colors are a little unnatural. However, this amazing filter still looks very promising to me. I already can use it. I reduce saturation and adjust contrast a little afterwards. On German broadcast, I saw a film and I am almost sure they used the same principles as you do (maybe in the camera?). Contrast was very equal, colors where very vivid. Awesome! I sure hope you have time to develop it further! Together with Fizicks depan plugin, your plugin could be my favorite! You are almost there, we just need some more fine-tuning. Maybe you could make saturation more adjustable? EDIT: But I was thinking... I'm not a colorspace-codec expert. Could the saturation problem be caused by the Huffyuv codec I use? I'm gonna do some more tests with the Panasonic DV codec. Maybe it is not a saturation, but colorspace issue, right? Any other people who are testing this filter? Fred.
__________________
About 8mm film: http://www.super-8.be Film Transfer Tutorial and example clips: https://www.youtube.com/watch?v=W4QBsWXKuV8 More Example clips: http://www.vimeo.com/user678523/videos/sort:newest Last edited by videoFred; 10th May 2005 at 08:07. |
9th May 2005, 21:49 | #33 | Link | ||||
Registered User
Join Date: Mar 2005
Location: Poland
Posts: 85
|
Quote:
Quote:
Quote:
Quote:
Regards |
||||
10th May 2005, 00:34 | #34 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
paviko,
Sorry, but i still did not try your plugin. But do you take into acount the temporal variations? Some time ago i made Deflicker plugin for brigthness and contrast temporal stabilizing. What do you think about it? May be some combination is possible?
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
10th May 2005, 06:52 | #35 | Link | |
Registered User
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
|
Quote:
I did more testing, your colors are OK! Also on version 2. I can play with the sigma parameter also, I was forgatten to use this parameter Now, together with max_gain, min_gain, avg_lum I can do miracles with this filter. And no, it has nothing to do with the used codec or colorspace. As soon as possible, I post some results. Aaaahhh! I would like to run this filter on several hundred files in batch, without the need to do settings for each individual file! Am I dreaming? Would this be possible? Fred.
__________________
About 8mm film: http://www.super-8.be Film Transfer Tutorial and example clips: https://www.youtube.com/watch?v=W4QBsWXKuV8 More Example clips: http://www.vimeo.com/user678523/videos/sort:newest Last edited by videoFred; 10th May 2005 at 07:46. |
|
10th May 2005, 18:43 | #36 | Link | |
mad computer-scientist
Join Date: Mar 2002
Posts: 1,375
|
Quote:
i'm done porting Ming Yang's code, but i'm still working on interfaces also i daubt this will help much here AFAIK the algo needs 'good' luma to correctly spread the colors |
|
11th May 2005, 01:42 | #37 | Link | |
ReMember
Join Date: Nov 2003
Posts: 416
|
Quote:
|
|
11th May 2005, 06:41 | #38 | Link | |
Registered User
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
|
Quote:
I mean AVI files, not stills. Fred.
__________________
About 8mm film: http://www.super-8.be Film Transfer Tutorial and example clips: https://www.youtube.com/watch?v=W4QBsWXKuV8 More Example clips: http://www.vimeo.com/user678523/videos/sort:newest |
|
11th May 2005, 06:56 | #39 | Link | |
Registered User
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
|
Quote:
You realy should try it, because I understood you also are working with old 8mm film, right? Then you know how difficult it is to capture high contrast scenes. Almost always the whites are overexposed. Not on the original, but on the digital capturing. The very best way to deal with this is double capturing: then you have a bright and a dark clip of the same scene. With overlay() and a mask, I put them together again, and then I realy see everything that is on the film. But this all takes a lot of time. Another method is: if you expose on the highlights while capturing, you end up with a very dark picture, but with correct highlights. But there is still much information in the dark parts, and this filter makes this visible. Yes, as far as I can see, it deals also very well with temporal variations. Btw: Your 15/25fps script works very well! It gives very smooth pannig! Awesome to see how it realigns every frame. I use it all the time for panning scenes. Fred.
__________________
About 8mm film: http://www.super-8.be Film Transfer Tutorial and example clips: https://www.youtube.com/watch?v=W4QBsWXKuV8 More Example clips: http://www.vimeo.com/user678523/videos/sort:newest |
|
11th May 2005, 08:42 | #40 | Link | |
ReMember
Join Date: Nov 2003
Posts: 416
|
Quote:
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|