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.
+ Reply to Thread
Results 1 to 5 of 5
-
-
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.
-
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. -
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.
Similar Threads
-
Avisynth Script for letterboxed mp4 to mpg?
By Robert Simandl in forum Video ConversionReplies: 1Last Post: 16th Sep 2011, 16:57 -
How to append mpeg files in avisynth?
By dylz in forum EditingReplies: 3Last Post: 19th Mar 2011, 19:20 -
Need Help with My AviSynth Script
By Enkidu in forum Newbie / General discussionsReplies: 3Last Post: 21st Jan 2011, 21:37 -
script to append numbered .avi sequence via AviDemux?
By MilesAhead in forum Video ConversionReplies: 2Last Post: 13th Jan 2010, 00:24 -
Avisynth Script Help
By jamhat in forum Video ConversionReplies: 2Last Post: 29th Nov 2009, 06:13