Log in

View Full Version : How to add picture at end of the video?


Ruriko
7th January 2019, 13:31
I want to put a static picture at the end of the video for 30seconds. I'm using megui as the encoder tool. This is the avisynth script I used:

DirectShowSource("longvacation.mkv", fps=29.970, audio=false, convertfps=true).AssumeFPS(30000,1001)
Picture=Import("C:\Users\Administrator\Downloads\Picture.avs")
Last+Picture

Picture.avs
ImageSource("720logo.bmp",Start=0,End=749,FPS=29.970)
ConvertToRGB()

The script doesn't seem to work properly cause it's not putting the picture at the end of the video. Can anyone help me fix this script?

StainlessS
7th January 2019, 13:56
Does this work (untested)

Mov=DirectShowSource(".\longvacation.mkv", fps=29.970, audio=false, convertfps=true).AssumeFPS(30000,1001).ConvertToYV12
Pic=ImageSource("C:\Users\Administrator\Downloads\720logo.bmp",End=0)
Pic=Pic.AssumeFps(Mov).Spline36Resize(Mov.Width,Mov.Height).ConvertToYV12.Loop(Times=749,Start=0,end=0) # Not sure if should be Times=750
Mov+Pic


Oops, Edited

Ruriko
8th January 2019, 00:06
yes thank you it works!