2006-01-27, 01:34 | Link #1 |
助けて!
Join Date: Dec 2005
Location: フリスコ
|
Making video clip from a still image
Hi. Does anybody know how to make a video from a still image? For example if you had a jpeg with the credits for your episode, and you would want it to play for 10 seconds before the episode starts. Any help is greatly apprieciated!
|
2006-01-27, 14:16 | Link #3 | |
I am mowing clowns
Join Date: Dec 2005
|
Quote:
Example (note: I'm using a consumer grade toy like ImageReady just to illustrate my point, but any professional or semi professional editing program functions the same way.) Here are your three frames for the animation: Black -> JPEG For Credits -> Black Add time delays to your black and the image you want to roll credits on: Add your credits on top of your image (if they aren't already there) and render the animation to whatever file type you need. I'm using GIF for the sake of this demonstration: And you're done. You can also add a fade-up and fade-out to it to spiff it up a bit: Hope that helps. Cheers. |
|
2006-01-27, 14:18 | Link #4 |
King of Hosers
Join Date: Dec 2005
Age: 41
|
I think I understand what you mean. Simple command using AviSynth, which you are hopefully already using. At the end of your AVS it would go something like this...
Code:
AssumeFPS(23.976) Final = last ImageSource("C:\nifty_picture_with_credits.jpg",end=250,fps=23.976).ConvertToYV12()+Final.Trim(250,0) |
2006-01-28, 01:54 | Link #5 |
助けて!
Join Date: Dec 2005
Location: フリスコ
|
Thanks, it worked! But there's one problem. I can't add it to my episode! I tried changing the frame rates in virtualdub, but it still won't let me! Is there any way to merge them? I tried the splice in avisynth but had the same problem.
|
2006-01-28, 12:19 | Link #6 |
King of Hosers
Join Date: Dec 2005
Age: 41
|
Well let me show you a more complete AVS as maybe you did it incorrectly.
Code:
AVISource("C:\My_little_AVI.avi") #All of your lovely filtering goes here #this goes at the very last part of the AVS AssumeFPS(23.976) Final = last ImageSource("C:\nifty_picture_with_credits.jpg",end=250,fps=23.976).ConvertToYV12()+Final.Trim(250,0) |
2006-01-28, 14:45 | Link #7 |
助けて!
Join Date: Dec 2005
Location: フリスコ
|
Nicholi that's what I did. I looked at gspot to see what the frame rate is and it was 23.976. I then created a new a new script for good measure:
avisource("c:\ep18.avi") AssumeFPS(23.976) Final = last ImageSource("C:\splash18.jpg",end=250,fps=23.976). ConvertToYV12()+Final.Trim(250,0) And now I get virtualdub saying that it can't splice because one clip has audio and the other does not! |
2006-01-28, 14:56 | Link #8 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
Most of the time, doing audio in avisynth is not the best of ideas... but, well, if you want to do that, you need to do something like this:
Code:
original = avisource("c:\ep18.avi") original.killaudio() AssumeFPS(23.976) Final = last ImageSource("C:\splash18.jpg",end=250,fps=23.976).ConvertToYV12()+Final.Trim(250,0) audiodub(last, original) Code:
AssumeFPS(23.976) ImageSource("C:\splash18.jpg",end=250,fps=23.976).ConvertToYV12()+last.Trim(250,0)
__________________
|
2006-01-28, 15:25 | Link #9 |
助けて!
Join Date: Dec 2005
Location: フリスコ
|
Thanks Thefluff! I tried what you said, but now it vd says frame sizes don't match. I can create a clip with Nicholi's script if I change the trim 250,0 to trim 0,250. But vd won't let me append the clip with my finished episode. I would like to attach this "splash" at the beginning of my episode as one avi to distribute it on the web. It just seems more complicated that it should be.
|
2006-01-28, 16:07 | Link #10 |
Gendo died for your sins.
Fansubber
Join Date: Dec 2005
|
Your image has to have the same resolution of the video file you're trying to attach it to. So if your encoded file is 640x480, your image file *has* to be 640x480, otherwise as you've discovered you'll get an error. Fairly easy to correct, just resize or crop the necessary parts in your image applicaton of choice, then try again.
|
2006-01-28, 17:14 | Link #11 |
助けて!
Join Date: Dec 2005
Location: フリスコ
|
Thanks Eeknay! You know I forgot to resize after I cropped! But now when I load it in vd, it plays the first 250 frames and stops. With the audio of my episode playing in the background. I want it to play the "splash" silently, then have the episode start. Should I start this from scratch when I clean up my raw etc, or can I just append it to my complete episode?
|
2006-01-28, 21:39 | Link #12 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
Ah, so you wanted it silent in the beginning? No problem, that is doable with some more AVS magic:
Code:
avisource("c:\ep18.avi") AssumeFPS(23.976) episode = last ImageSource("C:\splash18.jpg",end=250,fps=23.976).ConvertToYV12() audiodub(last, blankclip(episode,length=250)) last++episode
__________________
|
2006-01-29, 08:05 | Link #14 |
King of Hosers
Join Date: Dec 2005
Age: 41
|
Ahh yes I totally forgot to mention the resolution of the image matters to, which is why it was bugging you. Also my method meant to simply add the image into the first 10 seconds of the current video, while TheFluff's actually made the video 10 seconds longer. Not that either really makes much of a difference unless you don't have 10 seconds of blank/silent space at the beginning of the video, my mistake.
|
|
|