VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Hello.I'm trying of make a avisynth script for edit a mpeg2 file...
    well,this is what I got write until now ...

    LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\ac3source.dll")
    LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\MPEG2Dec3.dll")

    video=Mpeg2Source("C:\MPEG_Video.d2v")
    audio=AC3Source("C:\audio1.ac3")

    and VirtualDub-1.6.14 give me this message

    avisynth Open failure:
    Mpeg2Source:couldn't open file

    Somene please would help me?
    I use avisynth 2.5 and MPEG2Dec3.dll ver 1.00 for Avisynth 2.5
    and I demuxed the mpeg2 file with DGindex.

    Thanks in advance
    Quote Quote  
  2. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Instead MPEG2Dec.dll, point it to the DGDecode.dll in the DGindex folder

    Also, update avisynth to at least 2.5.6, if not 2.5.7
    Read my blog here.
    Quote Quote  
  3. thanks for reply guns1inger!!!

    Hey man I made what you told me and worked ...but now I have another error:
    Script error:Invalid arguments to function "AC3Source"

    maybe I'm having the same problems of this case:
    http://forum.doom9.org/archive/index.php/t-40996.html

    please,what you think ?
    Quote Quote  
  4. sorry I don't realized what you told me about of upgrade my version of avisynth...
    I'll do it right now,man ...very very thanks for help me !!!
    Quote Quote  
  5. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    If you still have problems with AC3Source, try this plugin

    nicaudio_alpha3.rar

    #---------- Begin --------------------------------------------------------------------------
    SetMemoryMax(256)
    LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\nicaudio.dll")
    LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\dgdecode.dll")

    video=Mpeg2Source("C:\MPEG_Video.d2v")
    audio=NicAC3Source("C:\audio1.ac3", Channels=6, DRC=1).ensurevbrmp3sync()

    # Downmix from 5.1 to 2 Channel Stereo
    flr = GetChannel(audio, 1, 2)
    fcc = GetChannel(audio, 3, 3)
    lrc = MixAudio(flr, fcc, 0.3254, 0.2301)
    bl = GetChannel(audio, 5)
    br = GetChannel(audio, 6)
    sl = MixAudio(bl, br, 0.2818, 0.1627)
    sr = MixAudio(bl, br, -0.1627, -0.2818)
    blr = MergeChannels(sl, sr)
    MixAudio(lrc, blr, 1.0, 1.0).normalize()

    AudioDub(video, audio)


    #------------------- End -------------------------------------------------------------





    And if THAT doesn't work, install AC3ACM

    Congratulations on using Avisynth ! Smart choice. Very smart
    Quote Quote  
  6. Soopafresh,many thanks for reply,man !

    I finalized of write my first script...I made some edition in the main video...
    I was very lucky in found a tutorial in videohelp for frameserving with tmpgenc
    for obtain a mpeg-2 file:
    https://www.videohelp.com/virtualdubframeserve.htm
    ...adobe premiere imported that mpeg-2 portion without problems...well,I must edit some more video clips of the main dvd and join all that clips in premiere ...I have the cross fingers..

    The only thing that I can't make work in the script was the variables...
    only when I deleted that codes like "video=" and "audio=" the script worked...
    The rest of the code (The "trim" part) was generated automatically for a tool
    called FilmCutter http://members.aol.com/avsfilmcutter/index.html
    that have a visual mode of work with the vids...very useful tool.

    for get work my code with variables I'll probe your code and the plugins,Soopafresh.
    (I'll need the variables for more complex operations)...
    Thanks ,man, for the help and the info !
    Quote Quote  
  7. Soopafresh's script should work, though the output would be 6 channel audio.

    last line of the remix should look like
    " audio = MixAudio(lrc, blr, 1.0, 1.0).normalize() "

    channels=2 in NicAC3Source will give you nic's idea of a downmix. like below,
    " audio=NicAC3Source("C:\audio1.ac3", Channels=2, DRC=1).ensurevbrmp3sync() "



    a tool called FilmCutter http://members.aol.com/avsfilmcutter/index.html that have a visual mode of work with the vids...very useful tool.
    I agree.
    Quote Quote  
  8. Thanks ebotron ,I didn't realize of the real capacity of the Soopafresh code...
    I'll made that modifications what you told me,man...for remix my 2 channels audio source.
    great,really apreciated...Thanks,man !
    Quote Quote  
  9. When using "video=" and "audio=" you have to tell Avisynth what that means.

    You were missing one line of code:
    audiodub(video,audio)

    So, it should have looked something like this:

    LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\ac3source.dll")
    LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\MPEG2Dec3.dll")
    video=Mpeg2Source("C:\MPEG_Video.d2v")
    audio=AC3Source("C:\audio1.ac3")
    audiodub(video,audio)


    Try that incase the MPEG2 file doesn't work in Premire. Sure, you can import M2Vs in that editor, but it will usually keep reseting the flagging order with every cut. So, even if your stream is completely 24p progressive, making an edit will cause a field order reset, resulting in an framedropped interlace stream....
    Quote Quote  
  10. Thanks for your advise Guiboche!
    ...mmm....so we can't let any variable without sense floating in the code...
    really thanks!.

    Guiboche,I imported all the mpeg-2 little clips to premiere...thinking that that files was maded for tmpgenc (virtualdub frameserving ) would I have the problem that you tell? (loss frames)
    (I didn't join the files yet,becausel,later of all the cutting operation I ended with like 1.5 gb of video only,and I must select between some files that I have apart for fill a single layer dvd disc...
    Quote Quote  
  11. Yes. The coding for AVISynth has to be perfect, or won't work, or cause errors

    Sorry, but I don't understand your question.
    Quote Quote  
  12. Oh,my bad bad english ! Don't worried,man...
    Quote Quote  



Similar Threads

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