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. |
|
3rd July 2016, 16:04 | #1 | Link |
Registered User
Join Date: Jun 2016
Posts: 1
|
Help needed with avs to make smooth video!
Hello!
I am trying to encode a smooth looking video with only 24 or 25 frames per second, using a 60 frames per second source. I saw this video (https://youtu.be/jfwInyBIgQY) and thought it looked really smooth for only 30 fps, and all it took was some motion blur. In the video description the creator mentioned that the same avs script as a guy named Ross Scott was used, wich you could get from his DVD. This DVD however is no longer available for purchase, nor could I find the script anywhere else. When I tried to replicate the youtube video creators result, with a similar recording I made myself, I used the example code from the mvtools2 documentation. Code:
superblur = MSuper(pel=2) bv_blur = MAnalyse(superblur, isb = true, truemotion=true) fv_blur = MAnalyse(superblur, isb = false, truemotion=true) MFlowBlur(superblur, bv_blur, fv_blur, blur=15, prec=1) I then moved on to try it with 25 frames per second, instead of 30 frames per second that I used in my earlier experiment, wich of course did not give me the smooth looking video I was looking for, but better then it does without motion blur. I then thought of interpolation, so I once again tried an example code from mvtools2 documentation. Code:
super = MSuper() backward_vectors = MAnalyse(super, isb = true, delta=2) forward_vectors = MAnalyse(super, isb = false, delta=2) inter = MFlowInter(super, backward_vectors, forward_vectors, time=50, ml=70) # Assume bad frames are 50 and 60 trim(0,49) ++ inter.trim(49,-1) \ ++ trim(51,59) ++ inter.trim(59,-1) ++ trim(61,0) I later noticed that a function called MBlockFps, wich is used for changing the fps, also do motion compensation, and also do interpolated pictures. So I thought this might work better than ChangeFPS, wich I had been using earlier, but I can not get it to work. I am going to post my avs script here, and hope that I can get some help getting the best possible result. Thank you, in advance! Code:
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\mvtools2.dll") clip = AviSource("D:\Media\Inspelningar\inmatning2.avi").ConvertToYV12 # ChangeFPS(clip, 25) superfps = MSuper(pel=2) bv_fps = MAnalyse(super, isb = true, truemotion=true) fv_fps = MAnalyse(super, isb = false, truemotion=true) MBlockFps (clip, superfps, bv_fps, fv_fps, 25, 1, 0, 0, blend=false) # I have no Idea how to get this working Spline64Resize(1280, 720) # super = MSuper() # backward_vectors = MAnalyse(super, isb = true, delta=2) # forward_vectors = MAnalyse(super, isb = false, delta=2) # inter = MFlowInter(super, backward_vectors, forward_vectors, time=50, ml=70) # Assume bad frames are 50 and 60 # what does this mean? # trim(0,49) ++ inter.trim(49,-1) \ # ++ trim(51,59) ++ inter.trim(59,-1) ++ trim(61,0) superblur = MSuper(pel=2) bv_blur = MAnalyse(superblur, isb = true, truemotion=true) fv_blur = MAnalyse(superblur, isb = false, truemotion=true) MFlowBlur(superblur, bv_blur, fv_blur, blur=15, prec=1) FadeIn(13) FadeOut(13) A while ago I found Ross Scott's method for motion blur: Code:
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\mvtools2.dll") avisource("D:\Media\Inspelningar\inmatning.avi").assumeFPS(180).ConvertToYV12(matrix="Rec709", chromaresample="spline16") super=MSuper() backward_vectors = MAnalyse(super, isb = true) forward_vectors = MAnalyse(super, isb = false) MFlowBlur(super, backward_vectors, forward_vectors, blur=100).TemporalSoften(1,255,255,50,2).selectevery(6,1) I however want to record at least 180 fps in realtime, wich would not have been a problem for me would it not be for fraps capture limit. I see SVP tests all the time when people convert 24p material into 60p material. Would it be a crazy idea to interpolate frames to then use them for the purpose of motion blur? I have mentioned interpolation before, but I never had any success with it. If someone could help me to get it working I would be most grateful. Last edited by Reignendt; 28th November 2016 at 23:12. Reason: Update |
Tags |
avs, blur, interpolation, motion, mvtools |
Thread Tools | Search this Thread |
Display Modes | |
|
|