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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th April 2015, 23:44   #1  |  Link
thomaz909
Registered User
 
Join Date: Jul 2004
Posts: 40
ChangeFPS(framerate*2) only if video is slower than 25.001fps

i need an avisynth script which only does "ChangeFPS(framerate*2)" when video is slower than 25.001fps.

is this possible with an avisynth script ?

if yes can anybody give me the right code ?

thx
thomaz909 is offline   Reply With Quote
Old 13th April 2015, 00:09   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,345
Quote:
Originally Posted by thomaz909 View Post
i need an avisynth script which only does "ChangeFPS(framerate*2)" when video is slower than 25.001fps.
Code:
src=last

src.framerate<25.001 ? src.changefps(framerate*2) : src
poisondeathray is offline   Reply With Quote
Old 13th April 2015, 06:37   #3  |  Link
creaothceann
Registered User
 
Join Date: Jul 2010
Location: Germany
Posts: 357
Or just

Code:
(FrameRate < 25.001) ? ChangeFPS(FrameRate * 2) : last
Btw. why not checking for 25.0?
creaothceann is offline   Reply With Quote
Old 19th April 2015, 15:35   #4  |  Link
thomaz909
Registered User
 
Join Date: Jul 2004
Posts: 40
"Original frame rate" useless invetion in .avi.
mediainfo of a testfile .avi:
Frame rate : 30.000 fps
Original frame rate : 23.976 fps

i just changed framerate with virtualdub.

lav splitter sends stream to lav decoder.
lav decoder sends decoded video to ffdshow raw filter.
ffdshow raw filter info shows 30fps but avisynth still uses the "original framerate" value and still does fps*2.

why ?

is this a huge bug in avisynth ?

with .mkv where i changed the "bps" in mkvmerge all is fine.

Last edited by thomaz909; 19th April 2015 at 16:17.
thomaz909 is offline   Reply With Quote
Old 19th April 2015, 16:44   #5  |  Link
colours
Registered User
 
colours's Avatar
 
Join Date: Mar 2014
Posts: 308
We aren't psychic. Post your script and your source file(s).
__________________
Say no to AviSynth 2.5.8 and DirectShowSource!
colours is offline   Reply With Quote
Old 19th April 2015, 21:12   #6  |  Link
thomaz909
Registered User
 
Join Date: Jul 2004
Posts: 40
it is a video i play through ffdshows avisynth plugin.
here is more desciption:
http://forum.doom9.org/showpost.php?...ostcount=15282
thomaz909 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


All times are GMT +1. The time now is 12:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.