Hi everyone,
I am looking for a tool which is able to convert 29.97 fps, 30 fps to 25 fps and vice-versa. Preferably in the batch because I have many files with different fps.
The resulting video should be smooth in terms of frames - no visible dropped-frames, no ghosting.
What would you recommend ?
Thanks
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 30 of 36
Thread
-
-
One can only ask "why"? If they aren't native 25fps, why? If they are films then they can be IVTC'd to 23.976fps and then speeded up to 25fps without dropped frames. Is there a sample available of one of these?
-
Hi,
I live in Europe where the standard is 25 fps. My camera captures at 25 fps. The smartphone captures video at 29.970 fps. I want to build a long video which contains segments taken from both camera and phone.
At the following link I uploaded a 8 secs video, for testing purposes. It is 29.97 fps footage taken from the phone. Please try to convert it at 25 fps without ghosting effect and keeping audio in sync.
https://mega.nz/#F!EVc00aJS!zhNbI6CnLs7RyaMorcB3WQ
Thank you -
-
JVRaines' suggestion of FrameRateConverter uses MVtools2.
That's generally not possible. Though FrameRateConverter and other optical flow (aka motion interpolation) filters can work fairly well with panning shots, they will resort to blending or generate gross distortions with complex motions. -
-
What's the target media?
if all else fails read the manual -
@pippas, @JVRaines Thank you for support. Your conversion to 25 fps looks adequate - there still might be some visible dropped frames during the motion- but I want to test a longer footage using your technique, to see if audio stays in sync. Therefore could you please elaborate the steps on how to perform the conversion, how to apply the script. I have never used AVIsynth or MVTools before.
The target media would be mp4 or m2ts, 25 fps. I am using NLE to edit these files. By the way, Vegas is not doing such great job when handling videos with different fps (or maybe I am missing something).
Is there any professional video fps converter (free/not free, does not really matter)?
Thx -
The length remains the same; the audio remains in synch.
Is there any professional video fps converter (free/not free, does not really matter)? -
OK.
I started using Avisynth with VirtualDubMod. I loaded the script provided here, in this thread, renamed it from txt --> avs (30 to 25fps sample script.avs), edited the first line:
avisource("test.mp4")
The script and the mp4 file are in the same folder.
Any attempt to open the avs file, in VirtualDubMod gives me the following error:
Avisynth open failure: AviFileSource couldn't open file "test.mp4" (C:\Users\.... line1)
Then, I see the other suggestion mentioned here: use FrameRateConverter filter for AviSynth. I downloaded the FramerateConversion script but this one has the extension *.avsi, not *.avs. What is the difference between avs and avsi ?
As I said, I am newbie for Avisynth......... -
I've had a similar issue, and opted to convert the 25 FPS footage to 29.97 FPS, rather than the other way around. I had other considerations (29.97 FPS part badly needed stabilization, which wouldn't have worked well with a framerate change), but generally speaking, isn't it the better choice, with regards to fluidity of playback ? (Adding duplicated frames should be less detrimental than getting rid of random frames, which is irreversible.) Is there a reason why you need / want 25 FPS ? Even if it's not standard, all software players and most hardware players should be able to handle 29.97 FPS.
This reply by StainlesS might interest you :
https://forum.doom9.org/showthread.php?p=1859267#post1859267
I have not yet tried this method, if I understand correctly, the idea is to choose which frames to duplicate or decimate based on their estimated level of relative motion; it also randomizes the time interval between duplications / decimations, making the resulting stutter less noticeable.
By the way, Vegas is not doing such great job when handling videos with different fps (or maybe I am missing something).
Any attempt to open the avs file, in VirtualDubMod gives me the following error:
Avisynth open failure: AviFileSource couldn't open file "test.mp4" (C:\Users\.... line1)
But in this case, it's normal, AVISource is meant to open AVI files, for MP4 files you could use FFVideoSource, which requires ffms2.dll, or LWLibavVideoSource which requires LSMASHSource.dll.
What is the difference between avs and avsi ?Last edited by abolibibelot; 25th Dec 2018 at 05:35.
-
You may need to take a little time to get acquainted with the concept of Avisynth...There are quite lot of guides online....
Maybe start here?: http://avisynth.nl/index.php/GuidesLast edited by pippas; 25th Dec 2018 at 05:29.
-
Actually I started here:
https://www.youtube.com/watch?v=RXByaCFgIHc
This tutorial is indicated on Avisynth's download VideoHelp webpage ("Avisynth video tutorials"). -
It will introduce ghosting or dropping frames (quite visible) when you toggle resample function.
I have not yet tried this method, if I understand correctly, the idea is to choose which frames to duplicate or decimate based on their estimated level of relative motion; it also randomizes the time interval between duplications / decimations, making the resulting stutter less noticeable.I feel like a newbie too, considering how vast and versatile that thing is...
But in this case, it's normal, AVISource is meant to open AVI files, for MP4 files you could use FFVideoSource, which requires ffms2.dll, or LWLibavVideoSource which requires LSMASHSource.dll.
And I don't think this forum is exclusively dedicated to Avisynth. Or ? -
Twixtor is commercial software that uses optical flow -- and is available for use with Vegas
See here: https://revisionfx.com/products/twixtor/ -
-
What you are seeing is less-smooth motion, which is to be expected in any video at a lower frame rate. FrameRateConverter does not drop frames.
AviSynth is an invisible server application. Applications which know how to talk to it, such as VirtualDub, hand it a script and AviSynth returns frames in a pseudo-filestream. Here is the script I used. It requires AviSynth plus the FFmpegSource, MaskTools, MVTools, and FrameRateConverter plugins.
Code:FFmpegSource2("test.mp4", atrack=-1) FrameRateConverter(25)
-
It does what every NLE does for frame rate conversions either :
1) duplicate or drop frames (smart resample off in vegas)
2) blend frames (smart resample on in vegas)
The 3rd method is 3) optical flow or interpolation , which are those mvtool2 derivatives or commerical options like twixtor . Most NLE's don't have this option by default. As jagabo mentioned above - some shots work ok, but you will get 100% definitely get bad artifacts such as ghosting, blobby edge morphing artifacts in other situations. It's not clean without lots of manual clean up work or user intervention of some sortLast edited by poisondeathray; 25th Dec 2018 at 11:34.
-
The only difference is that AVSI scripts, when located in AviSynth's plugins folder, will load automatically every time AviSynth is used. You typically use them to make often used functions available without having to manually import them into your scripts.
-
Where should I copy the dll files ? Or is something else I need to install ?
For instance, I have scripts I used recently where LSMASHSource is imported from MeGUI :
Code:LoadPlugin("C:\Logiciels autonomes\MeGUI\tools\lsmash\LSMASHSource.dll") LWLibavVideoSource("20151224_100029.m2ts", threads=1)
From “poisondeathray” :
Autoloading directory will attempt to autoload everything. If there is a problematic .dll, it will give you error message, even if it's not used in the script. That's why some people keep very clean autoload directory (sometimes empty). Some prefer to manually load everything (LoadPlugin). I keep minimal autoload (so in between; only frequently used items are autoloaded for me). Another reason is it's slower with more "junk" in the autoload directory to initialize avisynth, because everything is loaded.
And I don't think this forum is exclusively dedicated to Avisynth. Or ?
Question : is there a VirtualDub plugin for framerate conversion which is performing as well as the MVTools-based Avisynth functions ? This may be a tad more user-friendly...Last edited by abolibibelot; 25th Dec 2018 at 16:39. Reason: added quote
-
And I don't think this forum is exclusively dedicated to Avisynth. Or ?
And it has a curve as well. Because it is Python you can immediately have access to all moduls in Python, thousands of scripts available. You can have about 10 lines in the script to get graphical preview of your script yourself using opencv, etc., etc.Last edited by _Al_; 25th Dec 2018 at 17:08.
-
After intensive testing (including the file I have attached here - "test.mp4") I found out that Premiere will do the perfect conversion from 29.97 to 25fps, using Optical Flow. Unfortunately Vegas does not have this feature implemented(?) (yet?).
Thank you everyone for your suggestions! -
Good to know, maybe they are using some codes from After Effects to spice up Premiere because it is trendy to create slow-mo nowadays. Vegas might be behind now regarding that.
Note that results also might differ depending on what your shutter speed actually was. If it was very short and all objects in frames are pretty sharp and defined and in the background, it is going to be more prone to artifacts at the end, more visible artifacts. -
No, it's different than the "pixel motion" or "timewarp" algorithms that AE uses - PP has had optical flow since CC2015, but it uses GPU acceleration
I wouldn't call it "perfect" like he's calling it. Maybe he's not looking closely enough, or only very limited testing
It has the same problems with edge morphing artifacts as every other optical flow solution. Some shots are riddled with artifacts and just unsuable. Some shots work ok with only minor artifacts -
Okay, I get back to you guys to let you know that I have started using Avisynth once in a while. On some of my rendered clips, Premiere's Optical Flow will produce more likely the so-called opera effect, that is how I perceive it. And then, to avoid this, I am using Avisynth with the code posted by @JVRaines:
Code:FFmpegSource2("test.mp4", atrack=-1) FrameRateConverter(25)
For conversion of 25 fps interlaced to 29.97 fps progressive "FrameRateConverter(29.97)" will not do such a good job. Or maybe I need to add a line for interlaced video, like AssumeTFF() ?
Thx -
-
He wants 25i to 29.97p now, so
Code:Yadif(mode=1) FrameRateConverter(30000, 1001)
-
Oops. You're right. I read the post wrong. I don't think FrameRateConverter() allows 50p to 30p.
Similar Threads
-
Convert 51.43 fps video in 59.94 fps container to straight 50 fps video
By mr_lou in forum Video ConversionReplies: 5Last Post: 8th May 2016, 12:47 -
Converting 60 fps video to 30 fps interlaced
By deadmeow in forum Authoring (DVD)Replies: 9Last Post: 22nd Mar 2016, 01:13 -
Converting AVI video from 23.976 fps to 29.976 fps
By Nico Darko in forum Video ConversionReplies: 3Last Post: 6th Feb 2016, 19:33 -
convert 30 fps time lapse video to 60 fps to speed up and keep all frames
By acem77 in forum Video ConversionReplies: 12Last Post: 19th Jan 2016, 21:01 -
frame rate reduction of 29.970 fps to 23.976 fps in megui
By yohanfed in forum Video ConversionReplies: 2Last Post: 28th Jun 2014, 20:15