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. |
![]() |
#1 | Link |
Registered User
Join Date: Jan 2002
Posts: 226
|
SVP-like frame interpolation?
I'm almost certain this has been answered elsewhere, but I had difficulty finding an answer. The software SVP (Smooth Video Project) does a pretty impressive job of generating frames based on motion in order to increase the framerate of content, however its focus is for real-time playback. Is there some rough equivalent of this for Avisynth or some other software to generate the frames as a new video; not in real-time, but as some sort of script to be processed?
So say I had a 30fps clip that I wanted to convert to 60fps (or slow down more for slow motion), but instead of doubling frames, I wanted the computer to use motion analysis to take its best guess in generating new ones. How would I go about doing that? Please feel free to dumb this down for me (like posting a sample script), I often get hung up on simple syntax errors. Thanks in advance. |
![]() |
![]() |
![]() |
#3 | Link | |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,067
|
Here is a "poor man's" fps conversion function by johnmeyer.
jm_fps.avsi Quote:
Maybe you are interested in a standalone tool for slow motion using different methods for changing frame rates. Have a look here: https://forum.doom9.org/showthread.p...31#post1789031 Cheers manolito Last edited by manolito; 13th May 2018 at 21:34. Reason: improved params for MSuper |
|
![]() |
![]() |
![]() |
#4 | Link |
Quality Checker
Join Date: Aug 2013
Posts: 279
|
and there this :
https://github.com/gdiaz384/frameTools
__________________
I love Doom9 |
![]() |
![]() |
![]() |
#5 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,835
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#6 | Link | |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,655
|
Quote:
You are absolutely correct, however, that it slows down the conversion (it is about 5x slower). |
|
![]() |
![]() |
![]() |
#7 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,835
|
It always produced less artefacts for me when doing fps conversion.
DCT=0 is also very bad on fades. You can use other modes if DCT=1 is to slow (eg. DCT=3). DCT=0 is the simplest mode and it's for speed not quality. |
![]() |
![]() |
![]() |
#8 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,067
|
This made me curious so I dug out my old fps conversion torture clip.
I converted it to half speed using dct values of 0, 1 and 3. Download the resulting clips here: http://www23.zippyshare.com/v/L4HbbPzJ/file.html Conversion speed was 1.3 fps for dct=0, 0.3 fps for dct=1 and 1.0 fps for dct=3. Speed for dct=1 is forbiddingly slow, there is no way I will ever use this. And watching the results I have to agree with johnmeyer: Using a dct value of 0 produces less artifacts than using values of 1 or 3, and it is faster. Cheers manolito |
![]() |
![]() |
![]() |
#9 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 4,926
|
dct 1_test_speed=50%.mkv
most stable temporal result on the first view in many problematic areas, most viewers would rate it the highest MOS of the 3 results 0 and 3 it becomes harder to percept the temporal difference but 1 is pretty obvious. I would predict everyone of the test viewers with ok visuals would rate dct 1 the most "annoying free result" That you don't percept the difference let me wonder about your overall script results ![]() Though overall all 3 have to much temporal problems and overall can only be rated BAD by everyone as such ![]() For Marketing i would present it side by side that way the difference would be very fast visible to even a higher amount of viewers and maybe at another 50 slowmo to make it even more obvious ![]() So overall you could also simplify it further in 2 presets Slow = 1 / Fast = 3 if Slow,Medium,Fast would be usable maybe but for the the overall testcase presented here i would say nope useless Which makes me wonder how AMDs,Intels and Nvidias FRC would compare here by now vs Mvtools or even Kronos ![]()
__________________
all my compares are riddles so please try to decipher them yourselves :) It is about Time Join the Revolution NOW before it is to Late ! http://forum.doom9.org/showthread.php?t=168004 Last edited by CruNcher; 11th March 2017 at 13:12. |
![]() |
![]() |
![]() |
#10 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,835
|
Quote:
This is definitely not a case for me, but I'm using vs (but this should not matter). I also used different/simpler script, so maybe this is the reason (again shouldn't be). I've converted 500h worth of footage and done few days testing before this. Used DCT=3 at the end as a compromise. I will try this script, maybe it has some magic ![]() Last edited by kolak; 11th March 2017 at 15:27. |
|
![]() |
![]() |
![]() |
#11 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,067
|
Spent some more time tuning the script parameters for this particular test clip. Please keep in mind that this clip is extremely demanding, usually I would never recommend to use this script on anime.
What I found out is that a dct value of 3 does give better results on the control panel to the left, but it does not improve the vertical grille to the right. What does improve this grille is using a larger block size of 32 for MAnalyze. For MRecalculate I kept the original block size of 8, increasing it to 16 gave worse results. So for this particular clip my preferred settings are dct =3 and blksize = 32 for MAnalyse. The resulting file is here: http://www59.zippyshare.com/v/l6Ouh8fw/file.html In my experience any settings which work for this clip will also give good results for other sources. I need to test if the increased block size will indeed work for HD sources... ![]() Cheers manolito Last edited by manolito; 11th March 2017 at 20:17. |
![]() |
![]() |
![]() |
#12 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,835
|
I quickly tested this script on one of my samples and it's not any better than my one. Some frames are better, others worse.
I use block 32 with overlap 8 as this is better (again- for me) on HD sources. My sources are real videos- TV stuff. I also asked jackoneill to implement even bigger block sizes (for vs mvtools), but this seams to not improve quality as much as I expected. There are some other issues with this bigger block sizes which seams to be related to mvtools internals. Last edited by kolak; 12th March 2017 at 16:11. |
![]() |
![]() |
![]() |
#14 | Link | |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 4,926
|
Quote:
Though this indicates their must be a better result hiding in between ![]() if you split all the best parts and put them back together you would have a overall better result, from the timing this could even work. Temporal i can split this in 3 different parts that show different problems Wherby the amount of problems are different from each case. In this test case you could say you have 3 scene parts Beginning,Middle and the End part and depending on your setup now they come out different the beginning part never completely fixed the middle and end part with some very good overall results except in your latest result the end part comes out perceptually much worse then in any result before, therfore though the middle part is perceptually better (no fast texture failure). Logic now says take all the good parts and put them together and you have a pretty good overall result. Which also could indicate you need something more adaptively clever to get this result in 1 try,without putting it manually together ![]() My reasoning still stays dct 1 gives the overall best result except 1 difference now to the latest output therefore 1 part in the latest output is now totally ending up bad perceptually. i would also weight the temporal failure of the latest result in the end part higher even critical now then the small problem in the middle part on the dct 1 result before (fast texture failure).
__________________
all my compares are riddles so please try to decipher them yourselves :) It is about Time Join the Revolution NOW before it is to Late ! http://forum.doom9.org/showthread.php?t=168004 Last edited by CruNcher; 18th March 2017 at 12:17. |
|
![]() |
![]() |
![]() |
#15 | Link | |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,067
|
Thanks for looking into it...
Quote:
![]() The best results for this clip came from using dct=1, but this is so slow that it is not really usable for me. Of course you can optimize the results by finetuning the params for each and every source, maybe even split the source into several parts. But this is not what I'm after. I want a script which works well for the vast majority of sources without tweaking the params. And I believe that johnmeyer's original params do an excellent job for most sources (maybe use dct=3 instead of 0). Way better than MotionProtectedFPS. And keep in mind that I am not interested in watching still frames. I want to just watch the movie, and it should look better than using ChangeFPS or ConvertFPS. I do not mind some motion artifacts as long as they do not get too annoying. And I use this only on film, not on anime. Plus I mostly use this type of fps conversion for PAL <-> NTSC conversion, not for slow motion. Cheers manolito |
|
![]() |
![]() |
![]() |
#16 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 4,926
|
yes but overall this result could endup in a catastrophe now if it creates the same temporal issues for every source that heavy perceptual jitter is really annoying for moving objects like those angels it destroys everything and i really wonder how you can percept it now as better then anything before.
you fixed the texture problem yes but this is hyper annoying now in motion compared to that small glitch that was only visible mere milliseconds before. Good thing in the end you at last saw the problems on the panel with the light scan ![]() Also there are much much more problems to think about you using AVC currently as output you don't know yet how this will be perceived actually with HEVC/VP9 for example it could come out even worse (better perceptible). It partly though could be also get fixed in the other direction as internaly a hevc encoder is smarter then mvtools and you might throw out extra resources for nothing ![]()
__________________
all my compares are riddles so please try to decipher them yourselves :) It is about Time Join the Revolution NOW before it is to Late ! http://forum.doom9.org/showthread.php?t=168004 Last edited by CruNcher; 18th March 2017 at 13:00. |
![]() |
![]() |
![]() |
#17 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,067
|
I don't know but I think you are being a little too critical. I showed the converted clips to some of my friends who are journalists working for Deutsche Welle TV. They do have trained eyes, but just like me they focus on the overall visual impression, and all of them agreed that the MVTools based conversions were quite pleasing to watch.
For this particular clip my ultimate conversion is here: http://www82.zippyshare.com/v/7bRTiwej/file.html dct=1 and blocksize for MAnalyse = 32. Way too slow, but I cannot find any annoying flaws. My main problem with these fps conversion methods are hard coded subs or movie credits. The letters mostly get warped to a point where they are painful to watch. But this is the only occasion where I would consider splitting up the source and convert the different parts separately... Cheers manolito |
![]() |
![]() |
![]() |
#18 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,835
|
MvTools are almost as good as Alchemist or Tachyon which are used in braodcast and cost small fortune.
It just would be nice to have it ported to GPU, like svp does. SVP made to many speed shortcuts so quality is not as good. |
![]() |
![]() |
![]() |
#19 | Link | |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 4,926
|
Quote:
beginning = nice middle = nice (with a small new glitch instead of the complete texture fail we see a big shift now) end = horrible (full of motion perceptible fails, heat haze effect) ![]()
__________________
all my compares are riddles so please try to decipher them yourselves :) It is about Time Join the Revolution NOW before it is to Late ! http://forum.doom9.org/showthread.php?t=168004 Last edited by CruNcher; 22nd March 2017 at 04:18. |
|
![]() |
![]() |
![]() |
#20 | Link | |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,067
|
Quote:
The human brain works differently. Everybody just sees the two large angels in the foreground, and they do not display motion artifacts. The information in the background is pretty much discarded because the brain determines that this information is not important. (This is gone by the "Formatio Reticularis" which works like a spotlight). Cheers manolito |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|