Guru3D.com Forums

Go Back   Guru3D.com Forums > General Chat > The HTPC, HDTV & High Definition section
The HTPC, HDTV & High Definition section Home Theater PC Enthusiasts or want to talk in High-Definition ? This is Guru3Ds Premier Community of HD and HTPC.


Reply
 
Thread Tools Display Modes
Frame doubling interpolation for 1080p x264 mkv's for superfluid 48 fps
Old
  (#1)
nzweers
Master Guru
 
nzweers's Avatar
 
Videocard: 2x5850@5870 + gt430 physx
Processor: Intel 2500K@4700/1,35v
Mainboard: Asrock P67 Xtreme4
Memory: 16 GB DDR3 1600mhz
Soundcard: X-Fi Music + Kef/Rel 5.1
PSU: 600watt OCZ ModXStreamPro
Default Frame doubling interpolation for 1080p x264 mkv's for superfluid 48 fps - 02-15-2009, 09:58 | posts: 190

This method interpolates extra frames between the 24 fps to achieve 48 fps enabling supersmooth fluid motion like this example:



It does not simply double the existing frames, it actually interpolates a new image to fit in between. It's hard on your cpu!
It is great for scenes where the camera pans over the scenery at a constant speed. Fast action scenes tend to be more clear as well. The whole movie gets a very realistic feel to it. It's just awesome. Actually IMAX HD is at 48 fps as well. Beware though, it is not easy to get this working. But once you got it, you never want to go back to 24!

I have been testing and tweaking all kind of scripts and filters and came accross people who said it's impossible realtime, for dvd res only or people who did 720p only. On 1080p mkv's I get about 80% cpu usage on my q6600 @ 2.7ghz and about 30% usage on 720p, all cores used. I can enable other filters at the same time like sharpen, noise and subs. Here's how:

1. Get BSPlayer free edition: http://www.bsplayer.org
Media player classic and zoomplayer give sometimes stuttering results on 1080p, it works good for 720p though. Set bsplayer options on internal overlay video output.

2. Get FFDShow: http://www.free-codecs.com/download/FFDshow.htm
Install with all avisynth options enabled

3. Get Avisynth: http://sourceforge.net/project/showf...group_id=57023

4. Get mvtools: http://avisynth.org.ru/mvtools/mvtools.html#download.
Now for the tricky part, put mvtools.dll in the Avisynth/plugins folder.

5. Download MT (multi-threading plug-in) for AVISynth: http://avisynth.org/mediawiki/MT.
Put MT.dll also in the Avisynth\plugins folder. Avisynth.dll has to replace the dll in the c:\windows\system32 folder or c:\windows\syswow64.

6. Open the ffdshow filter and put this script in the avisynth tab:

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()

Put buffer back/ahead on 0/24. Disable 'add ffdshow video source' and disable YUY2, RGB24 and RGB32. From the script you can change SetMtmode(2,16) to 2,8 for 8 threads if you have a dual-core.

That's it! To see if it works use fraps, or check your cpu usage or enable the framerate osd of ffdshow. 21:9 1080p movies (1920x800 pixels orso) tend to be more easy for your cpu than 16:9 movies (1920x1080).

Have fun!!!

One last tip, bsplayer can do more than you think, additional options are hidden in the keyboard shortcuts.

Last edited by nzweers; 02-15-2009 at 10:02.
   
Reply With Quote
 
Old
  (#2)
MrMicrochip
Member Guru
 
Videocard: Palit 570 GTX
Processor: Intel i2500k
Mainboard: MSI Z68A-GD80 B3
Memory:
Soundcard:
PSU: Zalman ZM850-HP
Default 02-15-2009, 21:38 | posts: 111

I can confirm, it works! Videos are super smooth on my Windows XP, thanks!

Unfortunately this doesn't work with Windows 7. MT avisynth isn't compatible with W7 and if i remove the mt lines from avisynth script, audio sync sucks and player jams after 20-30s
   
Reply With Quote
Old
  (#3)
zenebona
Newbie
 
Videocard: Asus Radeon4670 512mb
Processor: Intel Core 2 Duo E6400
Mainboard:
Memory:
Soundcard:
PSU: FSP Bluestorm2 400w
Default 02-15-2009, 22:31 | posts: 4

Yeah, it's a good script. You also need reclock filter to speed up playback to 25 fps to get smooth playback, because the TV cannot be set to 48hz (only 24,25,30,50,60)
   
Reply With Quote
Old
  (#4)
attila_gorilla
Master Guru
 
attila_gorilla's Avatar
 
Videocard: ATI Mobility HD 5730
Processor: Intel i5 430M
Mainboard: MSI GE600 notebook
Memory: 2x2GB DDR3
Soundcard: N/A
PSU: 90 W
Default 02-16-2009, 20:59 | posts: 608 | Location: Hungary

Is there any reason why this is for mkv`s only?
   
Reply With Quote
 
Old
  (#5)
nzweers
Master Guru
 
nzweers's Avatar
 
Videocard: 2x5850@5870 + gt430 physx
Processor: Intel 2500K@4700/1,35v
Mainboard: Asrock P67 Xtreme4
Memory: 16 GB DDR3 1600mhz
Soundcard: X-Fi Music + Kef/Rel 5.1
PSU: 600watt OCZ ModXStreamPro
Default 02-17-2009, 13:15 | posts: 190

@attila, I think dvd's work as well, I actually only use mkv's. Wmv's don't work though. What format would you like to double?

@zenebona, speed up playback to 25. Sounds cool, how would you get that reclock filter working?
   
Reply With Quote
Old
  (#6)
zenebona
Newbie
 
Videocard: Asus Radeon4670 512mb
Processor: Intel Core 2 Duo E6400
Mainboard:
Memory:
Soundcard:
PSU: FSP Bluestorm2 400w
Default 02-17-2009, 17:04 | posts: 4

You can download it here:

http://forum.slysoft.com/showthread.php?t=19931

When you start a media player, it asks if you want to use the reclock filter instead of the original audio renderer. I use it with Zoom Player, but can be used with any media player software.
   
Reply With Quote
Old
  (#7)
zenebona
Newbie
 
Videocard: Asus Radeon4670 512mb
Processor: Intel Core 2 Duo E6400
Mainboard:
Memory:
Soundcard:
PSU: FSP Bluestorm2 400w
Default 02-17-2009, 17:05 | posts: 4

It works with divx/xvid avi files as well
   
Reply With Quote
Old
  (#8)
attila_gorilla
Master Guru
 
attila_gorilla's Avatar
 
Videocard: ATI Mobility HD 5730
Processor: Intel i5 430M
Mainboard: MSI GE600 notebook
Memory: 2x2GB DDR3
Soundcard: N/A
PSU: 90 W
Default 02-17-2009, 20:05 | posts: 608 | Location: Hungary

that`s great to know, I`m gonna give it a shot.
   
Reply With Quote
Old
  (#9)
attila_gorilla
Master Guru
 
attila_gorilla's Avatar
 
Videocard: ATI Mobility HD 5730
Processor: Intel i5 430M
Mainboard: MSI GE600 notebook
Memory: 2x2GB DDR3
Soundcard: N/A
PSU: 90 W
Default 02-17-2009, 22:29 | posts: 608 | Location: Hungary

EDIT:

It`s working! Thank you, great stuff!

Last edited by attila_gorilla; 02-17-2009 at 23:15.
   
Reply With Quote
Old
  (#10)
Clawedge
Maha Guru
 
Clawedge's Avatar
 
Videocard: Nvidia 520
Processor: Athlon II 610e
Mainboard: Gigabyte GA-970A-D3
Memory: Team 8GB 1333 DRR3
Soundcard: Onboard
PSU: Corsair 400W
Default 02-22-2009, 03:09 | posts: 1,201 | Location: Earth

AAAAAAAAAAAAAAAAA

6. Open the ffdshow filter and put this script in the avisynth tab:

how on earth do i do that???

i feel so stupid.
please help AAAAAAAAAAAAAA. i think i am gonna cry :C
   
Reply With Quote
 
Cannot find mvtools.dll
Old
  (#11)
Tristan1978
Newbie
 
Videocard: ATI HD4850
Processor: AMD Athlon
Mainboard:
Memory:
Soundcard:
PSU: No idea
Default Cannot find mvtools.dll - 02-24-2009, 23:29 | posts: 8

I downloaded mvtools from http://www.softpedia.com/progDownloa...oad-69800.html

I have installed it but for the life of me cannot find the .dll file. As per the instructions I can not paste it into the avisynth plug in folder. Can anyone shed light on this for me please? Apologies if I sound very nooby
   
Reply With Quote
Old
  (#12)
attila_gorilla
Master Guru
 
attila_gorilla's Avatar
 
Videocard: ATI Mobility HD 5730
Processor: Intel i5 430M
Mainboard: MSI GE600 notebook
Memory: 2x2GB DDR3
Soundcard: N/A
PSU: 90 W
Default 02-25-2009, 02:51 | posts: 608 | Location: Hungary

Clawedge:



Tristan, it seems the original link for MVtools is down. If you still can`t find it, I can email it to you, pm me if you want.

In fact, I`ve put it up on a hosting site, just download it from here. Hope the author doesn`t mind.

http://www.mediafire.com/?sharekey=b...4e75f6e8ebb871

Last edited by attila_gorilla; 02-25-2009 at 02:59.
   
Reply With Quote
Old
  (#13)
Tristan1978
Newbie
 
Videocard: ATI HD4850
Processor: AMD Athlon
Mainboard:
Memory:
Soundcard:
PSU: No idea
Default 02-25-2009, 04:09 | posts: 8

Quote:
Originally Posted by attila_gorilla View Post
Clawedge:



Tristan, it seems the original link for MVtools is down. If you still can`t find it, I can email it to you, pm me if you want.

In fact, I`ve put it up on a hosting site, just download it from here. Hope the author doesn`t mind.

http://www.mediafire.com/?sharekey=b...4e75f6e8ebb871
Thanks very much for the quick reply. I have followed the instructions to a tee but as soon as I try and open a 720p mkv in MPC I get an error and it automatically shuts down. I'm hoping it's the lack of the mvtools.dll file that is causing it. Thanks for your help.
   
Reply With Quote
Old
  (#14)
Clawedge
Maha Guru
 
Clawedge's Avatar
 
Videocard: Nvidia 520
Processor: Athlon II 610e
Mainboard: Gigabyte GA-970A-D3
Memory: Team 8GB 1333 DRR3
Soundcard: Onboard
PSU: Corsair 400W
Default 02-25-2009, 07:07 | posts: 1,201 | Location: Earth

thanks attila_gorilla, will try it now.
   
Reply With Quote
Old
  (#15)
Clawedge
Maha Guru
 
Clawedge's Avatar
 
Videocard: Nvidia 520
Processor: Athlon II 610e
Mainboard: Gigabyte GA-970A-D3
Memory: Team 8GB 1333 DRR3
Soundcard: Onboard
PSU: Corsair 400W
Default 02-25-2009, 08:22 | posts: 1,201 | Location: Earth

Finally got it working, and this thing is fooking AWESOME.

will need a quad to play back 1080 video though.

does this work on a quad???
   
Reply With Quote
Old
  (#16)
Tristan1978
Newbie
 
Videocard: ATI HD4850
Processor: AMD Athlon
Mainboard:
Memory:
Soundcard:
PSU: No idea
Default 02-25-2009, 10:56 | posts: 8

This is really doing my head in. I have followed all instructions closely yet I continue to get the following pop up error when I try to open any mkv file in media player classic:

mplayer.exe - Application Error - The instruction at 0x00000000 referenced memory.... the memory could not be read. etc etc.

If I uncheck avisynth in ffdshow my mkv's will play as normal, no issues.

PLEEAAASEEEE HELP. I have no clue what to do. Thanks, Tristan
   
Reply With Quote
Old
  (#17)
attila_gorilla
Master Guru
 
attila_gorilla's Avatar
 
Videocard: ATI Mobility HD 5730
Processor: Intel i5 430M
Mainboard: MSI GE600 notebook
Memory: 2x2GB DDR3
Soundcard: N/A
PSU: 90 W
Default 02-25-2009, 16:31 | posts: 608 | Location: Hungary

Try it with xvid videos. Does it work with those? It should.
   
Reply With Quote
Old
  (#18)
Tristan1978
Newbie
 
Videocard: ATI HD4850
Processor: AMD Athlon
Mainboard:
Memory:
Soundcard:
PSU: No idea
Default 02-26-2009, 00:09 | posts: 8

Update. I reinstalled MPC and reinstalled MVTools, MT etc and I can now open MKV's with Avisynth checked but it's not playing back correctly, too much CPU load by the looks of it. I have used the script from the first post but changed the SetMtmode(2,16) to (2,8) as I have a dual- core. I have followed all other instructions. I feel I am soooooo close! Can anyone recommend a change to the script or settings? I have 2gb of ram and an ATI HD4850 card. I actually have 4gb of ram but can only seat one 2gb stick properly. Hopefully this extra info helps. I assume I shouldn't have an issue running 720p files with avisynth as I can turn sharpness, picture etc on with 720p files with no issues.

Thanks again for all the help, hopefully my incessant questions will help other people in the future.
   
Reply With Quote
Old
  (#19)
king-dubs
Maha Guru
 
Videocard: VisionTek 6950UL @ 950MHz
Processor: i7 2600k @ 4.6 GHz 1.44v
Mainboard: GIGABYTE Z68XP-UD4 F.6f
Memory: 16GB Corsair Vengeance LP
Soundcard: Creative SB X-Fi Fatal1ty
PSU: Corsair AX-1200 (1500W!!)
Default 02-26-2009, 00:49 | posts: 2,356 | Location: 127.0.0.1

I got The Dark Knight 1080 MKV to play VERY smoothly! It worked perfectly for me. However, media player (classic/home cinema/11) all crash on me on exit after playing the video.

Btw, it actually looks better than playing it on my "120 Hz" 1080p HDTV!
   
Reply With Quote
Old
  (#20)
ricardonuno1980
Ancient Guru
 
ricardonuno1980's Avatar
 
Videocard: eVGA GTX 480 - CRT 21" :D
Processor: i5-2500K@4.5GHz CM212EVO
Mainboard: ASUS P8P67 REV 3.0
Memory: HyperX 2x4GB DDR3-1600
Soundcard: onboard
PSU: NOX 1000W
Default 02-26-2009, 01:14 | posts: 3,614 | Location: Carvalhos (Gaia)

does any video have 48 fps?? if yes then I ask where is this video to download.
   
Reply With Quote
Old
  (#21)
wintord
Newbie
 
Videocard:
Processor:
Mainboard:
Memory:
Soundcard:
PSU:
Default 02-27-2009, 13:35 | posts: 1

I am getting a message at top of video saying Script error: there is no function named 'SetMtmode' (ffdshow_filter_avisynth_script, line 1) and frame rate still at 24fps. Anyone know what I have done wrong to bring up this error.

Sorted it now shame my processor cant handle it with 1080p content

Last edited by wintord; 02-27-2009 at 22:47.
   
Reply With Quote
Old
  (#22)
Clawedge
Maha Guru
 
Clawedge's Avatar
 
Videocard: Nvidia 520
Processor: Athlon II 610e
Mainboard: Gigabyte GA-970A-D3
Memory: Team 8GB 1333 DRR3
Soundcard: Onboard
PSU: Corsair 400W
Talking 03-01-2009, 03:22 | posts: 1,201 | Location: Earth

hey, i put this in a pdf for all those n00bs, like myself. with screen shots to make it a whole lot easier

Instruction v1.2


didnt know the arrows were missing, so i corrected it, oops :

if there are any errors or additions, let me know

Last edited by Clawedge; 03-07-2009 at 08:46.
   
Reply With Quote
Old
  (#23)
helphelp911
Newbie
 
Videocard: NVIDIA FX 5900XT
Processor: AMD XP 2500+ M @2.3G,1.8V, 11*211
Mainboard: Abit AN7
Memory: 1G Samsung PC3200
Soundcard: ON BOARD
PSU:
Default 03-01-2009, 09:31 | posts: 25

Thanks, i got it working (only for the first few seconds of video). Then suddenly, frame drop to 2 and cpu only use 2%. First few seconds cpu @100% and it is smooth

help plz
   
Reply With Quote
Old
  (#24)
attila_gorilla
Master Guru
 
attila_gorilla's Avatar
 
Videocard: ATI Mobility HD 5730
Processor: Intel i5 430M
Mainboard: MSI GE600 notebook
Memory: 2x2GB DDR3
Soundcard: N/A
PSU: 90 W
Default 03-01-2009, 10:04 | posts: 608 | Location: Hungary

Helphelp, you need to help yourself to a better computer... This stuff can get pretty hard on your system.
   
Reply With Quote
Old
  (#25)
helphelp911
Newbie
 
Videocard: NVIDIA FX 5900XT
Processor: AMD XP 2500+ M @2.3G,1.8V, 11*211
Mainboard: Abit AN7
Memory: 1G Samsung PC3200
Soundcard: ON BOARD
PSU:
Default 03-01-2009, 16:44 | posts: 25

Quote:
Originally Posted by attila_gorilla View Post
Helphelp, you need to help yourself to a better computer... This stuff can get pretty hard on your system.
hi, my computer is amd 64x2 4200 oc to 2.6g 2g ram. the computer states under my name is old.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com
Copyright (c) 1995-2012, All Rights Reserved. The Guru of 3D, the Hardware Guru, and 3D Guru are trademarks owned by Hilbert Hagedoorn.