VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member ks47's Avatar
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    I’m having problem combining .mpg video clips; originally these videos were from a same TV source. These open fine with DirectShowSource as individuals but when I use scripts as stated in the guide, I get an error message.



    What do you think, I’m doing wrong? Thanks!

    TS
    Quote Quote  
  2. Try something like:

    v1 = DirectshowSource("video1.avi")
    v2 = DirectshowSource("video2.avi")
    v3 = DirectshowSource("video3.avi")
    return(v1+v2+v3)

    All should have the same frame size, frame rate, etc. Consider using DGIndex/DGDecode and MPEG2Source() instead of DirectShowSource().
    Quote Quote  
  3. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by ks47
    I'm having problem combining .mpg video clips; originally these videos were from a same TV source. These open fine with DirectShowSource as individuals but when I use scripts as stated in the guide, I get an error message.
    What is your actual script?

    What is the error message?

    Anyway, Avisynth is probably not the best choice unless you're converting it to AVI or another format. If it's just joining MPEGs and outputting it as MPEG, use an MPEG editor.
    https://www.videohelp.com/tools/sections/video-editors-mpg-dvd
    Quote Quote  
  4. Member ks47's Avatar
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Try something like:

    v1 = DirectshowSource("video1.avi")
    v2 = DirectshowSource("video2.avi")
    v3 = DirectshowSource("video3.avi")
    return(v1+v2+v3)

    All should have the same frame size, frame rate, etc. Consider using DGIndex/DGDecode and MPEG2Source() instead of DirectShowSource().
    Thanks for your suggestion. I tried the script and the programs just locks up, without any error messages. I used the DirectShowSource extension .mpg instead of .avi because the video clips are saved from TV via a DVD recorder. The sources are from the same standard NTSC program, i.e., the same resolution, frame rate, and aspect ratio. (I even check with GSpot to make sure) BTW, I have been using DGIndex for frameserving and it has worked great, but I thought I would give AviSynth a whirl. It’s more difficult than I thought…

    “AlanHK”
    What is your actual script?

    What is the error message?
    Individually the scripts seem to be OK because they play in VD and WMP; however, as soon as I tried use the either of the two scripts that are given in the original examples, the error messages like this would appear (The same message for VD and WMP):



    TS

    Edit: While trying to clone the example scripts above, I used DirectShowSource .mpg rather than avi as was stated in the in the initial post.
    Quote Quote  
  5. So you have been using MPEG2Source("video1.d2v") but decided to try DirectShowSource() instead? That may imply some sort of problem with the installed Directshow MPEG2 decoder or file splitter.
    Quote Quote  
  6. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by ks47
    Individually the scripts seem to be OK because they play in VD and WMP; however, as soon as I tried use the either of the two scripts that are given in the original examples, the error messages like this would appear (The same message for VD and WMP):
    I don't want to be boring, but what exactly is YOUR script?

    One possibility is that the filenames are causing problems. You have spaces, commas, full stops in them. Some programs choke on these (thus "was not found" errors). Rename files and folders to simple, short names and try again.
    Quote Quote  
  7. Member ks47's Avatar
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    Originally Posted by AlanHK
    I don't want to be boring, but what exactly is YOUR script?... Rename files and folders to simple, short names and try again.
    Thnaks for your input. I don’t want to seem ungrateful, but you’re right I am getting bored. Here are samples of scripts besides 3 dozen others I’ve tried after renaming video files to A & B:

    1. UnalignedSplice(DirectShowSource("G:\Video Music\A.00.mpg"), DirectShowSource("G:\Video Music\B.01.mpg"))

    2.DirectShowSource("G:\Video Music\A.00.mpg") + DirectShowSource("G:\Video Music\B.01.mpg")

    TS
    Quote Quote  
  8. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    You still have an extra period in your filenames.
    Get rid of that.

    Then try just one file:

    Code:
    DirectShowSource("G:\Video Music\A00.mpg")
    If each can be displayed separately, then try joining.
    Quote Quote  
  9. Member ks47's Avatar
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    So you have been using MPEG2Source("video1.d2v") but decided to try DirectShowSource() instead? That may imply some sort of problem with the installed Directshow MPEG2 decoder or file splitter.
    Maybe I misunderstood your statement, initially. What I meant to say was I use DGIndex and VFAPIConvEn to frameserve (This guide will describe how to frameserve a DVD (or MPEG2/MPG/TS/HDTV files) by Baldrick). I reread your post and I will try your advice, i.e., source scrip with MPEG2 using DGIndex/Decode. Thanks!

    TS
    Quote Quote  



Similar Threads

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