changefps vapoursynth? >> Cleaning & Organization >> Forum
Forum
  Search   Users   Registration   Entrance
Today: 19.07.2025 - 05:12:07
Pages:  1  

changefps vapoursynth?

Advertising

CROWD links from forums - 0,9 USD


MessageAuthor

I have had about 20 minutes exposure to vapoursynth. How can I do the equivalent of: changefps(assumefps(clip, 23.999), 30) I see AssumeFPS but not ChangeFPS.

---------------------

Spliff

main-users




Statistics:
Messages: 108
Registration: 09.03.2002
16.09.20 - 09:01:09
Message # 1
RE: changefps vapoursynth?

Vapoursynth doesn't have ChangeFPS because it doesn't want you to think about a "FPS". It has per-frame timestamps instead. AssumeFPS is just a silly name for a function that generates such timestamps. If you really, really want to convert to a constant framerate you can either tell the source filter to output that, or you can write your own version. It should be sorta trivial, I'd start with generating a list of one timestamp per output frame at the desired framerate and then write a few lines of Python that selects the time with the closest timestamp in the input. Maybe someone's already done it.

---------------------
Techo Violet 96 M3 Coupe Titanium silver 07 328iT Autumn Gold 06 Lotus Elise "The existence of the flamethrower is evidence that someone, somewhere once said 'I want to set those people over there on fire, but I don't want to have to walk over there

PECivil

main-users




Statistics:
Messages: 2,265
Registration: 02.26.2001
16.09.20 - 09:09:01
Message # 2
RE: changefps vapoursynth?

I just haven't bothered to add such a filter since it's very specialized. Here's how you can currently do it using FrameEval, the general function that can do anything if you try hard enough. Here it's trying really hard. Code:

---------------------
- Roman

BGM3

main-users




Statistics:
Messages: 2,683
Registration: 08.30.2001
16.09.20 - 09:14:19
Message # 3
RE: changefps vapoursynth?

Thank you. I'm still chewing on that example. How do I write a clip to the filesystem in some encoding? I tried adjusted_clip.output(f) where f is a file handle and the resulting file is data. But, I don't know what format. Oh, passing y4m=True results in y4m format video. For example, adjusted_clip.output(f, y4m=True). I was unaware of this format. Oh oh. I think I am supposed to use vspipe. So, with adjusted_clip.set_output() and no output method call: vspipe -y blah.vpy vlah.y4m ffmpeg -i vlah.y4m rlah.mp4

---------------------

jwocky

main-users




Statistics:
Messages: 247
Registration: 04.07.2002
16.09.20 - 09:19:39
Message # 4
RE: changefps vapoursynth?

How do I open the output in virtualdub? I thought set_output was like identifying the equivalent of "last" in avisynth. If I run a vapoursynth script with python nothing is produced as far as I can tell. If I use the output method something is output. Or, if I am supposed to open the script as if it were an avs script. I named my script something.vpy andif I open it in virtualdub 1.10.4 it says AVI import error.

---------------------

mrdoenutz

main-users




Statistics:
Messages: 2,398
Registration: 04.30.2001
16.09.20 - 09:24:42
Message # 5
RE: changefps vapoursynth?
How to mux MPA in DivX ? : Previous topic
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants