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 30th August 2018, 21:12   #721  |  Link
SaurusX
Registered User
 
Join Date: Feb 2017
Posts: 135
Quote:
Originally Posted by Katie Boundary View Post
What if I'm working with animation? Specifically Transformers Armada and The Real Ghostbusters
Some of those Real Ghostbusters episodes have 3+ frames blended. Nothing is going to undo that.
SaurusX is offline   Reply With Quote
Old 30th August 2018, 22:00   #722  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by Katie Boundary View Post
So what's best to use for a botched NTSC -> NTSC conversion?
Still SRestore. But rather than allowing SRestore to set the default framerate (25fps for PAL sources poorly converted to NTSC and 23.976 for film sources poorly converted to PAL), you have it set for 23.976. An example:

Bob ###use your favorite bobber
Srestore(Frate=23.976)


A sample will still prove useful. However, if it's as SaurusX says you might get vastly improved, but still far from perfect results. For Srestore to work well, for every field pair you need at least one of the fields 'clean' (unblended). Depending on how much work you're willing to do, you can go through it afterwards manually to fix it with interpolation or freezeframing (since it's animation).
manono is offline   Reply With Quote
Old 30th August 2018, 23:19   #723  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
Quote:
Originally Posted by Katie Boundary View Post
So what's best to use for a botched NTSC -> NTSC conversion?
Post. A. Sample.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 30th August 2018, 23:56   #724  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by manono View Post
Still SRestore. But rather than allowing SRestore to set the default framerate (25fps for PAL sources poorly converted to NTSC and 23.976 for film sources poorly converted to PAL), you have it set for 23.976. An example:

Bob ###use your favorite bobber
Srestore(Frate=23.976)
Will it still de-blend if I need 60hz output?

Quote:
Originally Posted by manono View Post
For Srestore to work well, for every field pair you need at least one of the fields 'clean' (unblended). Depending on how much work you're willing to do, you can go through it afterwards manually to fix it with interpolation or freezeframing (since it's animation).
By field pair, do you mean frame? Both shows were edited on tape, so they have things like natively 60hz effects and sometimes orphaned fields around scene changes. What's the best solution for deblending such content?
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 31st August 2018, 00:24   #725  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by Katie Boundary View Post
Will it still de-blend if I need 60hz output?
It'll do the best it can, yes. But the output won't be 60fps, not with the script I posted earlier.

Quote:
By field pair, do you mean frame?
I meant field pair, the top and bottom fields that made up the original frames before bobbing. After bobbing, yes, it would be the frame pairs - the even and odd frames each forming a pair. One from each pair has to be clean for SRestore to do its job properly.

If you want 59.94fps, then you might bob it followed by trying CDeblend. No promises, though. In the absence of a sample, neither I nor anyone else can try out different ideas.
manono is offline   Reply With Quote
Old 31st August 2018, 00:31   #726  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
Quote:
Originally Posted by Katie Boundary View Post
Will it still de-blend if I need 60hz output?
It's generally used to deblend PAL converted to NTSC with field blending, or NTSC field blended from PAL, so you end up with 23.976fps or 25fps progressive.

Quote:
Originally Posted by Katie Boundary View Post
By field pair, do you mean frame? Both shows were edited on tape, so they have things like natively 60hz effects and sometimes orphaned fields around scene changes. What's the best solution for deblending such content?
It's usually converted by blending fields, not frames, and due to the way it's done, when the top fields have blending the bottom fields don't and vice versa, so after bob-interlacing and the fields are interpolated to frame height, there should always be unblended frames to keep.

This field blends NTSC to PAL, although you'd probably want to use a better bobber..

AviSource("NTSC_clip.avi")
Bob(height=576)
BicubicResize(720,576)
ConvertFPS(50)
SeparateFields()
SelectEvery(4,0,3)
Weave()

If SRestore has a hard time with animation due to it having lots of duplicate frames (it works very well for video), you can try deblending with one of these functions, but it requires some trial and error to find the best "select" value, and if the blending pattern changes (it usually doesn't), you'll have to adjust it where it breaks.
https://forum.doom9.org/showthread.p...02#post1848202

Edit: Damn! manono beat me to it.
hello_hello is offline   Reply With Quote
Old 31st August 2018, 01:36   #727  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by manono View Post
It'll do the best it can, yes. But the output won't be 60fps, not with the script I posted earlier.
I mean if I set frate=59.94, will it still de-blend?

Quote:
Originally Posted by manono View Post
I meant field pair, the top and bottom fields that made up the original frames before bobbing. After bobbing, yes, it would be the frame pairs - the even and odd frames each forming a pair. One from each pair has to be clean for SRestore to do its job properly.
That sounds like a very elaborate way of saying "yes".

What I'm getting out of this is that Srestore is built upon the assumption that the content was originally 100% progressive, and it should not be applied to anything that was originally edited on tape and therefore has orphaned fields around scene changes, 60hz effects, etc. Is that accurate?

Quote:
Originally Posted by manono View Post
If you want 59.94fps, then you might bob it followed by trying CDeblend. No promises, though.


Quote:
Originally Posted by manono View Post
In the absence of a sample, neither I nor anyone else can try out different ideas.
I just got done digging through my TF Armada episodes. I still had some un-converted VOBs in there from last year, so I had to index them all and open them in Vdub to see if they were affected. They weren't. Only episodes 27-40 are blended, but the leftover Vobs were all from 41+, so I'll have to re-rip some stuff. Give me a few hours.

EDIT: oh, this is interesting. For The Real Ghostbusters, it looks like the ABC episodes and the syndicated episodes each have their own set of "wipes". Only the ABC episodes use the 60 hz wipes, but they're also the episodes that were transferred correctly. As for the syndicated episodes, Saurus is correct; they look like they've gone through multiple rounds of blending and should probably be written off as a lost cause. Ironically, the syndicated episodes have perfectly preserved openings. I'll give you an Armada episode.

EDIT 2: here's the blended version of the TF Armada opening www.sendspace.com/file/3ldeo2
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.

Last edited by Katie Boundary; 31st August 2018 at 02:34.
Katie Boundary is offline   Reply With Quote
Old 31st August 2018, 04:48   #728  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Ordinarily one wouldn't post an anime opening as a sample as they're often different from the body of the episodes. However, it's far from perfect but it's a definite improvement:

Yadifmod(mode=1, edeint=nnedi3(field=-2))
SRestore(Frate=23.976)


https://www.sendspace.com/file/7m07dp

It's 23.976fps because that's what it is. I see no benefit to making it 59.94FPS, although it can be done with:

SelectEvery(2,0,0,0,1,1)

placed at the end of the script. I didn't have much luck bobbing it and then trying to unblend that, keeping it at 59.94fps. Others might have different ideas and have better luck than I.

Quote:
What I'm getting out of this is that Srestore is built upon the assumption that the content was originally 100% progressive, and it should not be applied to anything that was originally edited on tape and therefore has orphaned fields around scene changes, 60hz effects, etc. Is that accurate?
It's far and away the best filter when working with field-blended garbage. Only the worst fly-by-night companies take film and then field-blend it to get 29.97fps out of it. Editing as video doesn't mean field-blending afterwards. Not when they could have just hard telecined it. You've worked with all those sci-fi shows before with the 60Hz effects. Those companies didn't feel the need to ruin it by field-blending it. You could just bob those and be done with them. Not this crap.
manono is offline   Reply With Quote
Old 31st August 2018, 17:34   #729  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
Quote:
Originally Posted by Katie Boundary View Post
What I'm getting out of this is that Srestore is built upon the assumption that the content was originally 100% progressive, and it should not be applied to anything that was originally edited on tape and therefore has orphaned fields around scene changes, 60hz effects, etc. Is that accurate?
I'm pretty sure field blending can be applied to both interlaced video and progressive sources, and "orphan fields" would be blended along with the rest. Using the method I posted earlier, interlaced video would be bob deinterlaced first, converted to a new frame rate with blending (50fps progressive for PAL), then fields are decimated to output interlaced video again (25fps or 50i for PAL).

I think it'd be unusual to field blend hard telecined sources, You'd convert them to a new frame rate from their progressive state.
hello_hello is offline   Reply With Quote
Old 1st September 2018, 20:23   #730  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Armada DOES have orphaned fields around scene changes and therefore interruptions in the pulldown pattern. They might not be apparent in the opening but they do exist. I can rip one of the clean episodes to prove it.

Quote:
Originally Posted by manono View Post
Editing as video doesn't mean field-blending afterwards. Not when they could have just hard telecined it.
Well, obviously. But that doesn't stop anyone from taking a finished episode with clean 60 hz or otherwise edited-on-tape content and then needlessly blending it anyway. That's the kind of content that I'm interested in de-blending right now.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 2nd September 2018, 20:19   #731  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
Quote:
Originally Posted by Katie Boundary View Post
Armada DOES have orphaned fields around scene changes and therefore interruptions in the pulldown pattern. They might not be apparent in the opening but they do exist. I can rip one of the clean episodes to prove it.
I believe you. DVDs are an interlaced format intended for CRTs expecting interlaced video. The TV draws the odd scanlines from the first field, then the even lines from the next field, and so on. As far as I know, "orphan fields" don't matter to an interlaced display because it has no concept of frames. It's only when you try to make frames.....

Anyway, I was simply saying the field blending conversion process wouldn't be concerned with orphaned fields.

Quote:
Originally Posted by Katie Boundary View Post
Well, obviously. But that doesn't stop anyone from taking a finished episode with clean 60 hz or otherwise edited-on-tape content and then needlessly blending it anyway. That's the kind of content that I'm interested in de-blending right now.
Where did your sample come from? If you compare the fields it appears to have been frame blended in places and it's 23.976 progressive, so maybe it was detelecined and the blending is the result blend de-interlacing combed frames, or something....

The original DVD source might be a different story, but I doubt you'll be able to fix that.
hello_hello is offline   Reply With Quote
Old 28th September 2018, 10:15   #732  |  Link
Kurogane
Registered User
 
Join Date: Jul 2011
Posts: 18
I've a problem w ith avs+

Code:
SetFilterMTMode("DEFAULT_MT_MODE", 2)
sanimebob()
srestore()
Prefetch(6)
Give me this error "I don't know what ''dm"means. Line 4 (Prefetch)"

- MaskTools2 - v2.7.31
- TIVTC - v1.0.11
- RgTools - v0.97.0
- GRunT - grunt-x64/1.0.1a
Kurogane is offline   Reply With Quote
Old 28th September 2018, 13:48   #733  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by Kurogane View Post
I've a problem w ith avs+

Code:
SetFilterMTMode("DEFAULT_MT_MODE", 2)
sanimebob()
srestore()
Prefetch(6)
Give me this error "I don't know what ''dm"means. Line 4 (Prefetch)"

- MaskTools2 - v2.7.31
- TIVTC - v1.0.11
- RgTools - v0.97.0
- GRunT - grunt-x64/1.0.1a
its known thing, you can't use mt (Prefetch) with any runtime function like srestore
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 28th September 2018, 19:01   #734  |  Link
Kurogane
Registered User
 
Join Date: Jul 2011
Posts: 18
Quote:
Originally Posted by real.finder View Post
its known thing, you can't use mt (Prefetch) with any runtime function like srestore
Any solution? even outside of MT not work.
Kurogane is offline   Reply With Quote
Old 28th September 2018, 22:09   #735  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by Kurogane View Post
Any solution? even outside of MT not work.
no solution for now (unless pinterf or anyone find fix for it)

what you mean outside of MT? you must not use Prefetch at all (remove it from the script) to make it work
__________________
See My Avisynth Stuff

Last edited by real.finder; 29th September 2018 at 14:41.
real.finder is offline   Reply With Quote
Old 29th September 2018, 12:54   #736  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
The links does not longer work. Does anyone have this plugin?
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 29th September 2018, 14:45   #737  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
Thank you Wolfberry
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 29th September 2018, 15:11   #738  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
@real.finder Why not push your scripts to github? It often feels like a quest to find the up to date version. Wouldn't it be easier for everyone?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 29th September 2018, 21:29   #739  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by ChaosKing View Post
@real.finder Why not push your scripts to github? It often feels like a quest to find the up to date version. Wouldn't it be easier for everyone?
cuz pastebin is easier for me (for now and before), but I was thinking about change to github but because of lack of time and sometimes laziness I didn't
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 29th September 2018, 21:36   #740  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
I can recommend GitKraken (it's free for non commercial projects) One click and it's on github. It's even faster than pastebin
It's very easy to use and has a nice gui. https://www.gitkraken.com/

You do not want to go back afterwards.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 29th September 2018 at 21:40.
ChaosKing is offline   Reply With Quote
Reply

Tags
mrestore, srestore

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 03:05.


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