VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. 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>
    Quote Quote  
  2. Member
    Join Date
    Feb 2001
    Location
    Berlin, Germany
    Search Comp PM
    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.
    Quote Quote  
  3. 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>
    Quote Quote  
  4. Member
    Join Date
    Feb 2001
    Location
    Berlin, Germany
    Search Comp PM
    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!