Hi there,
are there any programmes (freeware or trial) that will allow me to add a fade out at the end of an .m2v (MPEG-2 stream) video file ?
Thx in advance.
<font size=-1>[ This Message was edited by: iparout on 2001-11-13 14:08:02 ]</font>
+ Reply to Thread
Results 1 to 5 of 5
-
-
I'm afraid, this is only possible by reencoding.
Create a dvd2avi project of the .m2v file and frameserve with Avisynth.
LoadPlugin("c:\..full path..\mpeg2dec.dll")
mpeg2source("d:\..full path..\filename.d2v")
FadeOut(150)
"150" means, the last 150 frames fade lineary to black at the end. If you have a WAVSource too, the sound also fades lineary to silence.
I don't know a VirtualDub filter to do that, but probably you will find one if you search for it. Then you have to convert the .d2v with VFAPI and open the *vfapi.avi in VirtualDub and frameserve to your favorite encoder. -
Your suggestion won't work for me; let me tell you why :
I rip off a DVD,convert the whole movie in SVCD and then split the SVCD stream into multiple (2 or 3) files that will fit in 3 CDs. I want the fade out to be at the end of each CD. The problem is that I don't know where to cut the movie until I encode it. So your method wil require encoding each movie TWICE... Not for me.. Sorry.
Well, are there any programmes that will let you edit an MPEG-2 stream ?
Does Premiere support MPEG-2 edit ?
How about WebFlix's MP2 edit ? Can I do fade out with it ?
Any other ways to achieve what I want ?
Thx in advance.
<font size=-1>[ This Message was edited by: iparout on 2001-11-16 17:08:26 ]</font> -
iparout, you can not fade out by editing. This is a part of the encoding process. Sure you need to know, at which frame you want to split the file. Unless you encode in 1pass VBR mode it is very easy because you can calculate a constant bitrate and the average bitrate of a multipass VBR encoded stream.
There are several ways to split the file before you start encoding. Rip the dvd to HD in 2 or 3 parts (for example split every chapter)
If you don't like this, create 2 or 3 dvd2avi projects and create in both cases an .avs file as above.
If you don't like this, create 2 or 3 .avs files.
Let's say, you want to split at frame# 70000 and frame# 140000.
The Avisynth scripts should look like this:
LoadPlugin("c:\..full path..\mpeg2dec.dll")
mpeg2source("d:\..full path..\filename.d2v")
WAVSource("d:\..full path..\filename.wav")
Trim(0,70000) #deletes all frames after 70000
FadeOut(150) #cause the video stream to fade linearly to black at the end. The sound track also fades linearly to silence.
Save as filenamePart1.avs
LoadPlugin("c:\..full path..\mpeg2dec.dll")
mpeg2source("d:\..full path..\filename.d2v")
WAVSource("d:\..full path..\filename.wav")
Trim(70000,140000) #deletes the first 70000 frames and all frames after 140000
FadeOut(150)
Save as filenamePart2.avs
LoadPlugin("c:\..full path..\mpeg2dec.dll")
mpeg2source("d:\..full path..\filename.d2v")
WAVSource("d:\..full path..\filename.wav")
Trim(140000,0) #deletes the first 140000 frames
FadeOut(150)
Save as filenamePart3.avs and load all .avs to the batch list of your favorite encoder.
If you like to fade in as well use the following command:
Reverse.FadeOut(150).Reverse #there is no fade in command in Avisynth
As mentioned, if you use 1passVBR, you can not use this method because you can not calculate the filesize.
Then, excuse me, you are probably in trouble.
Hope it helps.
http://www.horizon.nl/~michel/default2.htm
Similar Threads
-
avisynth - how to fade in (but audio has to fade in faster)
By adom in forum EditingReplies: 13Last Post: 31st Jan 2011, 12:45 -
Fade in Fade Out CD Music Software
By mn072065 in forum ComputerReplies: 0Last Post: 6th May 2008, 08:23 -
how can I add "Fade in / Fade out" effect in my video clips
By mb508 in forum EditingReplies: 5Last Post: 9th Jul 2007, 16:02 -
fade in/fade out with smart rendering
By bmf in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 2Last Post: 10th Jun 2007, 13:33 -
Fade-in\Fade-out filter, VirtualDub MOD
By GangstaRap in forum Video ConversionReplies: 3Last Post: 21st May 2007, 20:58