VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    May 2002
    Location
    Germany
    Search Comp PM
    Hey all. I have seen somewhere that someone posted an avisynth script to append an mpeg clip. So instead of loading just 1 mpeg, it would load 2, and then use the processing settings to edit both back to back as one clip.

    I have a script alread, but doesnt seem to work:

    FFMpegSource2("%1",atrack=-1)++\
    FFMpegSource2("buffer.mts",atrack=-1)
    DelayAudio(1.2)


    I have edited it to load mpegs but cant load mpegs with ffmpegsource, but I can with DirectShowSource. So I have tried this script:

    DirectShowSource("%1")
    DirectShowSource("buffer.mpg")
    DelayAudio(1.2)


    When I use the above script, I am only loading and editing the second clip. I cant seem to get an mpeg to do the same trick as the sample on top does with MTS files.
    Quote Quote  
  2. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    You forgot the ++ to join them.
    You were loading one, then throwing it away when you loaded the second one.

    Code:
    DirectShowSource("%1") ++\
    DirectShowSource("buffer.mpg") 
    DelayAudio(1.2)

    See Splice.

    However, it's not really a good idea to join MPEGs with Avisynth. It decodes the input and you have to reencode to make a new MPEG, which is pretty slow and will cause a quality loss.
    There are MPEG editors listed here in the tools section that can join without reencoding. I like MPEG-VCR but it isn't free.

    But if you want to do any filtering beyond a simple join, then you'll need to reencode, so go ahead.

    The usual way to load MPEG though is to use the DGMPGDec plugin.
    Last edited by AlanHK; 8th May 2010 at 03:59.
    Quote Quote  
  3. Member
    Join Date
    May 2002
    Location
    Germany
    Search Comp PM
    I am sure I tried it with the ++\, but maybe I will try it again. I will be using some filters, so I need to recode the entire thing again. Thanks for the reply!!

    Will let you know how it works.
    Quote Quote  
  4. DirectShowSource() isn't always frame accurate. Use DgIndex to build an index (.d2v) file of all your MPEG sources, then use Mpeg2Source("filename.d2v") instead.
    Quote Quote  
  5. Member
    Join Date
    May 2002
    Location
    Germany
    Search Comp PM
    Thanks for all the replys guys. I will look into your info jagabo if I encounter any problems, but for now its working great. What I am doing is batch encoding a bunch of movie clips on a crappy camcorder. It had digital image stabilization, but wasnt very good. I am using a script I found from another member on this forum (MJ Peg, thanks, I should remember to thak you on the other forum. BTW its working!!!). Its around 11;30pm, so maybe I should post a topic how its working, it could help other people how to do a batchlist with vdub and deshaker.
    Quote Quote  



Similar Threads

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