Quantcast Avisynth: Smoothdeinterlace and ConvertToYUY2? - Page 2 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #21  
10-14-2004, 05:11 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Ahhhh Music Videos Nice!!

Well, most NTSC Musicvideos are shot on film, being telecined and then in THAT telecined state cuttet! So u should frist try to ivtc your source.

BUT in case of PAL: In here many US Music Videos broadcasted in PAL Land are fieldblended/decimated from this telecined 29.97 state using a brutal conversation down to 25fps fieldblended.
Here only "restore24" would give you the needed orig 23.976 fps back.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #22  
10-16-2004, 02:07 AM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Ahhhh Music Videos Nice!!
They sure are!

Quote:
Originally Posted by incredible
Well, most NTSC Musicvideos are shot on film, being telecined and then in THAT telecined state cuttet!
What you mean by "cutted" ?


Quote:
Originally Posted by incredible
So u should frist try to ivtc your source.
That's exactly what I was doing. But I was wasting a lot of time making these tests trying to ivtc first.
And as Boulder said:

Quote:
Originally Posted by Boulder
Shouldn't telecining result in a pattern of 3 progressive frames, then 2 combed when the source is loaded to VDub?
Of course This way I'll save much time without encoding. I can easily check the pattern first, and then ivtc (or not) without doubts.

This will save me time, but not work, cause I still have to check the videos one by one... I wish there was a tool that would automatically analyze the stream (not just the header or flags) and give us the correct type of the stream.


Well I checked some of the material I have and found this kind of patterns:

NTSC land (all reported as 29.97fps 100% interlaced)
2I - 3P -> This is the simple telecinned, right?
3I - 2P -> How should I process this?
4I - 1P -> Should I assume this as full interlaced?
Progressive (fieldblended) -> Can I make anything with this one, or just encode as is?

There were others isolated strange patterns like 1I-1P-1I-2P, but I don't know if it's worthy to mention...


PAL land (all reported as 25fps 100% interlaced)
Full Progressive
Full Interlaced
Part Interlaced part Progressive
Look like it was deinterlaced, but it presents some small comb effect, some kind of a light residual comb left over.

Please, I would be very happy if you give me your thoughts about how to process all this different kind of streams.
Thanks a lot!
Reply With Quote
  #23  
10-16-2004, 02:09 AM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
BUT in case of PAL: In here many US Music Videos broadcasted in PAL Land are fieldblended/decimated from this telecined 29.97 state using a brutal conversation down to 25fps fieldblended.
Here only "restore24" would give you the needed orig 23.976 fps back.
Please, tell me more about it...
Reply With Quote
  #24  
10-16-2004, 03:06 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Regarding all those patterns, I'd go first for Telecide() and trying different values for the guide parameter. Guide=0 might be worth trying too.

Restore24 : http://forum.doom9.org/showthread.ph...ight=restore24

One alternative for Telecide() would be BlendBob : http://forum.doom9.org/showthread.ph...light=blendbob

It's very hard to tell you any general scripts for those sources as the original can be just about anything! But that 3:2 pattern should require standard IVTC.
Reply With Quote
  #25  
10-16-2004, 03:13 AM
scharfis_brain scharfis_brain is offline
Free Member
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
the first I do with all 'unknown' video stuff is bobbing and counting unique frames.

this means a video is loaded into AVS and bob() gets appended.

this thing is then loaded into VDub.

then count the unique frames in 200 bobbed frames.
also noteyour frames an a sheet of paper!

also pay attention for blended frames.

the result may look as follows:

o - clean frame

d - duped that clean frame

b - blend of its neighbors.

simple Telecined NTSC Film:

o d d o d o d d o d o d d o d o d d o d o d d ...

progressive PAL:

o d o d o d o d o d o d o d o d o d o d o d

phase shifted PAL:

o o d o d o d o d o d o d o d o d o d o d o

60i or 50i video:

o o o o o o o o o o o o o o o o o o o o o

25fps blended into 60i video...

o d b o b o b o d b

and lots of other weird 'telecing' patterns
I've seen serveral ones so far!

please post a short sample of unprocessed (no resizing, no deinterlacing, either direct stream copied or chopperXPed) video, which shows the problems.
Reply With Quote
  #26  
10-16-2004, 07:07 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Sorry for bumping in like this guys.
I've been reading this thread with great interest.
I live in PAL land and basically only backup DVD movies.
So I never came across an interlaced source before and never gave it too much importance.
That is, untill I bought me a TVCapt. card.
This means I'm a complete noob and that I have been searching this and other forums for information about interlaced sources.
And I must tell you that this haven't been an easy task.
Most forums have good guides on this subject.
But the problem is, most forums only post pictures for comparison.
I think as a big noob I would need a very small 5 seconds movie to load into VDubMod and start analysing it myself.
Because you give great explanations but I can only imagine what you're talking and watching a picture ain't the same thing as watching 100 or 150 motion pictures and see how those behave.
So here's what I'm going to do (unless someone can show me a place with what I'm about to do).
Tonight I'm going to start a new thread asking for users with the most common types of interlaced sources to post some small clips with 5 to 10 seconds and 352x288 resolution.
Then I would ask you guys to go over there and point what is what and what methods should we use to encode when going from NTSC to PAL and the opposite.
I hope you will be able to help me and other to come users.
TIA guys.
Cheers
__________________
Rui
Reply With Quote
  #27  
10-16-2004, 07:38 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Rui,

make that 352x576. With 352x288 you'll be discarding one field when capturing

Basically it's the same with a DVD and a TV capture. Most movies/programs originally film material, shot at 23.976fps, are broadcast progressive in PAL lands. That is the case if the NTSC->PAL conversion has been done correctly by speeding up the video and audio.

Sometimes the conversion has been done with a converter which results in fieldblending etc. This can often be repaired with Scharfi's Restore24 which attempts to restore the original film frames.

Many European programs/movies are truly interlaced so they must be treated as such. The patterns scharfis_brain posted help in determining this case. To put it simple: load the source, use Bob() and if you see no duplicate or blended frames, it's truly interlaced.
Reply With Quote
  #28  
10-16-2004, 11:43 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks Boulder.
I just thought about using 352x288 because it will use less bandwidth to upload/download.
I didn't know I'd loose a field too noob in this area
Cheers
__________________
Rui
Reply With Quote
  #29  
10-20-2004, 11:50 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by scharfis_brain
the first I do with all 'unknown' video stuff is bobbing and counting unique frames.

this means a video is loaded into AVS and bob() gets appended.

this thing is then loaded into VDub.

then count the unique frames in 200 bobbed frames.
also noteyour frames an a sheet of paper!

also pay attention for blended frames.
Hi Scharfi!!
I’m very glad to have you here with us!
This “forum” stuff is strange... I never talked to you before, but I have read a lot posts from you that looks like I already know you for a long time. I just miss the “interlaced” Simpson’s brain.

And sorry for the late reply... I was very busy these last days.

Well, I did some tests with the method you described and got many different results.

Some of them are easy to decide what to do, but some I don’t have a clue, even if I can do anything. Some times is hard to identify what kind of field/frame I have. Especially hard when there are blended fields... I probably got lost inside some of the patterns that have many of those fields.

Well... I’ll post what I got here:



NTSC material (720x480 @29.97fps):

1-) o d d o d o d d o d o d d o d o d d
As you said, this one is a simple telecined NTSC film, and a standard IVTC should handle it. But I have many sources that loose the pattern on scene changes (sc). I mean they have a little gap in the pattern, like this:

2-) o d d o d o d d o (sc) o d d o d o d d o d o d d o d o d d o d o d (sc) o d d o d o d d o d
Will a standard IVTC handle these little “gaps” inside the pattern correctly?

3-) o d d o d o d d o d o d d o (sc) o o d o d d o d o d d o d o d d o (sc) o o d o d d o d o d d
Here is another example of these little “gap” at scene changes. The question is the same.

4-) b d b d o d o d o d b d b d o d o d o d b d b d o d o d o d
This one looks like an already field blended to me...
Can I do something with it?

5-) o b b b b b b b b b o b b b b b b b b b o b b b b b b b b b
Now this is strange
I don’t know, but looks like a full interlaced with all blended fields!
This one has many bobed fields with some dirt and ugly comb effect.


6-) o d o d o d o d o d o d o d o d o d o d o o o o o o o d o d o d d o d o d d o d o d d o d o d d o d o d d o d o d d o d o d d o d o d d o d o d (sc) o o d o d d o d o d d o d o d d o d o d d o d o d d o d o d d o d o d o d o o o o o o o d o d o d d o d o d d
This sample has some movie inside the movie. I mean in those bold fields there is a car that goes through the screen and when the car gets out of the screen we are in another scene and the mix of the car passing and the scene in the background is what gives all clean fields.

7-) o d o d d o d o d d b o b o d b o b o d b o b o d b o b o d b o b o d b o b o d b o d o d d o d o d d b o b o d b o b o d b o b o d b o b o d b o b o d b o b o d b o b o d b o d o d d o d o d d o d b o d b o b o d b o b o d b o b o d
I’ll not even try to show the pattern here. This is probably not 100% correct (but you got the picture). Some blended fields are easy to be taken as clean field depending of the motion. This one seems to have two patterns inside a bigger pattern that repeats itself. Is there anything to be done here? Or just a FieldDeinterlace (blending fields) will keep the motion smooth?



Now a few PAL material (720x576 @25fps)

1-) o d o d o d o d o d o d
Beautiful progressive PAL.

2-) o b o b o b o b o b o b
Watching this clip without bob() we can see (in all frames) some tiny comb effect. Well, I guess this is full interlaced, as it has no duped frames (with bob)... but interlaced with blended fields?

3-) o d b o o d b o o d b o b o d o b o d o b o d o d o d b o o d b o o d b o b o d o b o d o b o d o d o d b o o d b o o d b o b o d o b o d o b o d b o o d b o o d b o d o o b o d o b o d o b o d b o o d b o o d b o b o o b o d o b b o o d b
Well, this looks to be a trouble one. It seems to have 2 or even 3 patterns inside a bigger pattern. I can’t imagine if there is really something that could be done “automatically” other than blend the all fields to keep the motion smooth.



Well that is it. There are many more “weird” examples but I believe those are more than enough...


Quote:
and lots of other weird 'telecing' patterns
I've seen serveral ones so far!
That’s the problem... and I don’t know what to do with these so different patterns (if there is something that can be done).

Quote:
please post a short sample of unprocessed (no resizing, no deinterlacing, either direct stream copied or chopperXPed) video, which shows the problems.
Well, there isn’t really one problem, just my ignorance in how to deal with all these different interlaced sources. I would love to have your opinion on how I should process the ones that I posted above and, if it’s possible, a general approach on how to work with any other interlaced source. I know that this would take a lot of writing, but I would be really thankful with just some tips and clues.

Even if you could post some script examples would be great!
As “Scharfi's scripts are the best ones!”
(yes I read that thread too and even used the apostrophe correctly )

As I said, I have many music videos to deal with. Please, tell me if you want a sample of any specific example that I posted above and I will happily find a way to place a link here.

Thanks a lot!
Reply With Quote
  #30  
10-20-2004, 11:57 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rds_correia
Sorry for bumping in like this guys.
"Bump in" at will!!
You are the most welcome Rui!


Quote:
Most forums have good guides on this subject.
But the problem is, most forums only post pictures for comparison.
I think as a big noob I would need a very small 5 seconds movie to load into VDubMod and start analysing it myself.
Because you give great explanations but I can only imagine what you're talking and watching a picture ain't the same thing as watching 100 or 150 motion pictures and see how those behave.
So here's what I'm going to do (unless someone can show me a place with what I'm about to do).
Tonight I'm going to start a new thread asking for users with the most common types of interlaced sources to post some small clips with 5 to 10 seconds and 352x288 resolution.
Then I would ask you guys to go over there and point what is what and what methods should we use to encode when going from NTSC to PAL and the opposite.
I think that is a great idea
Did you start that thread aready?
Reply With Quote
  #31  
10-20-2004, 11:59 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Damn!, my eyes hurt muaddib
All I can seee is o d b o o d b o o d b o b o d o b o d o b o d o d o d b o o d b o o d b o b o d o b o d o b o d o d o d b o o d b o o d b o b o d o b o d o b o d b o o d b o o d b o d o o b o d o b o d o b o d b o o d b o o d b o b o o b o d o b b o o d b

-kwag
Reply With Quote
  #32  
10-21-2004, 12:14 AM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
  #33  
10-31-2004, 01:49 AM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Well, I did the post talking to scharfis_brain, but I believe he must be busy these last days.
If anyone has tips or comments to do about those kinds of sources, please help me!

Until now my situation is like this:
- If the source has a standard telecine pattern, than I just make a standard IVTC.
- Anything else (that is interlaced) I use FieldDeinterlace and blend the fields, in order keep the motion smooth.

So… any ideas
Reply With Quote
  #34  
11-04-2004, 11:09 AM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
Hi muaddib!

This subject is very interesting and I'm waiting for scharfis_brain response too

I'm having a weird experience with ivtc:

I tried capturing a VHS with a collection of Goofy cartoons (Os maiores sucessos do Pateta).

Source: VHS, NTSC
Capture: 720x480 MPEG-2 I-only 8Mbps with an old ATI AIW, zero frame drops. Audio mp2 @ 48 kHz.

With a quick visual inspection, you can tell it's got an almost steady telecined pattern. The only exceptions are the transitions from one story to the next, where you have some weird hybrid frames - wipes from/to solid colors, where the wipe is interlaced overlayed above the telecined cartoon. Since these transistions are very quick, I don't mind if they're left with a little combing, anyway.

So I thougth it would be easy to ivtc with Telecide/Decimate (decomb).

Created a .d2v (since the capture is in mpeg) and loaded in an avs script. dgmpgdec 1012, avisynth 2.55

Following the tutorial that comes with Decomb511.dll, I checked the frame order, which is top first for this card.

The line

Telecide(order=1,guide=1,post=0,show=true)

confirmed the visual inspection (steady pattern except for the wipes).

So up to now:

Telecide(order=1,guide=1)

The preview in VirtualDubMod showed no more big combing, but it was not perfect. The edges were "jagged", post processing with Telecide didn't help. Since this is a cartoon the edges are very evident.

I then quit the avs script, load the file directly in virtualdubmod and used Telecide for vd (everything default). The lines were PERFECT! Solid, smooth edges Except, of course, the wipes



What am I doing wrong? Why does the telecide for vd looks ok and telecide for avs looks bad? Maybe it's a color space conversion somewhere messing with the ivtc?
Reply With Quote
  #35  
11-04-2004, 11:14 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Try with the parameter blend=true in Telecide().
Reply With Quote
  #36  
11-05-2004, 07:38 AM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
OOOPS

I solved it...

There was a "SwapFields()" line left behind from another incarnation of the script. Removing it everything is fine now.

Sorry...
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
TMPGEnc: SmoothDeInterlace in my script the viking Video Encoding and Conversion 2 10-17-2004 05:28 PM
TO use Use ConvertToYuY2() Or Not? Major Video Encoding and Conversion 18 09-20-2004 01:42 PM
Avisynth: Converttoyuy2() jorel Avisynth Scripting 49 03-15-2004 01:40 PM
Recording Video with Smoothdeinterlace? mikcek Video Capturing / Recording 5 03-01-2004 06:34 PM
ConvertToYUY2() CaLaFaT Convertir y Codificar Video (Español) 5 07-14-2003 12:48 AM




 
All times are GMT -5. The time now is 12:41 AM  —  vBulletin © Jelsoft Enterprises Ltd