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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th December 2008, 18:25   #1  |  Link
kh5
Registered User
 
Join Date: Oct 2006
Posts: 4
Vertical Streaks in DV-Capture

Hello everybody,

I recently taped a children's musical with a Sony VX1000, which I happed to get for that occasion and used for the first time. On the LCD of the camera everything seemed fine, but when I captured the tapes to my PC I saw that there were some very strange vertical streaks of various lengths everywhere in the video, mainly in bright areas (see attached file).

Now obviously I cannot retape the whole thing, so I was wondering if anybody here has an idea how I could at least remove those streaks to some extent.
Attached Images
 
kh5 is offline   Reply With Quote
Old 4th December 2008, 22:32   #2  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
What DV codec are you using?

Try cedocide!
IanB is offline   Reply With Quote
Old 4th December 2008, 22:49   #3  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by IanB View Post
Try cedocide!
ITYM "Cedocida"...

np: Tocotronic - Kapitulation (Kapitulation Live)
__________________
now playing: [artist] - [track] ([album])
Leak is offline   Reply With Quote
Old 4th December 2008, 23:35   #4  |  Link
kh5
Registered User
 
Join Date: Oct 2006
Posts: 4
Quote:
Originally Posted by IanB View Post
Try cedocide!
That didn't help. I actually think it really is on the tape. When I look at it on the camera LCD I can sort of see the streaks now that I know they are there. Before I thought it was just reflections on the dresses of the children. I also tried capturing with a different camera and it's still the same.

I had the zebra function turned on while recording, but I don't think that should get recorded on tape, or would it normally?

I think all that I can do now is to try to get the streaks somehow smoothed out... But how? I had some success with RemoveDirtMC (more) and DeSpot (a little), but it's not really perfect.

Isn't it somehow possible to select all the white (or black) pixels and smooth them out with the ones around them?

I'm also happy to hear about any other solutions.
kh5 is offline   Reply With Quote
Old 5th December 2008, 00:08   #5  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
Code:
function removestreak(clip c, int "thr", bool "post"){
thr = default(thr, 50)
post = default(post, false)

c
m = Levels(255-thr, 255, 255, 0, 255, false).tweak(sat=0)
#fix = mt_luts( last, last, mode = "med", pixels ="0 0 -1 0 1 0", expr = "y" )
fix = mt_convolution(horizontal="-1 8 0 8 -1", vertical="1", u=2, v=2)

mt_merge(last, fix, m)
post == true ? mt_luts( last, last, mode = "med", pixels ="0 0 -1 0 1 0", expr = "y" ) : last
return(last)}
I tested this out and it works pretty well. I don't know how it will do on the whole video, and I'm too lazy to upload a screengrab, but it worked pretty flawlessly on your sample.

thr sets how far from absolute white a pixel has to be to get included in the mask. It may just be the jpeg compression introducing variation that isnt there, but I had to set this pretty high to get it too work, it works in pc levels, so 0 (do nothing to 255 process everything) if thr is set excessively high, artifacts from the blur kernel will propogate the streaks across the image.

post activates an aditional, whole picture median blur (only in the horizontal, so its isn't that destructive) to get rid of any leftoers, but reduces quality, so it is off by default. It may however be necesary to deal with overall variation throughout the video consistently

there are about a million and one ways this could be made better, but it seams to work fine as it is.

example usage: removestreak(60, true)
or: removestreak(thr=60, post=true)
*.mp4 guy is offline   Reply With Quote
Old 5th December 2008, 00:41   #6  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by *.mp4 guy View Post
Code:
m = Levels(255-thr, 255, 255, 0, 255, false).tweak(sat=0)
Is that a typo or do you really mean a gamma of 255.0 ?
Gavino is offline   Reply With Quote
Old 5th December 2008, 00:44   #7  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
The gamma is that high just to make sure that everything that isn't black is completely white, instead of mostly white. All the levels clip is doing is creating a mask, so absurd settings work perfectly well.
*.mp4 guy is offline   Reply With Quote
Old 5th December 2008, 00:59   #8  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by *.mp4 guy View Post
The gamma is that high just to make sure that everything that isn't black is completely white, instead of mostly white. All the levels clip is doing is creating a mask, so absurd settings work perfectly well.
Thanks, I see.
I think Levels(255-thr, 1, 255-thr, 0, 255, false) would also work.
Gavino is offline   Reply With Quote
Old 5th December 2008, 14:52   #9  |  Link
kh5
Registered User
 
Join Date: Oct 2006
Posts: 4
Cool! Thanks a lot. It works quite well. I have to turn the blur on to remove everything, but I'll have a look if it is ok without it when the video is playing.

I never understood the maths behind these things though. I tried to do something on my own, but I don't even understand how convolution works, so it's probably hopeless

Anyways, that really helped me a lot. Thanks.
kh5 is offline   Reply With Quote
Old 9th December 2008, 11:18   #10  |  Link
2Bdecided
Registered User
 
Join Date: Dec 2002
Location: UK
Posts: 1,673
Very strange - I'd love to know how that problem occurred. You're right about the Zebras - they certainly shouldn't appear on tape!

If you used a dependable (lossless DV) capture program like WinDV, it would be interesting to see a 1 second DV-AVI fragment of the original.

Cheers,
David.
2Bdecided is offline   Reply With Quote
Old 10th December 2008, 20:14   #11  |  Link
kh5
Registered User
 
Join Date: Oct 2006
Posts: 4
Here you go: The sample is here.

It really seems to have to do with brightness. I have long stretches of the video where it is quite dark an none of the artifacts occurs. And when they occur it's mostly on the white dresses of the children and on their faces. What would speak for zebra is that the streaks are not only white but also black in some spots. But I just had a look at the manual and it expressively states that the zebra doesn't get recorded... Well, strange anyhow.
kh5 is offline   Reply With Quote
Old 11th December 2008, 12:15   #12  |  Link
2Bdecided
Registered User
 
Join Date: Dec 2002
Location: UK
Posts: 1,673
They might be sensor faults - maybe the CCD is dying?

Most are peak white, but many aren't - pity - that would have been an easy fix! Maybe they were all peak white as they left the sensor, but have got mangled by the DCT compression in DV.

Cheers,
David.
2Bdecided is offline   Reply With Quote
Reply


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 15:33.


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