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. |
|
|
#3 | Link |
|
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,385
|
@AzraelNewtype, dont be cruel, let the lad post his script, we all want to see it.
![]() EDIT: No seriously cg2916, post the script. Anybody can make mistakes or mis-assumptions, and I guarantee it will not be terminal.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by Guest; 19th August 2012 at 14:06. Reason: 4 |
|
|
|
|
|
#4 | Link |
|
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,406
|
With utmost probability, it's a case of one of the most-common misunderstandings: inherent last, and re-assignment of variables.
WRONG: Code:
vid = avisource(...) vid.trim(123,4567) return(vid) Correct: variant #1: Code:
vid = avisource(...) vid.trim(123,4567) return(last) Correct: variant #2: Code:
vid = avisource(...) vid = vid.trim(123,4567) return(vid) Correct: variant #3: Code:
avisource(...) trim(123,4567) return(last)
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
|
|
|
|
|
#5 | Link |
|
Registered User
Join Date: Jun 2011
Posts: 6
|
Code:
video = AviSource("C:\Users\Patricia\Videos\originaldvdrip.avi")
Trim(video,100,0)
Amplify(video, 4)
deVCR(video, 30)
Sharpen(0.8)
ConvertToYUY2()
FixLuminance(50, 1000)
ConvertToYV12()
MDeblock()
function DetectVCRLines(clip c,int threshold)
{
spacial_data = GeneralConvolution(ConvertToRGB(c),0,"0 -1 0 0 2 0 0 -1 0")
bar_data = ConvertToRGB(BilinearResize(spacial_data,16,c.height))
st_data = Overlay(bar_data,Trim(bar_data,1,0),mode = "subtract")
st_data2 = Greyscale(Levels(st_data,threshold,10.0,threshold+1,0,255,coring = false))
st_data3 = Greyscale(Levels(st_data2,127,10.0,128,0,255,coring = false))
st_data4 = Overlay(st_data3,st_data3,y = -1, mode = "add")
return PointResize(st_data4,c.width,c.height)
}
function deVCR(clip c,int threshold)
{
mybars = DetectVCRLines(c,threshold)
return Overlay(c,Trim(c,1,0), mask = mybars,greymask = true)
}
Last edited by cg2916; 20th August 2012 at 23:20. Reason: Easier to read |
|
|
|
|
|
#8 | Link |
|
Guest
Join Date: Jan 2002
Posts: 21,901
|
Let's be kind and actually give him a solution:
Code:
video = AviSource("C:\Users\Patricia\Videos\originaldvdrip.avi")
Trim(video,100,0)
Amplify(4)
deVCR(30)
Sharpen(0.8)
ConvertToYUY2()
FixLuminance(50, 1000)
ConvertToYV12()
MDeblock()
|
|
|
|
|
|
#10 | Link |
|
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,406
|
That script looks like it must work. Are you sure you got the trim() logic right? Trim(100,0) means "discard frames 0-99, keep frames 100 to [EndOfVideo]".
(Sorry if it's a dumb question, but since I don't see any problem in neuron's script, I have to ask that.)
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) Last edited by Didée; 21st August 2012 at 01:35. |
|
|
|
|
|
#13 | Link |
|
Guest
Join Date: Jan 2002
Posts: 21,901
|
Try removing all these lines and tell us the result:
Amplify(4) deVCR(30) Sharpen(0.8) ConvertToYUY2() FixLuminance(50, 1000) ConvertToYV12() MDeblock() Your script will be just: video = AviSource("C:\Users\Patricia\Videos\originaldvdrip.avi") Trim(video,100,0) You can also try: AviSource("C:\Users\Patricia\Videos\originaldvdrip.avi") Trim(100,0) Last edited by Guest; 21st August 2012 at 14:20. |
|
|
|
|
|
#14 | Link |
|
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,406
|
Wild guess: If the very-last line (not posted here) is again "return(video)", well, then ...
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
|
|
|
|
|
#15 | Link |
|
Registered User
Join Date: Nov 2011
Posts: 63
|
Someone who knows "arcane stuff" like Fixluminance (only mentioned but non detailed in the docs) and uses a not often mentioned Mdeblock can't use Trim?
Copy & paste ok but only finding the original script requires experience... |
|
|
|
|
|
#16 | Link | ||
|
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
Quote:
|
||
|
|
|
|
|
#19 | Link | |
|
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
However, be aware that reading the documentation can lead to understanding how Avisynth works!
__________________
Groucho's Avisynth Stuff |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|