VideoHelp Forum




+ Reply to Thread
Results 1 to 23 of 23
  1. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    I know the following code works for AVI files:

    Code:
    AVISource("d:capcap1.avi")+AVISource("d:capcap2.avi") 
        +AVISource("d:capcap3.avi")
    But is there such a script for opening more than one MPEG file at the same time?
    Hello.
    Quote Quote  
  2. 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
    Quote Quote  
  3. you could also try the "mpegsource" plugin for avisynth

    loadplugin("c:\avisynthplugins\mpegsource.dll")
    mpegsource(":\movie.mpg")+mpegsource(":\movie2mpg" )
    Quote Quote  
  4. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    Thanks for the replies, guys. I still get "Unrecognized Exception". The Mpegs are encoded with same TMPGEnc template, so I cannot see what I am doing wrong.
    Hello.
    Quote Quote  
  5. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    Code:
    LoadPlugin("MPEGDecoder.dll")
    LoadPlugin("mpasource.dll") 
    
    video1 = mpegsource("file1.d2v") 
    audio1 = mpasource("file1.mpa")
    
    video2 = mpegsource("file2.d2v") 
    audio2 = mpasource("file2.mpa")
    Quote Quote  
  6. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    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.
    Quote Quote  
  7. 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?
    Quote Quote  
  8. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    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")
    This is the last one I ran, and it spits out an "Unrecognized Exception" error. Removing the last line makes the script generate a video as advertised.
    Hello.
    Quote Quote  
  9. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    @ tommy,

    What exactly is your source ??

    Example:

    * mpeg-1.filename.mpg
    * mpeg-2.filename.mpg
    * vfapi.filename.avi
    * etc.

    -vhelp
    Quote Quote  
  10. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    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.
    Quote Quote  
  11. 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?
    Quote Quote  
  12. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    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.
    Quote Quote  
  13. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    Originally Posted by FOO
    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 was using 2.0. I know I will upgrade, once I decide to get off my "rusty dusty". Oh and the frameserve idea worked! This is the winning script (with the help of VDub being able to open two frameservers):

    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")
    Thanks FOO!
    Hello.
    Quote Quote  
  14. Nice one Foo. Good bit of lateral thinking especially as you get audio as well.

    It could be the version of Avisynth (2.0) that's not working I guess. I'm using 2.5 and that definitely works for me.
    Quote Quote  
  15. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    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
    Quote Quote  
  16. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    That is what the Script generator writes in every script.
    Hello.
    Quote Quote  
  17. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    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.
    Quote Quote  
  18. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    So does this mean that the original script works with MPEGs
    when you use 2.5 ?
    Quote Quote  
  19. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    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.
    Quote Quote  
  20. 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.
    Quote Quote  
  21. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    Last time I tried Mpeg2source in Avisynth it looked terrible
    That's why I tend to use Vdub. I think there is something wrong with
    the mpeg decoder in Avisynth.
    Vdub is slower , even with just one because Avisynth runs "in process"
    with the client for one thing.
    Quote Quote  
  22. @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.
    Quote Quote  
  23. Member
    Join Date
    Apr 2002
    Location
    The State of Frustration
    Search Comp PM
    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.
    Quote Quote  



Similar Threads

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