|
Best Porn Sites | Live Sex | Register | FAQ | Search | Today's Posts | Mark Forums Read |
Computer and Tech Help Discuss hardware, software, applications, malware removal, etc. |
|
Thread Tools |
22nd February 2013, 16:11 | #1 |
Addicted Join Date: Mar 2008
Posts: 192
Thanks: 61
Thanked 3,189 Times in 164 Posts
|
Realtime higher framerate for your videos?
HI Moviefans.
This is a tutorial for noobz so forgive me my not going to deep into the details. I will still explain a lot since the setup to achieve what I am explaining below is not just "one click" and you're done. lots of you may have seen "the Hobbit an unexpected journey" by now. How did you like that 48 frame per second feature? It is a "new" technology that is meant to provide a more natural viewing experience especially when it comes to fast moving scenes or scenes when the camera scans a wide landscape... etc. It simply uses more pictures per second to provide a smoother flow. Alas , only newer movies or documentations as well as private movies are produced using that feature, but there is a technique to upgrade almost any normal movie from normal framerate to 48 frames per second. INTERPOLATION! Interpolation does not mean simply doubling the existing pictures in a movie and then displaying them with double speed. It uses sophisticated mathematical algorithms to create new inbetween pictures based on the existing ones and inserts them. Some newer TV sets have that already as a hardware / software implementation, here is how to do that in realtime (means while watching the video) with just a few tweaks in your PCs movie decoding setup. What do you need to do that? 1. A PC with at least dual core cpu 2.4 Ghz for movies up to 720p (half HD resolution) or quad core for 1080p (full HD) 2. A software based frameserver. We will use Avisynth with the "multithread tweak" to use the full power of our PC. 3. FFD opensource codec for its exhaustive tweaking abilities. 4. MVtools plugin for Avisynth (this thing does the math for creating those extra pics). 5. A software movieplayer such as mediaplayer classic or bsplayer that uses the system installed codecs (here ffd ). VLC won't work because it uses its own libraries which are not visible to the system. Also other non freeware players might have problems. 6. The script provided below to instruct the ffd codec to perform our thingy. 7. A little bit of time (10 minutes or so) to do the installation. Why this effort? There are several benefits. 1. Movies look crisper and motion looks more natural at a higher framerate. (depending on the movie and the engine performing the calculation of course) 2. If you like to use your slow motion feature provided by your software player to rewiew "certain" scenes like I do, extra frames really improve the experience. 3. If you dig deeper into Avisynth, the sky is the limit what you can do with your videos. High quality enhancing, sharpening, coloring, upscaling, slomos, restauration you name it. 4. Just for the fun of it... lets get started: Download this package here. it contains all the stuff you need. http://rapidgator.net/file/79820432/...ckage.zip.html If you don't trust me, at the end of the tutorial are links to the official sites to get that stuff yourself. I understand that ... there are executables and who the fuck is nduktu Note : depending on the OS you use you might need to restart your system. Windows will tell you so if need be. 1. Install Avisynth 2.58 to your system. If you have Avisynth 2.58 or later version already installed just go to the MT_07 folder from the package, get the avisynt.dll file and place it in ...\windows\system32 folder for 32 bit systems or ...\windows\syswow64 folder for 64 bit systems. Remeber to rename the original avisynth.dll to avisynth.dll.bak or just make a copy of the original and store it in another folder before putting the new one in. Just in case someting gets fucked up. 2. From your start menue find Avisynth and in here the plugin folder. Put the mvtools2.dll from mvtools-v2.5.11.3 folder in the plugin folder. also do this with the MT.dll from MT_07 folder 3. Install the latest version of ffd show codec. (in the package). some of you might have just the decoding library installed. this won't do! we must be able to tweak it. set it to decode all videofiles or just check those filetypes you wish to be handled by that codec during installation process. 4. From your start menue find ffd show folder and open the videodecoder configuration. in the now appearing window go to the left part, find avisynth, check it and click it. window opens. In here disable the following boxes/options: "add ffdshow video source" (we want the avisynth stream!), also disable YUY2, RGB24 and RGB32 leave only Yv12 checked in that row. mvtools wants only that colorscheme. activate or check the avisynth box. check the buffer back/ahead box and put in the values 0 and 24 5. Copy and paste the script from the fist codebox into the big ffdshow window below the checkboxes you just handled. This is not my script! I just use it here because it meets the most common setups. no need to reinvent the wheel... (I for instance use my own which does the resizing to fullscreen based on a spline algorithm, but that only works with powerful PCs. the script here works with default bicubic resize. its just fine) the only line we may have to alter is the "SetMtmode(2,16) " line. This line tells the mtplugin how many threads should be assigned to do the calculating. leave it if you have a quadcore. set it to 2,8 for a dualcore. feel free to experiment with the second value. Code:
SetMtmode(2,16) global idx1 = 10 global source=ffdshow_source() source=changefps(source,source,true) # assume progressive PAL 25 fps or NTSC Film 23.976 source idx1 = idx1 + 1 backward_vec = source.MVAnalyse(blksize=16, isb = true, chroma=false, pel=1, searchparam=1, idx=idx1) # we use explicit idx for more fast processing forward_vec = source.MVAnalyse(blksize=16, isb = false, chroma=false, pel=1, searchparam=1, idx=idx1) source.MVFlowFps(backward_vec, forward_vec, num=2*FramerateNumerator(source), den=FramerateDenominator(source), mask=0, idx=idx1) distributor() 6. Install the freeware bsplayer from the package. mediaplayer classic or any other freeware player might just work fine ( they do on my machine) but others have reported that they experience jumpy or delayed moviedisplay on weaker PCs or high definition videos. If you happen to have VLC player installed do not remove it! Since VLC brings its own codecs it is not affected by the settings we have done. So you can always watch your vids in normal mode using VLC player and not bsplayer. you're done check if it works... open a movie with bs player do not be misled by the framerate displayed by bsplayer in its control window. depending on the movie/container/format bsplayer or other players might gather that inormation from the fileheader. it says something like 720x404@25 fps. sometimes it displays the accurate displayed framerate... do a framecount! e.g. in bsplayer hit "Alt+3" while movie is running and see the achieved average framerate. there are similar options in almost all freeware players... enjoy.... Ps: results of this method vary greatly depending on hardware and system setup. there are many tutorials out there to tweak it here and there if you are not contend with the results though you have tweaked here and there a little bit, you can always deactivate this whole thing by opening the ffdshow video decoder configuration go to the avisynth window, hit the reset button and uncheck avisynth. credits go to the guys and girls who did the script, mttools, mvtools, avisynth, bsplayer, ffd show Links for the needed stuff Code:
bsplayer free http://bsplayer.com/bsplayer-english/download-free.html avisynth http://avisynth.org/mediawiki/Main_Page MT plugin http://avisynth.org/mediawiki/MT ffdshow codec http://ftp3.ie.freebsd.org/pub/download.sourceforge.net/pub/sourceforge/f/ff/ffdshow-tryout/SVN%20builds%20by%20clsid/generic%20builds/ffdshow_rev4499_20130104_clsid.exe MVtools http://avisynth.org.ru/mvtools/mvtools.html |
The Following User Says Thank You to nduktu For This Useful Post: |
|
Thread Tools | |
|
|