VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Hi Folks,
    I am trying to use avisynth filters for different tasks. Avisynth has a function called AVISource where one can define the input and output files. Most of my video clips are in MPEG2 format. I saw that avisynth supports a function called MPEG2Source. This function works with the filter DGDecode.dll. I placed this dll file in the plugins folder but I am getting an error message saying the MPEG2Source function is unknown. I also tried the Load filter function without any result. Could someone help please?
    Quote Quote  
  2. You need to run DgIndex to create a D2V file (open MPG file, then File -> Save Project). Then you use Mpeg2Source("filename.D2V") to open the video. Note that the D2V is only an index and the MPG file is still required. If you use the full path option in DgIndex the MPG file must also be in its original location (or you can edit the D2V file with a text editor like NotePad).
    Quote Quote  
  3. Thanks jagabo. I have done exactly what you wrote. The file is called Atlantis. After running the DgIndex in the same folder now there are 4 files. Atlantis.mpg (Original), Atlantis T802_0ch 256Kbps DELAY 0ms.ac3, Atlantis.D2V, Atlantis.log. But now I am getting an error message "MPEG2Source: Unable to load D2V file ....Atlantis.D2V". As I understand it now the MPEG2Source function is working but the video file can not be opened. Any suggestions?
    Quote Quote  
  4. Further to the above entry, I managed to run the script. This DgIndex accepts to process several files but the result is one project file D2V. Is there no other way to input MPEG2 files directly in Avisynth?
    Quote Quote  
  5. MPEG2Source is the best. You said you got the script to run, so what's the problem? Is there something specific you think it can't do for you? Your sources can be split to make multiple D2V files if that's what the second sentence of your previous post was about.

    You can use FFVideoSource:

    http://code.google.com/p/ffmpegsource/

    http://avisynth.org/mediawiki/FFmpegSource

    Or even the built-in DirectShowSource, as a last resort. But MpEG2Source is still the best for VOBs and other MPEG sources.
    Quote Quote  
  6. Originally Posted by SearchQuality View Post
    This DgIndex accepts to process several files but the result is one project file D2V. Is there no other way to input MPEG2 files directly in Avisynth?
    You can make separate index files for each file and several instances of Mpeg2Source() in your script:

    Code:
    v1=Mpeg2Source("file1.d2v")
    v2=Mpeg2Source("file2.d2v")
    v3=Mpeg2Source("file3d2v")
    # filter the different videos differently
    return(v1+v2+v3)
    You can open Mpeg2Files with DirectShowSource() (that asks Windows to open the video file so Windows must have a DirectShow reader/splitter for the container, and codecs, installed) or ffMpegSource2().

    http://code.google.com/p/ffmpegsource/
    Quote Quote  
  7. Originally Posted by manono View Post
    You said you got the script to run, so what's the problem? Is there something specific you think it can't do for you?
    The script failed twice complaining about the lack of certain Codecs. Then I ran the script using VirtualDub and it worked. Avisynth works now. My objective was to avoid converting the MPG clips to AVI before using avisynth and to get the MPEG2Source function to work. This problem is sorted. I shall use the links given by monono and jagabo. Thanks again for the help.
    Quote Quote  



Similar Threads

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