Single Still To Video

Questions and answers on how to get the most out of FFAStrans
Post Reply
graham728
Posts: 95
Joined: Sat Oct 13, 2018 10:54 pm

Single Still To Video

Post by graham728 »

Hi,

It may be obvious but I've tried without success.

I want to take a single PNG and make it into a five second video. Not sure how to do this?

Thanks!
emcodem
Posts: 1918
Joined: Wed Sep 19, 2018 8:11 am

Re: Single Still To Video

Post by emcodem »

Hey Graham,

if you can use A/V decoder, just do it with a Custom Avisynth script:

Code: Select all

m_clip=loop(m_clip,250,0)
Return m_clip
Above means repeat frame 0 250 times, i think it would also work when written as m_clip=loop(m_clip,250)

Let me know if it works for you!

EDIT: we also have it in the stills decoder, i forgot... i believe it will do more or less the same internally but not 100% sure about it
emcodem, wrapping since 2009 you got the rhyme?
User avatar
FranceBB
Posts: 304
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Single Still To Video

Post by FranceBB »

emcodem wrote: Thu Nov 27, 2025 11:31 am i believe it will do more or less the same internally
Yep. I mean, kinda, but yeah. :) Well this
Screenshot 2025-11-30 221418.png
Screenshot 2025-11-30 221418.png (7.3 KiB) Viewed 4396 times
just like the A/V Decoder is going through an indexer, in this case ImageSource().
If we were writing a script from scratch, we would use the indexer to index the image and specify how many frames and at what framerate we want the image to become in the uncompressed A/V stream in our beloved frameserver.

For instance, to get 2 seconds (i.e 50 frames at 25fps) we would specify:
Screenshot 2025-11-30 222213.png
Screenshot 2025-11-30 222213.png (286.49 KiB) Viewed 4396 times
and that's exactly what we're doing in FFAStrans as well, namely using the indexer. :D

Code: Select all

ImageSource("' & $s_JOB_ORIGINAL_LOCAL_FILE & '", start = 0, end = ' & $i_PROC_LENGTH & ', fps = ' & $i_PROC_FPS & ')'
where the end is always calculated (i.e converted in frames) from the variable read from the user input and so are the fps. :)
Post Reply