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 12th December 2009, 05:40   #1  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
Advice need. Append video in AviSynth.

code:
#
SetMemoryMax(1024)
#
# PLUGINS
SetWorkingDir("C:\system\Knot\AviSynthPlugins\")

import("!Allinclude.avsi")
import("srestore2.avsi")

# SOURCE
mpeg2source("H:\Encoding\test.d2v", cpu2="oooooo", info=3)
a=colormatrix(interlaced=true, hints=true)
pa=a.trim(0, 28053).animeivtc(mode=1,aa=0)
pb=a.trim(28054, 28110).TempGaussMC_beta1u().srestore2(frate=23.976)

return (pa+pb)#.crop(8,0,-6,0).Spline64Resize(880,496)

pb is added correctly to pa


#
SetMemoryMax(1024)
#
# PLUGINS
SetWorkingDir("C:\system\Knot\AviSynthPlugins\")

import("!Allinclude.avsi")
import("srestore2.avsi")
# SOURCE
mpeg2source("H:\Encoding\test.d2v", cpu2="oooooo", info=3)
a=colormatrix(interlaced=true, hints=true)
pa=a.trim(0, 28053).animeivtc(mode=1,aa=0)
pb=a.trim(28054, 28110).TempGaussMC_beta1u().srestore2(frate=23.976)
pc=a.trim(28111, 0).animeivtc(mode=1,aa=0)
return (pa+pb+pc)#.crop(8,0,-6,0).Spline64Resize(880,496)

pb is absent in video
Why it is impossible to add a piece (pb)?
Vitaliy Gorbatenko is offline   Reply With Quote
Old 12th December 2009, 07:11   #2  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
SRestore2 is same as SRestore, but without memory leak.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 12th December 2009, 07:23   #3  |  Link
MadRat
Registered User
 
MadRat's Avatar
 
Join Date: Jan 2008
Posts: 110
Normally when you append videos you do it like this:

Code:
video1 = mpeg2source("filenameA.ext")
video2 = mpeg2source("filenameB.ext")
video3 = mpeg2source("filenameC.ext")

finalvideo = video1 ++ video2 ++ video3
I'm doing this off the top of my head so I hope I don't have it wrong.
MadRat is offline   Reply With Quote
Old 12th December 2009, 10:56   #4  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
That's just the point! I cannot add clips in to one. The second is lost. return(a+b) work! return(a+b+c) don't work.

If not to use difficult functions - that so works:

pa=a.trim(0, 28053)
pb=a.trim(28054, 28110).Invert()
pc=a.trim(28111, 0)

return (pa+pb+pc)

syntax error - Does not appear and on an exit I have the necessary number of frames..

Last edited by Vitaliy Gorbatenko; 12th December 2009 at 11:34.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 12th December 2009, 11:39   #5  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
My memory leak fix has now been incorporated in the official SRestore version. I see that my srestore2 has been renamed srestore_inside to avoid confusion. (Incidentally, it doesn't avoid the use of ScriptClip, it just makes the ScriptClip string very much smaller.)

Vitaliy, can you confirm you have a self-consistent srestore function (perhaps renamed by you to srestore2?).
When you say pb is missing, what do you mean exactly? Does the total framecount match only pa+pc?
Gavino is offline   Reply With Quote
Old 28th December 2009, 19:06   #6  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
Sorry for late answer... Yes, with official version the same situation.
pb missing - i'm see in stream pa and pc part.

And it's not FPS problemm:
f_int=colormatrix(interlaced=true, hints=true)
a=f_int.trim(0, 1177).animeivtc(mode=1,aa=0).AssumeFPS(23.976)
b=f_int.trim(1178, 1243).TempGaussMC_beta1u().srestore(frate=23.976).AssumeFPS(23.976)
c=f_int.trim(1244, 0).animeivtc(mode=1,aa=0).AssumeFPS(23.976)
a+b+c

don't work too.

Last edited by Vitaliy Gorbatenko; 28th December 2009 at 19:08.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 29th December 2009, 11:29   #7  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Perhaps the problem is with animeivtc - it may be that it doesn't work if called more than once in a script.
Gavino is offline   Reply With Quote
Old 31st December 2009, 23:52   #8  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
1 - why don't you use something like this to avoid unnecessary multiple calls of the same function (for a starter, it wastes less memory)?:
Code:
ivtced = f_int.animeivtc(mode=1,aa=0)
bobbed = f_int.TempGaussMC_beta1u().srestore(frate=23.976)

ivtced.trim(blah)+bobbed.trim(blah)+ivtced.trim(blah)
2 - why do you need to do bob+use blend-aware decimation on a section and not the others?
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 6th January 2010, 09:27   #9  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
1. I'm not very smart enough... In this chain of filters is difficult to determine from what and at what frame is cut, so wanted to cut the source, and then perform deinterlacing.

2. video source has mastering errors (or codec bug...) most 3:2 and some parts pure interlaced..

Last edited by Vitaliy Gorbatenko; 6th January 2010 at 09:50.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 6th January 2010, 19:29   #10  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Can you send a small sample (5-10mb) of the unprocessed source? I'd like to check those interlaced sections.
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 7th January 2010, 11:55   #11  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
Short sample here : http://www.mediafire.com/?micxtojzoz0
Frames 454-498 are not normal.

Last edited by Vitaliy Gorbatenko; 7th January 2010 at 12:04.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 8th January 2010, 15:55   #12  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
heh, I see what you mean. Looks like they added the "shaking" after applying 3:2 pulldown, creating 30i motion.

-I wouldn't recommend going to 24fps, as you have 60fps (after bobbing) worth of motion
-Creating a VFR clip would be the way to go imo.
I'm having a problem detecting the 30p sections with tdecimate because of the peculiar way it was done, so I'll have to ask in tivtc's thread.

edit - I created a new cfr mode for you. http://www.sendspace.com/file/nt1n7z Since it won't really matter and won't be noticed that frames are dropped since the motion is only "frame shaking", try this :
Code:
animeivtc(mode=1,e1=454,i1=503,e2=628,omode=1,credconv="drop")
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)

Last edited by thetoof; 8th January 2010 at 16:06.
thetoof is offline   Reply With Quote
Old 9th January 2010, 09:55   #13  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
At a lot better! Could you make these changes on an ongoing basis. Because these errors occur often enough though, but trouble with them very much.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 9th January 2010, 19:00   #14  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
I don't get what you want to say

Which changes, which errors?
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 9th January 2010, 20:40   #15  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
Sorry for my bad english... You created a new cfr mode for me.. I want this mode remains in FUTURE versions .. Since these moments interlacing from time to time appear in the source material ...
Vitaliy Gorbatenko is offline   Reply With Quote
Old 9th January 2010, 21:09   #16  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Yes, sure. As you might have noticed, I sent you the "dev copy", meaning it is the script I'm currently working on. There are a few things to test and correct for vfr and once it's done, the changes and corrections (for both cfr and vfr) will be uploaded as 2.01.
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof 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 17:43.


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