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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th January 2005, 07:56   #41  |  Link
Macanudo
Registered User
 
Join Date: Jun 2002
Location: Texas
Posts: 59
Quote:
Originally posted by E-Male
if send a mail with questions to the gimp developer maling list
i hope to get the needed info from there to fix that

(-1,-1)-pairs are ignored, which should be correct
what i'm not sure is what to do with (-1,x)-pairs [x>0]
for now i just ignore them, too, which doesn't feel too right

also i'm not sure how to use the value curve at all
so my code for it might be just all wrong

i'll update the dll as soon as i got new infomation to work with
I sent Gimp's developers a message on one of their mailing lists, requesting the relevant source code for the Curves function. It has been about 3 days now and I haven't had any responses.

The code is available for the entire gimp program, but I was hoping one of the developers would direct me just to the relevant code for Curves.

Since you have more specific questions, you might have better luck. Here is a list of Gimp Developer Mailing Lists
Gimp Links

I posted my question on the Gmane mailing list under the Gimp Developer heading.

As soon as I hear back I will PM you their response.

Thanks Again,
Macanudo
Macanudo is offline   Reply With Quote
Old 12th January 2005, 08:02   #42  |  Link
E-Male
mad computer-scientist
 
Join Date: Mar 2002
Posts: 1,375
your mail has been answered
see their mail archive
http://www.mail-archive.com/gimp-dev.../msg08867.html
i've answered back to that reply, but my mail hasn't been put on the ML yet

i've looked through the code, too much for me to handle at my current (non-existend) experience
E-Male is offline   Reply With Quote
Old 12th January 2005, 11:56   #43  |  Link
Macanudo
Registered User
 
Join Date: Jun 2002
Location: Texas
Posts: 59
Quote:
Originally posted by E-Male
...i've looked through the code, too much for me to handle at my current (non-existend) experience [/B]
I can assure you, you are far more experienced than I am. I am barely competent with Avisynth script, which I am sure that there are many on this forum who, if they saw my scripts, could argue that I am not even barely competent in that. .

If it is over your head then I am confident it is over mine. I still intend on looking at it to satisfy my curiosity, but I am afraid that it is probably a lost cause.

Macanudo

By the way thanks for the heads up on the response by the developers.

Something is screwy. I just rechecked my gmail again and I still haven't received any mail for the Gmane mailing list. I received my authorization to post three days ago and sent my reply but nothing since.

Last edited by Macanudo; 12th January 2005 at 12:27.
Macanudo is offline   Reply With Quote
Old 12th January 2005, 22:34   #44  |  Link
CraigBjorn
Registered User
 
Join Date: Feb 2004
Posts: 61
I really want to test this out, but I recently deleted all the dv files on my hard drive, and the ones at footage firm are huge and Mug Funky isn't online... does anyone know of a place with some short uncompressed dv clips to download?
[edit]The Footage Firms wouldn't be so bad, but they appear to be shot with some good lenses and 3ccd cameras which is going to be better quality than most people's. if we're trying to show the effect of using this kinda stuff on everyday footage.

Last edited by CraigBjorn; 12th January 2005 at 22:40.
CraigBjorn is offline   Reply With Quote
Old 13th January 2005, 00:06   #45  |  Link
CraigBjorn
Registered User
 
Join Date: Feb 2004
Posts: 61
I've been testing, and when I use this curves file

# GIMP Curves File
0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255
-1 0 -1 0 -1 0 46 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 217 249 137 255 255
-1 0 -1 0 32 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 249 201 255 255
-1 0 22 0 -1 1 -1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255
0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255

It has extreme reds and blues when it should make it a slightly bluish tint. This may be due to the -1's problem though though
CraigBjorn is offline   Reply With Quote
Old 13th January 2005, 03:28   #46  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,547
my sample probably isn't much good for getting a film effect - it's just a test pattern under incandescent light - a very quick capture to demonstrate the lack of horizontal res.

btw, it's online now and will be for the next few hours. sorry, i get a lot of downtime on this box, as it's not a dedicated server but a piddly old home machine.
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 13th January 2005, 12:28   #47  |  Link
E-Male
mad computer-scientist
 
Join Date: Mar 2002
Posts: 1,375
@CraigBjorn:

the lines even start with "-1 0"
and i still don't know how to handle (-1,x) pairs

i've now registered to the gimp dev ML as they don't seem to chek mail by non-members
i hope to soon be able to fix it
E-Male is offline   Reply With Quote
Old 13th January 2005, 23:42   #48  |  Link
E-Male
mad computer-scientist
 
Join Date: Mar 2002
Posts: 1,375
ok, found a stupid bug
instead of the value curve i aplied the alpha curve
please redownload adjustgimp and test, thx

EDIT:
just saw alpha channel is also handled wrong, but i'll only release a fix if someone needs it

Last edited by E-Male; 13th January 2005 at 23:51.
E-Male is offline   Reply With Quote
Old 14th January 2005, 00:41   #49  |  Link
E-Male
mad computer-scientist
 
Join Date: Mar 2002
Posts: 1,375
http://e-rels.dyndns.org/downloads/GiCoCu.dll

gicocu("x:/curve")

-rewritten, envoke replaced, should be much faster but need testing again (or still)
-value and alpha-channel fixed (maybe)
-single "-1"s still not fixed
E-Male is offline   Reply With Quote
Old 14th January 2005, 03:25   #50  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,547
nice!

it appears to be using all the curves (haven't checked comprehensively yet, just eyeballed it), but appears more saturated than in the gimp for the same curve. not a big problem of course, and it's possible that virtualdub is causing this somehow (though i don't know why it'd clamp levels if the incoming colourspace is rgb32).

i suggest testing on a 256 pixel wide white to black gradient. that might show things up that natural images might not.

[edit] it's definitely using all the curves. just something slightly off... maybe something's swapped, like green and blue?
__________________
sucking the life out of your videos since 2004

Last edited by Mug Funky; 14th January 2005 at 03:31.
Mug Funky is offline   Reply With Quote
Old 14th January 2005, 04:25   #51  |  Link
E-Male
mad computer-scientist
 
Join Date: Mar 2002
Posts: 1,375
well, except for the "-1"-mystery i can't do much more, except when i find more errors in my code, which could happen likely
still waiting for word from the gimp dev-ML to get the -1 thing cleared up, it's the last obviosue missing thing for me


the only other thing i can work on atm is optimiasation

i wanna try if converting the curve-file to a lookup-table-file will speed the filter up (less computation, but more hd-readind [both per frame])


i also follow the masktools thread which deal with photoshop curves
when both formats are understood, i think i'll write a converter
the gimp comunity might like that as well
E-Male is offline   Reply With Quote
Old 14th January 2005, 05:29   #52  |  Link
Macanudo
Registered User
 
Join Date: Jun 2002
Location: Texas
Posts: 59
Outstanding!

Here are the results of my latest test using the same video and frame number as my above test. The "gimp curve" and the "gicocu curve", for all practical purposes, appear to me to be identical.

Great Job E-Male! You are a gentleman and a scholar!

Original Screen Shot (frame#360)


Gimp Curve (frame#360)


Gicocu Curve (frame#360)


I used the same curve file as my above test.
# GIMP Curves File
0 0 -1 44 28 43 -1 65 67 96 -1 93 -1 65 -1 140 121 139 -1 -1 -1 204 -1 201 192 190 213 224 -1 221 -1 242 255 255
0 0 -1 56 -1 47 -1 34 61 35 -1 -1 -1 118 -1 110 128 99 -1 98 162 193 -1 213 189 241 -1 236 -1 226 -1 -1 255 255
0 0 -1 -1 -1 -1 -1 49 63 45 -1 47 100 92 -1 149 121 149 151 191 -1 186 -1 192 196 233 -1 228 -1 -1 -1 -1 255 255
0 0 21 38 -1 35 -1 -1 63 53 -1 66 104 65 117 139 -1 138 148 201 -1 203 -1 203 -1 198 -1 -1 -1 -1 -1 -1 255 255
0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255

Just for fun, I will now attempt to replicate the "Bleached Bypass" effect in "Magic Bullet Suite", but I still haven't gotten my Window's machine running right. Too bad Avisynth won't run under Linux or Unix. I have read in the Linux portion of this forum that may be coming with the release of Avisynth 3.0.

Thanks Again to E-Male and everyone involved,
Macanudo

Last edited by Macanudo; 14th January 2005 at 05:51.
Macanudo is offline   Reply With Quote
Old 14th January 2005, 06:19   #53  |  Link
E-Male
mad computer-scientist
 
Join Date: Mar 2002
Posts: 1,375
waiting for some curves to eb shared here
i knwo they will only be starting points, as al lrecordings differ in lighting and stuff
but it'll be godo starting point
and gimp curves are easy to share by just posting them in plain text
E-Male is offline   Reply With Quote
Old 14th January 2005, 06:53   #54  |  Link
Macanudo
Registered User
 
Join Date: Jun 2002
Location: Texas
Posts: 59
Quote:
Originally posted by E-Male
waiting for some curves to eb shared here
i knwo they will only be starting points, as al lrecordings differ in lighting and stuff
but it'll be godo starting point
and gimp curves are easy to share by just posting them in plain text
I agree. I think we should share our curve files. Like you said they would make great starting points. All that would be necessary is to load the files into "The Gimp" and adjust them to your specific video clip. I plan to post my curve files and test results as I go, for those interested in seeing them. I hope everyone does the same.
Macanudo is offline   Reply With Quote
Old 14th January 2005, 07:21   #55  |  Link
Macanudo
Registered User
 
Join Date: Jun 2002
Location: Texas
Posts: 59
Film Motion Blur

Mug Funky,

I have been reading the following thread Producing a Film-Like Motion Blur..

There seems to be divergent opinions on the best method to use. I noticed that you were following this thread. Did you settle on a method? If so, which do you recommend?

My plan is to use (in order)
1.)some type of bobdeinterlacer
2.)Limited Sharpen
3.)some type of Film Motion Blur
4.)Gicocu
5.)Overlay (to overlay and blend my Gicocu color curved video over a greyscale of the same video or vice versa)

Hopefully with some trial and error I can approximate the "Bleached Bypass" effect of "Magic Bullet Suite".

Sound reasonable?

Last edited by Macanudo; 14th January 2005 at 07:24.
Macanudo is offline   Reply With Quote
Old 14th January 2005, 08:37   #56  |  Link
E-Male
mad computer-scientist
 
Join Date: Mar 2002
Posts: 1,375
motionblur is something i might skip completely, as to me personally it is very anoying, but i'd have to try

what i'll add at the end would be a very very low amount of grain


what i think about is: this sharpening includes supersampling (in most cases) could/should some more things be done in that high resolution?
that would be closer to how film is proccessed
E-Male is offline   Reply With Quote
Old 14th January 2005, 08:39   #57  |  Link
E-Male
mad computer-scientist
 
Join Date: Mar 2002
Posts: 1,375
a request from me:

could someone wit ha dv camera please shoot some footage (just 15 sec or so) in a well lit place of a person, sepecially a close up of the face

so i could start trying some scripts/curves/... before getting my hands on a camera
E-Male is offline   Reply With Quote
Old 14th January 2005, 14:26   #58  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,605
Unfortunately I cannot make public the videos I am processing.
The persons won't like that

And note, that different cameras are producing very different colorations!


Also, I partially agree to E-Male regarding the motin blur thing.

Always record your videos with 1/50 (PAL) or 1/60 (NTSC) seconds shutter speed.

this will be enough to get the film-look after
deinterlacing (PAL)
convert60ito24p (NTSC)

no need for artifical motionblur.

use shorter shutters, if you want to get the 'action' effect.
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 14th January 2005, 15:16   #59  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,547
@ Macanudo:

here's what i've got so far:

Code:
c=last
blurry = c.bilinearresize(c.width/2,c.height/2).bicubicresize(c.width,c.height,1,0).tweak(sat=0.5)
c.limitedsharpen(strength=100).mergeluma(blurry,0.5).mergechroma(blurry,0.5).converttorgb32()
gicocu("C:\MediaTools\AviSynth 2.5\plugins\filmlook_02_.txt")
and my gimp curve is:
Code:
# GIMP Curves File
-1 0 16 0 37 17 -1 -1 -1 -1 -1 0 -1 0 -1 0 128 127 -1 -1 -1 193 -1 221 -1 210 207 219 -1 241 -1 -1 255 235 
0 0 -1 -1 -1 43 41 42 -1 53 -1 -1 -1 -1 -1 57 -1 39 -1 0 -1 0 -1 0 -1 204 211 226 -1 231 -1 -1 255 255 
0 0 -1 -1 -1 -1 47 52 -1 61 -1 -1 -1 -1 -1 125 121 125 -1 -1 -1 -1 -1 -1 -1 210 215 231 -1 -1 -1 -1 255 255 
0 0 -1 -1 -1 -1 40 39 -1 0 -1 0 -1 0 -1 0 127 132 -1 147 -1 -1 -1 -1 -1 207 -1 221 222 235 -1 -1 255 255 
0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 255 
hope this gives something useful. the reds aren't as hardcore as you get on film, but overall it gives the look of push-processed film (high contrast, slight yellow/orange cast).

[edit]

you might want to tweak the saturation in the tweak up there. if you're getting oversaturated, then turn it down until it looks better. originally it was straight greyscale, but i decided that deadened things a bit much.
__________________
sucking the life out of your videos since 2004

Last edited by Mug Funky; 14th January 2005 at 15:21.
Mug Funky is offline   Reply With Quote
Old 14th January 2005, 15:26   #60  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,605
@Mug Funky: I'm not able to DL your sample.
It doesn't set up a connection. (is your no-ip client running?)

alternatively, you might want to upload it on my FTP.
if so, PM me.
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.