Log in

View Full Version : Still background image?


asarian
23rd November 2010, 10:08
Hello,

I have a set of Anime's which are at 4:3 aspect ratio. Is it possible, using AviSynth 2.5.8, to use a steady (1920x1080) background image to fill the gaps at the sides? I've come across overlaying stuff before, but of two different movie sources; whereas I basically want a single still background image being repeated, as it were.

Thanks.

Gavino
23rd November 2010, 10:44
You can simply use ImageSource (http://avisynth.org/mediawiki/ImageSource)() to construct a movie of the right length from your image, then overlay your anime on top.

asarian
23rd November 2010, 15:51
You can simply use ImageSource (http://avisynth.org/mediawiki/ImageSource)() to construct a movie of the right length from your image, then overlay your anime on top.

Thanks. :)

I see length is defined in frames. I take it those are full frames?

Also, since I have many episodes to process, all slightly differing in length, can I not just make one long movie and forcibly limit AviSynth to process no more than X frames per episode?

Gavino
23rd November 2010, 17:07
The simplest way is to load your foreground movie first, then use its Framecount() to set the length of the background image.

fore = AviSource(...)
back = ImageSource("back.jpg", 1, Framecount(fore))
Overlay(back, fore, x=...)
AssumeFPS(fore) # inherit frame rate
AudioDub(fore) # inherit audio

asarian
23rd November 2010, 18:05
The simplest way is to load your foreground movie first, then use its Framecount() to set the length of the background image.

fore = AviSource(...)
back = ImageSource("back.jpg", 1, Framecount(fore))
Overlay(back, fore, x=...)
AssumeFPS(fore) # inherit frame rate
AudioDub(fore) # inherit audio

Brilliant! Thanks a lot; it's much appreciated. :)