avisynth

Rotate an image around its x-axis

醉酒当歌 提交于 2020-05-28 06:09:47
问题 I need to rotate an image around its x-axis (or y-axis). I can easily create such an animation with avisynth, but now I need to implement that effect with Python's moviepy module. I can easily rotate an image with the following script but need some clues how to rotate it in 2D or 3D. from moviepy.editor import * clip = ImageClip('my_image.jpg') rotated_clip = (clip.add_mask() .fx(vfx.resize, width=300, height=300) .fx(vfx.rotate, lambda t: 90*t, expand=False) .set_duration(5)) final_clip =

Cygwin 编译 ffmpeg

流过昼夜 提交于 2020-04-11 19:49:19
1、在官网下载linux下的压缩包   https://ffmpeg.zeranoe.com/builds/source/ffmpeg/ffmpeg-3.2.4.tar.xz 2、进入cygwin,假定将压缩包放在了cygwin的 bin\ffmpeg-3.2.4.tar目录下 执行如下指令进行文件解压 cd / bin cd ffmpeg - 3.2 . 4 . tar / xz -d ffmpeg- 3.2 . 4 . tar .xz tar -xvf ffmpeg- 3.2 . 4 . tar cd ffmpeg - 3.2 . 4 / 3、编译 shared模式编译 ./configure --disable-static --enable-shared --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -

Is there any helper tool for creating graphedit files “on the fly” (programmatically)

故事扮演 提交于 2019-12-24 16:17:11
问题 I notice that avisynth can accept as input a "live directshow source" only through a graphedit file that includes that source in it. Is there any help tool out there to create a graphedit file on the fly, given you know a capture sources name (and/or the output format you want from that pin)? ref: http://betterlogic.com/roger/2012/05/avisynth-live-capture The graphedit file syntax is described here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd388788(v=vs.85).aspx (though it

AviSynth Out of Memory Error (100s of image overlays)

怎甘沉沦 提交于 2019-12-20 06:16:50
问题 I want to overlay multiple images on my video at different times. I have user function defined as function myFunction(clip c, int coordinateX, int from, int to) { c = c.trim(0, from-1) + c.trim(from, to).Overlay(myImage, x=coordinateX, y=667, mask=myImageMask, opacity=1) + c.trim(to+1, 0) return c } which essentially takes myImage image and place it on specific part of the clip. I call my function as video = video.myFunction(320, 1, 187) and I have bunch of those like this (I'm trying to make

AviSynth Out of Memory Error (100s of image overlays)

二次信任 提交于 2019-12-02 09:48:33
I want to overlay multiple images on my video at different times. I have user function defined as function myFunction(clip c, int coordinateX, int from, int to) { c = c.trim(0, from-1) + c.trim(from, to).Overlay(myImage, x=coordinateX, y=667, mask=myImageMask, opacity=1) + c.trim(to+1, 0) return c } which essentially takes myImage image and place it on specific part of the clip. I call my function as video = video.myFunction(320, 1, 187) and I have bunch of those like this (I'm trying to make some sort of animation with multiple images) video = video.myFunction(320, 1, 187) video = video

Creating multiple videos with Avisynth

孤街醉人 提交于 2019-11-30 14:13:12
I have a bunch of individual files that I want to each run through Avisynth. However, an AVS file can only create one video. As far as I know, there is no way to declare a variable's value from the command line. I know that you can probably create a script that generates a bunch of AVS files and then somehow convert each AVS file to a video. However, since Avisynth is a scripting system, this seems kind of complicated. There must be some way to run different videos through a script, right? What is the best way to do this? Thanks in advance. I've never found a way to pass a command line

Creating multiple videos with Avisynth

那年仲夏 提交于 2019-11-29 19:52:53
问题 I have a bunch of individual files that I want to each run through Avisynth. However, an AVS file can only create one video. As far as I know, there is no way to declare a variable's value from the command line. I know that you can probably create a script that generates a bunch of AVS files and then somehow convert each AVS file to a video. However, since Avisynth is a scripting system, this seems kind of complicated. There must be some way to run different videos through a script, right?