View Full Version : How to put footage before footage, err..
Kraise
11th February 2010, 09:31
Hey, I'm wondering if I have an image file, or a 5 second video file that contained a logo, and wanted to put it before a 20minute video before encoding it, how would I do that in AVISynth?
Ghitulescu
11th February 2010, 09:52
Have you checked its manual, I don't think so :devil:
http://avisynth.org/mediawiki/AviSource
Blue_MiSfit
11th February 2010, 10:52
^ this ;)
But, because I'm feeling helpful:
video1=avisource("firstmovie.avi")
#you can also use ImageSource or something
video2=avisource("secondmovie.avi")
video1+video2
done :)
~MiSfit
Gavino
11th February 2010, 11:12
You can also do just:
avisource("firstmovie.avi", "secondmovie.avi")
But either way the two clips must have the same resolution, frame rate and audio properties, so you might need to adjust one to match the other.
Kraise
11th February 2010, 20:14
Aaah, thanks guys, but I can't seem to get it to work, well actually what I'm trying to do is put a intro video at the beginning of the real video, but I'm also muxing in an audio source later and hardsubbing subtitles so it's kinda complicated..
here's my script right now
AVISource("C:\asdf1.avi")
DirectShowSource("C:\d.mp4")
TextSub("C:\realsubs.ass")
and that ain't workin', I tried doing two DSS's but it says "Can only use 1!"
I'm guessing I'm going to have delay the audio file and subs a bit to get this to work right? sounds like a bit too much work cause I have alot of files to do..
Is there anyway to make a short video overlay logo over the footage of the video at the side of the screen and have it fade out in 10 seconds or so at the beginning? I searched and found a script but couldn't get it to work :S
editedx2// hey, if I just use Overlay("clip") with a 5 second clip wouldn't that work, as the clip would be gone in 5 seconds right?
Ok I just tried that, it did not work. The clip stayed darker when I changed opacity etc.
Sum up of what I want to do now lol:
Make a animation logo that lasts 10 seconds and overlays on the other footage, make an alpha mask for that animation. (so two .avi animation video files)
have the animation fadeout after 10 seconds, or even just cut completely off would work too.
StainlessS
11th February 2010, 23:59
You need to read what your replies tell you :)
Video1=AVISource("C:\asdf1.avi") # If Video1 Not used, then 'Last' variable is assigned to
Video2=DirectShowSource("C:\d.mp4") # If Video2 Not used, then 'Last' variable is assigned to, overwriting previous last
Titled=TextSub(Video1,"C:\realsubs.ass") # if this is correct syntax
Last=Titled + Video2 # Concatenate vids
But either way the two clips must have the same resolution, frame rate and audio properties, so you might need to adjust one to match the other.
return info(Video1) # should show specifics of Video1, same for Video2, they MUST match
Also, any fading etc has to be applied to the required part of the vid, prior to concatenation, probably :)
hydra3333
12th February 2010, 10:06
Some talk about audio ... but if I'm encoding with HCenc it doesn't accept audio ... so what do you use then ?
StainlessS
13th February 2010, 03:55
@Hydra3333
I dont use HCenc, suppose you can use anything that produces eg Mpeg1 Layer 2 compressed audio
(assuming that's what you want). After all video trimming etc, do a "Save Wav" (in virtualdub), and use
that as input. I personally like the old TMPGenc program (not TMPGenc Xpress), it was free for Mpeg1,
but payware for Mpeg2 (after 30 day free Trial). Could probably use the freeware lame (remember mpeg1
layer 2, not mpeg1 layer 3 AKA mp3).
I believe a lot of people swear by "BeSweet", I'll have to try that one day. After producing both of
your elementary streams (vid and aud) you will need to multiplex them together to make your
System stream (Mpeg1) or Program stream (mpeg2), (different names for more or less the same thing).
TMPGenc (free) has a multiplex function to create such system/program streams but also, your
eg DVD production program may accept the elementary streams without having to multiplex them.
(Multiplex:- to produce a single file containing multiple elementary streams).
Gud Luk :)
hydra3333
13th February 2010, 04:28
I use HCenc to process video and then ffmpeg to process audio and then ImagoMPEG-Muxer to mux the resulting elementary streams into a .mpg ...
However I noticed that people continue to talk about using both audio and video in the same script and wondered what they used to encode "in one go".
StainlessS
13th February 2010, 04:57
@Hydra3333
TMPGenc for me.
Here's also what I've got in my Mpeg encoders directory, cant say I've used most of them.
TMPGenc
AutoQMatEnc
AVI2MPEG
AVI2VCD
BBMPEG (Inc AVIMPEG2)
FLASKMPEG
FREEENC
HCENC
QUENC
Am sure there are many more. :)
EDIT:- Have D/L'ed ImagoMPEG-Muxer, will give a try some day.
hydra3333
13th February 2010, 06:22
With the new version of VideoReDo, if the source requries no adjustment with avisynth then I use that... unfortunately VideoReDo doesn't directly take avisynth input.
StainlessS
13th February 2010, 06:58
The name VideoRedo rings a bell, I think it's not freeware, is it?, think I tried a trial
a year or so ago. Dont seem to have it now.
see below about Proxyon.reg written earlier tonight to force VideoRedo to use AVS via VDUB.
http://forum.doom9.org/showthread.php?p=1373702#post1373702
EDIT:- Have a look in the MPEG 2 Encoder section for threads on HEnc
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.