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 20th May 2010, 21:20   #1  |  Link
bartel75
Used Registerer
 
Join Date: Mar 2009
Location: Brussels
Posts: 15
Filter for 'weird' interlacing?

Hello,

Could anyone suggest a nice filter to make the following video smooth again? The regular deinterlace filters (tomsmocomp, yadif, etc.) don't seem to handle this one...



Video sample (6 mb vob):
http://rapidshare.com/files/389671750/VTS_01_1.VOB
or
http://www.megaupload.com/?d=ZKRYGNXQ

Thanks in advance, and sorry for the rather vague title; I don't know how I'd call this phenomenon, so it was a bit hard to search the forum for similar cases. If you know what this is actually called, thanks for letting me know...

Last edited by Guest; 20th May 2010 at 23:16. Reason: rule 12
bartel75 is offline   Reply With Quote
Old 20th May 2010, 21:36   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,075
The obvious question: Did you try YadifMod+NNEDI2 or TempGaussMC yet ???
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 20th May 2010 at 21:38.
LoRd_MuldeR is offline   Reply With Quote
Old 20th May 2010, 21:45   #3  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 4,117
it's actually not interlaced , and those horizontal lines are encoded into each separate field

I don't know how to improve it without blurring the crap out of it - But I would wait for some of the experts to chime in
poisondeathray is offline   Reply With Quote
Old 20th May 2010, 22:30   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,075
Quote:
Originally Posted by poisondeathray View Post
it's actually not interlaced , and those horizontal lines are encoded into each separate field
Now that I actually have the sample, it looks like the individual fields already contain something that looks like re-sized interlace.

I doubt there is a way to "fix" this mess

__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 20th May 2010 at 22:35.
LoRd_MuldeR is offline   Reply With Quote
Old 20th May 2010, 22:35   #5  |  Link
bartel75
Used Registerer
 
Join Date: Mar 2009
Location: Brussels
Posts: 15
Quote:
Originally Posted by LoRd_MuldeR View Post
I doubt there is a way to "fix" this mess
I guess I'll just leave it like it is, then. Thanks for your input, guys...
bartel75 is offline   Reply With Quote
Old 20th May 2010, 23:04   #6  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 1,923
I think it's an old 405-line broadcast. You might get something slightly nicer by downsizing vertically (but to what size is a matter for experimentation) and then bobbing/reinterlacing. I'd have a go myself but it's bedtime...

David
wonkey_monkey is offline   Reply With Quote
Old 20th May 2010, 23:12   #7  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,075
A very quick experiment with this code crudely smoothed out the interlacing artifacts:

Code:
MPEG2Source("C:\Temp\!_Downloads\VTS_01_1.d2v")
SeparateFields()
Merge(Last.SelectEven(),Last.SelectOdd())
NNEDI3(field=-2)
Merge(Last.SelectEven(),Last.SelectOdd())
NNEDI3(dh=true)
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 20th May 2010, 23:37   #8  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 1,923
I tried:

Code:
lanczosresize(720,320) # guesswork; another value for height may work better
bob # also use a better bobber!
lanczosresize(720,576)
My guess: film recording telecined to 405-line videotape, then converted to PAL in a quick-and-dirty fashion.

David
wonkey_monkey is offline   Reply With Quote
Old 21st May 2010, 00:23   #9  |  Link
bartel75
Used Registerer
 
Join Date: Mar 2009
Location: Brussels
Posts: 15
Quote:
Originally Posted by LoRd_MuldeR View Post
A very quick experiment with this code crudely smoothed out the interlacing artifacts:
Very acceptable!
Very slow (0.12 fps)!
bartel75 is offline   Reply With Quote
Old 21st May 2010, 00:24   #10  |  Link
bartel75
Used Registerer
 
Join Date: Mar 2009
Location: Brussels
Posts: 15
Quote:
Originally Posted by davidhorman View Post
I tried:

Code:
lanczosresize(720,320) # guesswork; another value for height may work better
bob # also use a better bobber!
lanczosresize(720,576)
Not as nice as LoRd_MuldeR's solution, but at least the speed is within reason. Thanks!
bartel75 is offline   Reply With Quote
Old 21st May 2010, 01:31   #11  |  Link
10L23r
Registered User
 
Join Date: Apr 2009
Posts: 122
It looks like a 1.5x upscale, so it should be
lanczosresize(720,384)
10L23r is offline   Reply With Quote
Old 21st May 2010, 10:55   #12  |  Link
2Bdecided
Registered User
 
Join Date: Dec 2002
Location: Yorkshire, UK
Posts: 1,673
It's a telerecording (kinescope) from a 405-line TV broadcast. They would have pointed a film camera at a TV screen, and captured the image displayed. The camera would have been synchronised to the video signal. This is quite high quality, and has captured both fields without blurring.

The resulting film has just been transferred to DVD like any other normal feature film - the "interlacing" you see is on the film print - the transfer from film to DVD isn't "interlaced" as such. (I know it's flagged interlaced, but so are many PAL film transfers).

It's quite rare for the original interlacing to be so well intact - it would have made this film very difficult to re-transmit, because there's no way the interlacing can "line up" again, so you'd get very strange effects watching the film on a 405-line interlaced CRT. Usually the fields are blurred together a little using spot wobble, either on the TV screen as the film is being captured, or in the film scanner when the film is being converted back to video.

It must be possible to detect the original scan lines, recover the original interlaced video, deinterlace it, and upscale it (this will have about 375 visible lines - you need 576 for PAL). Deinterlacing and upscaling can be done very well in AVIsynth, but I don't think anyone has ever recovered the original scan lines from a film print like this.

yet.

...but given that the far harder problem of colour recovery from a B&W film print has been acheived, this should be a walk in the park for some clever person!

Cheers,
David..
2Bdecided is offline   Reply With Quote
Old 21st May 2010, 11:04   #13  |  Link
2Bdecided
Registered User
 
Join Date: Dec 2002
Location: Yorkshire, UK
Posts: 1,673
Without anything clever, my suggestion would be...

PHP Code:
mpeg2source("405-line interlaced VTS_01_1.d2v")

bilinearresize(720,188)

nnedi2(field=0,dh=true)

spline36resize(720,576
Adjust the number 188 - higher to maintain more detail (but leave more "interlacing").

You could make it adaptive and only process the areas with movement. That would keep full resolution on stationary parts (where there's no "interlacing") - though adaptively blurring like this make look even stranger than having the whole thing look soft.

Cheers,
David.
2Bdecided is offline   Reply With Quote
Old 21st May 2010, 11:52   #14  |  Link
Terka
Registered User
 
Join Date: Jan 2005
Location: cz
Posts: 677
dont know if its suitable, but yuo may have a look at:
http://compression.ru/video/old_film..._shift_en.html
Terka is offline   Reply With Quote
Old 21st May 2010, 14:20   #15  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,075
Quote:
Originally Posted by bartel75 View Post
Very acceptable!
Very slow (0.12 fps)!
NNEDI has some "speed -vs- quality" options you could tweak for speed. Also NNEDI2 is a lot faster than NNEDI3...
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 21st May 2010, 14:37   #16  |  Link
bartel75
Used Registerer
 
Join Date: Mar 2009
Location: Brussels
Posts: 15
Quote:
Originally Posted by 2Bdecided View Post
Without anything clever, my suggestion would be...
(...)
Adjust the number 188 - higher to maintain more detail (but leave more "interlacing").
I put the number just a little higher (204) and used spline36resize(720,528) to get the AR right. I'm currently encoding (at 4 fps, which is acceptable for me).

The quality is not great, but at least it's better than the original dvd!

Thank you (all of you) for your suggestions!
bartel75 is offline   Reply With Quote
Old 21st May 2010, 14:39   #17  |  Link
bartel75
Used Registerer
 
Join Date: Mar 2009
Location: Brussels
Posts: 15
Quote:
Originally Posted by LoRd_MuldeR View Post
Also NNEDI2 is a lot faster than NNEDI3...
I just noticed, based on 2Bdecided's suggestion!
bartel75 is offline   Reply With Quote
Old 21st May 2010, 16:38   #18  |  Link
2Bdecided
Registered User
 
Join Date: Dec 2002
Location: Yorkshire, UK
Posts: 1,673
btw, what is the DVD?
2Bdecided is offline   Reply With Quote
Old 21st May 2010, 17:07   #19  |  Link
bartel75
Used Registerer
 
Join Date: Mar 2009
Location: Brussels
Posts: 15
Quote:
Originally Posted by 2Bdecided View Post
btw, what is the DVD?
http://www.amazon.com/Beethoven-Cell.../dp/B000092T5P (European R2 version)
bartel75 is offline   Reply With Quote
Old 22nd May 2010, 01:19   #20  |  Link
zilog jones
Registered User
 
zilog jones's Avatar
 
Join Date: Mar 2004
Location: Ireland
Posts: 481
Quote:
Originally Posted by 2Bdecided View Post
It must be possible to detect the original scan lines, recover the original interlaced video, deinterlace it, and upscale it (this will have about 375 visible lines - you need 576 for PAL). Deinterlacing and upscaling can be done very well in AVIsynth, but I don't think anyone has ever recovered the original scan lines from a film print like this.

yet.

...but given that the far harder problem of colour recovery from a B&W film print has been acheived, this should be a walk in the park for some clever person!
Field restoration from telerecordings has been done: http://en.wikipedia.org/wiki/VidFIRE
I have not seen any of the restored programmes mentioned (they don't seem to broadcast them very often) but it sounds promising.
zilog jones is offline   Reply With Quote
Reply

Tags
avisynth, filters

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 08:46.


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