PDA

View Full Version : Need help with a script


Peuj
14th July 2009, 17:50
Hi,

I use an AviSynth script in ffdshow from the following web site to double the frame rate http://www.avsforum.com/avs-vb/showthread.php?t=719041.

The script and settings are:
Avisynth tab checked
YV12 checked,
Add FFdshow Video source Unchecked,
3:2 Pulldown box: Smooth timestamps checked,
check Buffer back/Ahead: 9, 9

setmtmode(5)
Last=ffdshow_source()
setmtmode(2)
super = MSuper(pel=2,hpad=4,vpad=4)
backward_vec = MAnalyse(super,chroma=false, blksize=16, isb = true, search=5, searchparam=1)
forward_vec = MAnalyse(super, chroma=false, blksize=16)
MFlowFps(super, backward_vec, forward_vec, num=0, mask=1, ml=49)
distributor()

This script works well but not with all kind of movies.
With some movies Reclock and my player still report the original frame rate then the player crashes after few seconds. With other movies the player crashes just after 1 or 2 seconds max.

As I'm new with Avisynth script I don't know where to start to solve the problem. Any help will be welcome.

The problem seems related with 4/3 movies at 25fps.
Crash:
Video #0 : MPEG-4 Visual at 857 Kbps
Aspect : 640 x 480 (1.333) at 25.000 fps

Video #0 : RealVideo 4
Aspect : 640 x 480 (1.333) at 25.000 fps

Works:
Video #0 : MPEG-4 Visual at 994 Kbps
Aspect : 608 x 336 (1.810) at 25.000 fps

Video #0 : MPEG-4 Visual at 977 Kbps
Aspect : 640 x 368 (1.739) at 23.976 fps

Video #0 : MPEG-4 Visual at 1 333 Kbps
Aspect : 672 x 272 (2.471) at 25.000 fps

Video #0 : MPEG-4 Visual at 693 Kbps
Aspect : 608 x 256 (2.375) at 23.976 fps

Video #0 : MPEG-4 Visual at 843 Kbps
Aspect : 848 x 480 (1.767) at 29.970 fps

Video #0 : MPEG-4 Visual at 1 024 Kbps
Aspect : 512 x 384 (1.333) at 29.970 fps



* An other newbie problematic. I would like to keep my final frame rate to 50fps to stick with my TV refresh rate of 50Hz. So I've thought to use ConvertFPS().
Should I use it first to convert 23.976 fps and 29.970 fps to 25 fps or should I use it after the double frame rate?



* With HD movies I cannot use the double frame rate script because my CPU go to 100% so I've just tried to use ConvertFPS() to convert 23.976 fps to 25 fps.
But this doesn't work well with all movies.
I've used Info() to see the frame rate reported after ConvertFPS():
- With ConvertFPS(25), Info() reports 25 fps but Reclock and my player still report 23.976 fps.
- With ConvertFPS(30), it works well: Info() reports 30 fps and Reclock also reports 30 fps.

Again this happens only with some HD movies
Doesn't work:
Video #0 : AVC at 4 727 Kbps
Aspect : 1280 x 536 (2.388) at 23.976 fps

Video #0 : AVC at 4 863 Kbps
Aspect : 1280 x 544 (2.353) at 23.976 fps
Work:
Video #0 : AVC at 1 413 Kbps
Aspect : 1280 x 720 (1.778) at 23.976 fps

Video #0 : AVC at 1 250 Kbps
Aspect : 1280 x 720 (1.778) at 23.976 fps



* Last question: where can find information about the FFdshow settings like 3:2 Pulldown box and Buffer back/Ahead?


Thanks

n0an
15th July 2009, 21:40
--Removed--

Sorry!

Peuj
15th July 2009, 22:56
--Removed--

Sorry!

I've hoped an answer ;)

leeperry
16th July 2009, 12:06
hey buddy, I've never used any frame rate interpolation script...so I can't really help you on that, maybe Jeremy could?

getting this to work on 1080p files will prolly require a massively o/c i7, so you may wanna lower your expectations :D

maybe you're having a bad case of mod2 files, why not resizing to your screen native res? I'd advise using lanczos3 for luma and bicubic 1.0/0.0 for chroma.

more infos here : http://ffdshow-tryout.sourceforge.net/wiki/video:avisynth