View Full Version : Add individual frames on avisynth
sirt
3rd January 2013, 19:24
Hi,
This subject has probably been covered but I didn't manage to find something easy to understand, so here are my questions :
1) Let's say I have three frames 1.jpg, 2.jpg, 3.jpg with identical properties. How could I join them one by one by using AVIsynth ? Let's say I want 1 as the input frame, then 2 and finally 3. Howhever, I would need to recompress this AVS file then, wouldn't I ? Or is there a way to mux those individual frames together and create a video stream without reencoding ?
2) Same question but with different frames : 1 would have a different size than 2 for example.
poisondeathray
3rd January 2013, 19:48
Hi,
This subject has probably been covered but I didn't manage to find something easy to understand, so here are my questions :
1) Let's say I have three frames 1.jpg, 2.jpg, 3.jpg with identical properties. How could I join them one by one by using AVIsynth ? Let's say I want 1 as the input frame, then 2 and finally 3. Howhever, I would need to recompress this AVS file then, wouldn't I ? Or is there a way to mux those individual frames together and create a video stream without reencoding ?
2) Same question but with different frames : 1 would have a different size than 2 for example.
avisynth frameserves uncompressed video, so unless you want to leave it as uncompressed video, you have to re-encode with something
You can use ImageSource() to string together an image sequence
http://avisynth.org/mediawiki/ImageSource
You cannot use different sized frames (assuming you meant dimensions)
sirt
4th January 2013, 00:31
Okay thanks but what if I have 2000 frames I would like to join together, is there some formula or something ? May you write some example ?
poisondeathray
4th January 2013, 00:38
Okay thanks but what if I have 2000 frames I would like to join together, is there some formula or something ? May you write some example ?
It tells you how in the instructions in the link above
eg.
img_0001.png
img_0002.png
.
.
.
img_2000.png
ImageSource("img_%04d.png" , start=0, end=2000, fps=29.97)
StainlessS
4th January 2013, 01:37
You might take a look here:
http://forum.doom9.org/showthread.php?p=1604080#post1604080
That script is adapted for special purpose, you need to modify some settings to default.
AUTOCROP_THRESH = 0.0
SCANPERC = 50.0
You can change other settings to taste.
You also need RT_Stats v1.06 which includes QueryBorderCrop.avs and QueryLumaMinMax.avs, and GScript.
It joins together pics of different sizes into a sort of slideshow, auto cropping borders, auto levelling, resizing or original size,
border padding to chosen aspect ratio.
If not in a hurry, wait a few days and I'll update RT_Stats together with an update to that script as a script function.
StainlessS
8th January 2013, 08:05
Sirt, see here for previously mentioned image splice func.
http://forum.doom9.org/showthread.php?p=1609686#post1609686
sirt
14th January 2013, 01:56
Sorry I haven't seen your last answers. Thank you. Then do you mean your latest script will allow to join frames whatever their origin ? I'm not sure to know how to use it, would you just give an example if I want to join frames 1.jpg, 2.jpg and 3.jpg for example ?
StainlessS
14th January 2013, 02:54
Give it the directory name, and how you want it to come out, fairly basic, try it out, it's pretty good and
perhaps better than any alternative, perhaps not, nobody is allowed to say "****", not on D9.
EDIT: You will not break it, give it a go, use your common sense, it dont need much instruction.
EDIT: If all else fails, just give it a directory/path (or as a last resort, put pics in same dir, and go to sleep)...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.