I know the following code works for AVI files:
But is there such a script for opening more than one MPEG file at the same time?Code:AVISource("d:capcap1.avi")+AVISource("d:capcap2.avi") +AVISource("d:capcap3.avi")
+ Reply to Thread
Results 1 to 23 of 23
-
Hello.
-
This works for me:
LoadPlugin("c:\program files\avisynth 2.5\plugins\mpasource.dll")
vid = directshowsource("d:\capture 1\ati 023.mpg")+ directshowsource("d:\capture 1\ati 024.mpg")
aud = mpasource("d:\capture 1\ati.mpa",true)
audiodub(vid,aud).bicubicresize(720,576)
Doesn't seem to handle embedded audio in an mpeg so I run the mpeg2's through DVD2AVI to get an mpa file and pass that through the above script.
Hope this is sort of what you were after -
Code:
LoadPlugin("MPEGDecoder.dll") LoadPlugin("mpasource.dll") video1 = mpegsource("file1.d2v") audio1 = mpasource("file1.mpa") video2 = mpegsource("file2.d2v") audio2 = mpasource("file2.mpa")
-
I get the same error with the "mpegsource" command as well. Is everyone getting video as well? If I try the script with one file, it works. But if I try with more than one file at the same time, look out!
Hello. -
Stupid question I know but seeing as it works with one file it couldn't be something as simple as a syntax error? A missed quote or parenthesis, something daft like that?
-
I use AVSGEN to write my script for me usually, and manually if it has problems or lack of scope.
Code:LoadPlugin("C:\Program Files\AVSGEN\bin\MPEG2DEC.dll") LoadPlugin("C:\Program Files\AVSGEN\bin\MPEGDecoder.dll") video1 = mpegsource("1.mpg") video2 = mpegsource("2.mpg")
Hello. -
@ tommy,
What exactly is your source ??
Example:
* mpeg-1.filename.mpg
* mpeg-2.filename.mpg
* vfapi.filename.avi
* etc.
-vhelp -
I encoded two mpeg files with the same template in TMPGEnc. I named them "1.mpg", and "2.mpg". No matter which script I use, if I list one file, the video comes up. But if I add the name of the second file, I get the error. If I remove the second file, the video returns.
Hello. -
Sorry I'm not familiar with AVSGEN but are those 4 lines of code all that it produces?
If not could you display the full script? -
Well I posted that without trying it. Sorry I will get on it tomorrow
It seemed OK because I do multiple files with
Avisource. Snot clear why it's different.
Maybe there can't be 2 instances of the decoder.
BTW what version ov avisynth are we using ?
what if you open each MPEG in vdubmod and create 2 frameservers
and open each of those in avisynth with avisource. If that
works you get automatic audio..
I'll find out. -
Originally Posted by FOO
Code:LoadPlugin("C:\Program Files\AVSGEN\bin\MPEG2DEC.dll") LoadPlugin("C:\Program Files\AVSGEN\bin\Decomb.dll") LoadPlugin("C:\Program Files\AVSGEN\bin\AVISynth_Spatial.dll") LoadPlugin("C:\Program Files\AVSGEN\bin\SimpleResize.dll") LoadPlugin("C:\Program Files\AVSGEN\bin\MPEGDecoder.dll") LoadPlugin("C:\Program Files\AVSGEN\bin\Convolution3D.dll") AVISource("C:\vdr1")+AVISource("C:\vdr2")
Hello. -
I still haven't gotten around to finding out why the mpeg
thing doesn't work, but I will
@feenix , what works with 2.5 , the mpeg or the Vdub ?
Tommy , How come you got 2 mpeg decoder plugins in there ?
It snot mpeg anymore -
That is what the Script generator writes in every script.
Hello. -
Update:
I guess Feenix had it bagged from day one. I finally got around to updating to 2.5. My script generator hates the updates, but Virtual Dub and TMPGEnc are "screaming", "What took you so long, Chief?"Hello. -
So does this mean that the original script works with MPEGs
when you use 2.5 ? -
Yes, it works as advertised. I do not know why it does not work in 1.0, 2.0, but it works fine in 2.5.
Hello. -
Tommy
Glad you got it working now.
Foo
Both the mpeg and vdub way works in 2.5. I tend to use Directshowsource as apposed to mpegsource as I get a better 'picture' quality (go figure!). I've tried all sorts of ConverttoRGB,YV12 etc but they all give bad results with mpegsource. Your vdub way of doing it is quite nice though but does it not have a slight overhead as you're sort of double frameserving? The other thing is using mpasource because the audio can be 'normalised' before frameserving which is quite useful is some cases. -
@Tommyknocker: The reason mpegsource does not work in 1 or 2.0, but it does work in 2.5 is, the plugin's from 1.x 2.x re not compatible with 2.5x
2.5 works in yv12 color space. (Which is what mpeg-4, and mpeg-2 stores their info in, so it's faster and better for DVD transcoding. no colorspace conversion. Faster too!
(yv12 is only 12 bits of color per pixel instead of RGB 24.
Also, mpeg2dec won't work for mpeg1 files. (I saw someone posted a broken sript with mpeg2dec.dll in one of these here posts, whoever that was.)
Cheers. -
Thanks for your post, I really appreciate your input, but this is how it transpired:
When I first started using 1.0, I noticed I could join several AVI files, but not MPEG files (before 2.0 was ever released)
When 2.0 was released, I upgraded, and used it but did not upgrade to 2.5 when it was released. But still could not join MPEG files.
Yesterday, I decided to ask the gurus if they knew how to join the mpeg files with AviSynth. I still had not downloaded 2.5. They responded quickly, as is their way, and posted the script that works in 2.5, which did not work for me of course, since I was still running 2.0.
Finally, Feenix mentioned I try 2.5, which I finally downloaded, and lo, and behold, it worked. So I never had an compatibility issue, per se, except when converting AVS GEN plugins to 2.5 files. But my manual scripts did what they supposed to under 2.5.
As for the MPEG-1 issue, the files I was using were both MPEG-2 DVD format which I encoded specifically for my experiment, so it never was at issue.
Thanks again!Hello.
Similar Threads
-
Can't open FLV with Avisynth
By Greensmurfet in forum Video ConversionReplies: 1Last Post: 21st Oct 2011, 18:00 -
How to append mpeg files in avisynth?
By dylz in forum EditingReplies: 3Last Post: 19th Mar 2011, 19:20 -
AviSynth open failure:
By rocky12 in forum Newbie / General discussionsReplies: 11Last Post: 29th Jul 2008, 20:35 -
Vegas Pro 8 Cannot Open MPEG or AC3 Files
By kidcash in forum Newbie / General discussionsReplies: 14Last Post: 26th Dec 2007, 19:53 -
Cant Open MPEG Files!!!!
By MRSTI in forum Newbie / General discussionsReplies: 23Last Post: 16th Nov 2007, 13:15