VideoHelp Forum




+ Reply to Thread
Results 1 to 26 of 26
  1. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Dear all,

    While I am doing AVIscript for my video, I kept having error stating Mpeg2 Source couldn't open file.
    I open the TMPfull.avs and locate Line25 error:

    ideostream=mpeg2source(video)

    I have no idea what is it missing out there.

    I do have this AVIScript installed in other computer by other people before, hence no idea what is it lacking of.

    I badly need help from you guys.
    Appreciate a lot.


    Under Plugins, I have MPEG2DEC.dll already.
    What else am I lacking of?

    I am running AVIscript 2.9
    I did a test on TOOLs, only AVS - Preview seem to give me issue
    Quote Quote  
  2. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    edit: just noticed it's Aviscript, not AviSynth
    Quote Quote  
  3. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    AviScript is pretty obscure; seems to be commercial software last updated about 7 years ago.

    Anyway, apparently it generates Avisynth scripts, so if you paste the entire AVS file someone may be able to see what the problem is.
    Quote Quote  
  4. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    If it is a line of AviSynth script, then it could look like this (with video.d2v file in the same folder as .avs):

    ideostream=mpeg2source("video.d2v")


    In your case .d2v is a DVD2AVI project file (MPEG2DEC.dll is its decoder). Or use its successor DGIndex/DGDecode.dll and create new .d2v.
    Last edited by Alex_ander; 19th Aug 2010 at 07:14.
    Quote Quote  
  5. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Thanks all for the input. I do notice the last update is donkey years ago. The reason I am using it because of work nature which my ex coll taught me so.

    Alex_ander, I gotten the .d2v out from AVIscript.
    But I need the .d2v merge with .wav as .avs using that. During the Generate Video stage, I also require to key in script for converting NTSC to PAL.

    Here's my workflow.
    If anyone can tell me the easiest way, I will be glad.

    My end product must be .wmv


    Decrypt DVD using DVD decrypter
    .VOB and .IFO

    .VOB to DVD2AVI for .d2v

    Launch AVI script>
    Convert Audio (.ac3 to .wav)
    Convert Video (.d2v and .wav) - at this point of time, key in script for Subtitle path and NTSC to PAL. (to become .avs at this stage)

    After which, I drop .avs to CCE (Cinema Craft Encoder 2) to encode out .MPV

    Then under transcoding stage: .MPV to Procoder for .WMV / .AVS to Procoder for .WMA
    Merge them using Window Media Stream Editor.
    Quote Quote  
  6. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Hi all,

    It seem like using DGIndex.exe to get .d2v out is not workable.
    Also, I had replace MPEG2DEC.dll to DGDecode.dll in AVIscript 2.9 full version PLUGIN folder. Now workable.

    The error kept showing out whenever I hit Generate Video.

    Apparently, I think there's one codec or plugin missing because one of the computer I have now is workable. The rest of the 2 comps are not.
    Quote Quote  
  7. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    I am still unable to get it work.
    really hope someone can help me out.

    Is there any codec that I have to put in tho?
    Quote Quote  
  8. Nobody uses AVIScript . Unlikely that anyone can help you with that

    If you use avisynth with DGIndex, then lots of people can help you . Post the exact error message
    Quote Quote  
  9. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Thanks tho.

    May I know that if avisynth allow me to key in script for changing NTSC to PAL, convert audio from .ac3 to wav and convert video (merging of audio and video together)?

    This is what I had been using aviscript tho.






    <
    #================================================= =============
    # AVISynth-Script to generate Stream: [- No Resize -]
    # created from [AviScript] at: 24.08.2010, 10:53
    #================================================= =============

    # 01________________________________________________ ___________
    # Variables generated by AviScript
    video = "D:\NetMovie\POLICE_ACADEMY\AVI\POLICE_ACADEMY_4x3 _NTSC.d2v"
    audio = "D:\NetMovie\POLICE_ACADEMY\AVI\POLICE_ACADEMY_4x3 _NTSC AC3 T02 1_0ch 192Kbps DELOLD -83ms_5.1Downmix_44.1kHz_CorrectDelay.wav"
    masktop = 0
    maskbuttom = 0
    maskleft = 0
    maskright = 0
    #End01

    # 02________________________________________________ ___________
    # Load AviSynth PlugIns
    # DLL - for mpeg2source, SmartDeInterlace and TemporalSmoother
    LoadPlugIn("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\mpeg2dec.dll")
    #End02

    # 03________________________________________________ ___________
    # Load Video & Audio
    # read MPEG videostream
    ideostream=mpeg2source(video)
    # read WAV audiostream and mux together
    audiostream=wavsource(audio)
    audiodub(videostream,audiostream)
    # Set userdefined YUY2 - Colorspace
    ConvertToYUY2()
    #End03

    # 06________________________________________________ ___________
    # Filtering
    # deinterlace with SmartDeInterlace
    ConvertToYUY2().SmartDeinterlace(2,15,false,false, false)
    #End06

    #EndAll
    >
    Quote Quote  
  10. It depends what the source is , and if you used forced film to make it native progressive (or inverse telecined by some other method)

    You script has some deinterlacing in it , so I'm not sure what you are doing . If it's NTSC source , you would IVTC it normally, then do a PAL speedup (for both audio & video 24000/1001 => 25 ) . It's unlikely an interlaced source, so you would not deinterlace probably (especially since it says "police academy" - this suggests it's a film source)

    And yes, it can be done in avisynth . I suspect a lot of the code is similar , and maybe aviscript is just a front end or tool GUI for avisynth. I personally would resample the audio in eac3to or besweet , and do the video in avisynth
    Last edited by poisondeathray; 23rd Aug 2010 at 22:03.
    Quote Quote  
  11. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    What normally I did is to get the DVD to decrypt, then on DVD2AVI to get D2V, which about the same as DGindex.
    Hence, dropping to AVI Script to do the converting of audio and video.

    I have a script to change the NTSC to PAL. While playing back, there's no issue on my end. It is rather an easy step.


    Now I have downloaded avisynth2.5, I do not see any .exe file for me to start up tho.
    Quote Quote  
  12. you have a typo ; it should be

    videostream=mpeg2source(video)



    because audiodub(videostream,audiostream) calls "videostream" not "ideostream"

    It really looks to me like this is just a script writing tool for avisynth, everything else looks familiar , although you should still use dgindex and dgdecode.dll , because mpeg2dec.dll has been documented in causing decoding errors

    The earlier comments on deinterlacing are still important - I'm guessing you are deinterlacing when you shouldn't be if it's a telecined source . And even if it was interlaced, the filter you are using is very very poor in quality. It is very old, there are much better ones now


    *The very 1st thing you should do is determine what your source is: is it telecined film source ? or interlaced ?
    http://neuron2.net/faq.html#analysis
    Last edited by poisondeathray; 23rd Aug 2010 at 22:22.
    Quote Quote  
  13. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Thanks, I will get on starting and figure to change the whole working process if avisynth work on my end.

    The script that you mention about the interlacing is auto generate from aviscript. As for that, it load AVI Synth plugins as well according to the script posted here.


    Seriously speaking, I just joined this company for 6months and it is my ex coll taught me to use aviscript. I have to tally the subtitle and audio delay as well.
    If there's 2 disc (part 1 and 2) involved, I have to make sure disc 2 audio does not drift.

    The final result will be .avs which we will drop in CCE for encoding. (According to my superior, she claimed that by doing through CCE, everything will be fine, hence the step required)

    I guessed that their intention is to script the feature by having the subtitle and changing of NTSC to PAL format.

    The final result must be in .wmv (for VOD)



    Sorry, the typo of videostream is human error (me)
    Last edited by pboong; 23rd Aug 2010 at 22:41.
    Quote Quote  
  14. Originally Posted by pboong View Post

    Now I have downloaded avisynth2.5, I do not see any .exe file for me to start up tho.
    There is no exe to start up . Everything is done in scripts. You can use avsp for example. Or even notepad , and rename the .txt extension to .avs . I think you might still be able to use the aviscript that you are using now, I would just update a few of the plugins and decoders . It' s probably just an avisynth script writing tool

    You should really consider updating your whole process . All the filters, decoders are newer . Lots of people can help you if you use avisynth with modern filters , but not very many can help you if you use outdated tools and filters
    Quote Quote  
  15. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Yes, when I took over and did a lot of research about aviscript, it is way too outdated.

    Hence, I decided to change the entire working process.

    I will use DGindex to get the .d2v from .VOB
    Right now, all I can use for aviscript is to get the .ac3 out to .wav



    But I am lost at this point.
    How do I start using avisynth for converting of audio and video? As above script shown, that is the result after I generate the video of audio and video together.
    If I were to use avi synth, how do I get it going to generate video tho?
    Quote Quote  
  16. Everything is almost the same in terms of syntax as what you are using now. It's just some filters and plugins you were using were outdated (may give errors or worse quality) . I recommend Avsp as a script editor

    You can use NICAC3Source() for the AC3 audio, you don't have to convert to WAV. Avisynth feeds uncompressed audio .

    Avisynth is a frame server . It decodes video (+/- audio) and serves uncompressed to another application. You still have to feed that script to another encoder that accepts .avs scripts (same as you were doing before with CCE)

    Instructions are in the DGIndex zip file . You can read avisynth mediawiki for more information . If you get stuck, ask questions, but everything is almost the same (but use DGIndex instead of mpegdec.dll) , and figure out your source characteristics as mentioned above (ie.. don't deinterlace for a film source)

    http://avisynth.org/mediawiki/Main_Page
    http://avisynth.org/mediawiki/First_script
    http://avisynth.org/mediawiki/Getting_started
    Quote Quote  
  17. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Great.
    Procoder 3 read .ac3 as well. Because at this stage, I got to transcode to .wma tho.


    Actually can I copy paste the script from aviscript to avisynth (using avsP)?


    Something like that?

    #================================================= =============
    # AVISynth-Script to generate Stream: [- No Resize -]
    # created from [AviScript] at: 24.08.2010, 12:35
    #================================================= =============

    # 01________________________________________________ ___________
    # Variables generated by AviScript
    video = "D:\NEW_VOD\Oceans_Eleven\VOB\MainMovie\OCEANS ELEVEN 2001_NTSC_16x9.d2v"
    audio = "D:\NEW_VOD\Oceans_Eleven\VOB\MainMovie\OCEANS ELEVEN 2001VTS_TEST T80 3_2ch 448Kbps DELAY -16ms.ac3"
    masktop = 0
    maskbuttom = 0
    maskleft = 0
    maskright = 0
    #End01

    # 02________________________________________________ ___________
    # Load AviSynth PlugIns
    # DLL - for mpeg2source, SmartDeInterlace and TemporalSmoother
    LoadPlugIn("C:\Documents and Settings\AVGuys.MERCURY\Desktop\dgmpgdec158\DGDecode.dll")
    #End02

    # 03________________________________________________ ___________
    # Load Video & Audio
    # read MPEG videostream
    videostream=mpeg2source(video)
    # read WAV audiostream and mux together
    audiostream=wavsource(audio)
    audiodub(videostream,audiostream)
    # Set userdefined YUY2 - Colorspace
    ConvertToYUY2()
    #End03

    # 06________________________________________________ ___________
    # Filtering
    # deinterlace with SmartDeInterlace
    ConvertToYUY2().SmartDeinterlace(2,15,false,false, false)
    #End06

    #EndAll


    Apart from there, I do not know what else I need to edit.
    This is origin generate from aviscript, I only change the Plugin and Movie/Audio path
    Quote Quote  
  18. Why are you deinterlacing a progressive movie (and using an old and out of date deinterlacer to do it)?
    Quote Quote  
  19. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Hi Manono,

    You mean aviscript as very old right?

    I am at the midst of trying to use avisynth, however, I have zero idea how to start with.

    BTW, all progressive movie does not require to deinterlace? Please advise me on that.
    What if I captured the movie from Digibeta? Do I need to deinterlace during CCE?

    Appreciate for everyone's help.
    Quote Quote  
  20. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    About the audio:

    Originally Posted by pboong View Post
    Code:
    audio = \\"D:\NEW_VOD\Oceans_Eleven\VOB\MainMovie\OCEANS ELEVEN 2001VTS_TEST T80 3_2ch 448Kbps DELAY -16ms.ac3\\"
    
    # read WAV audiostream and mux together
    audiostream=wavsource(audio)
    audiodub(videostream,audiostream)
    Does this work -- do you hear audio when you play it?
    Wavsource plays waves, as far as I know, not AC3.

    You can use several "source" functions to load AC3, as mentioned by others, eg NicAC3Source("file.ac3").
    Though the built-in DirectShowSource("file.ac3") may work if you have, eg, ffdshow codecs.

    But why bother if you are going to convert this all to WMP?

    How are you going from AVS to WMP anyway? Can you just use the AC3 file in that?

    If you're not using any Avisynth filters to modify the video, just converting it, simpler to use a dedicated converter like XMediaRecode to go directly from your source to your final format.
    Quote Quote  
  21. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Hi AlanHK,

    Yes, actually it is purely converting.
    The only thing I need to add on is the YUV and changing of NTSC to PAL.

    this is what i do from .avs stage to .wmv

    drop .avs to CCE - Encode out as .mpv
    (According to my superior, she said that anything go into CCE will be stable)

    Then .mpv to Procoder to get .wmv

    For audio,
    .avs to Procoder for get .wma

    If there are 2 audio involved, I use Window Stream Editor to merge them together. If not, Procoder will do just fine with 1 audio.

    My superior do not want to get any drop of quality during any stage.
    Quote Quote  
  22. Originally Posted by pboong View Post
    BTW, all progressive movie does not require to deinterlace?
    Movies are progressive. If it was NTSC and encoded as progressive you would make the D2V using Forced Film and get a progressive 23.976fps D2V. If it's hard telecined you make the D2V using Honor Pulldown Flags (the default and probably what you used) and then IVTC in the script (not deinterlace). If PAL you use Honor Pulldown Flags and do nothing more (no deinterlace). And in the off chance it's field-blended you unblend it (probably not the case here). A small 10 second sample, one with steady movement, uploaded somewhewere would allow us to advise better. Deinterlacing it will ruin it.
    My superior do not want to get any drop of quality during any stage.
    Tell your superior you'll get a drop in quality at all stages as you're using lossy codecs. However, better would be to go direct to WMV and skip the CCE step. Procoder accepts AviSynth scripts.
    Quote Quote  
  23. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    Thanks manono.

    I am trying to change anything that is possible to get the .vob to .wmv tho.
    However, what if i have a Disc 1 and 2? How do I merge them together then?

    BTW, if the DGIndex tell me that the movie is progressive, I should not try to deinterlace them, right? By doing that, it will be hard telecined. How will the image look like if it is hard telecined?
    Quote Quote  
  24. When you run the preview and it says film and progressive set the Field Operation to Forced Film and you'll get a progressive 23.976fps D2V. Don't deinterlace. Hard telecine looks like 3 progressive and 2 interlaced frames in every 5 frame sequence. Set the Field Operation to Honor Pulldown Flags and it gets IVTC'd in the script back to progressive 23.976fps. Don't deinterlace.

    Are you saying Oceans 11 is divided over 2 discs?

    video1 = "D:\NEW_VOD\Oceans_Eleven\VOB\MainMovie\OCEANS ELEVEN 2001_NTSC_16x9_Part1.d2v"
    video2 = "D:\NEW_VOD\Oceans_Eleven\VOB\MainMovie\OCEANS ELEVEN 2001_NTSC_16x9_Part2.d2v"
    video1+video2
    Quote Quote  
  25. Member
    Join Date
    Jul 2010
    Location
    Singapore
    Search PM
    manono - just an example. Because there are dvd that divided into 2 parts.

    So if there are D1 and D2, all I need to write down the script is as you mentioned?



    (example)
    video1 = "D:\NEW_VOD\Oceans_Eleven\VOB\MainMovie\OCEANS ELEVEN 2001_NTSC_16x9_Part1.d2v"
    video2 = "D:\NEW_VOD\Oceans_Eleven\VOB\MainMovie\OCEANS ELEVEN 2001_NTSC_16x9_Part2.d2v"
    video1+video2


    Am I right to say that this will be the first line to be key in to avsp?



    Then when i add in audio, it will be:

    audio = \\"D:\NEW_VOD\Oceans_Eleven\VOB\MainMovie\OCEANS ELEVEN 2001VTS_TEST T80 3_2ch 448Kbps DELAY -16ms.ac3\\"

    # read WAV audiostream and mux together
    audiostream=wavsource(audio)
    audiodub(videostream,audiostream)

    After which, how about the YUV code?


    SUBtitle (Example)

    # 07
    VobSub("C:\VCD\VCD_STILL_LIFE\SUB1\VTS_01_0.idx")
    #End07



    This is the NTSC to PAL code:

    # Separate fields and interpolate them to full height.
    Bob()
    # Resize to PAL square-pixel frame size
    BicubicResize(720,576)
    # Convert field rate to PAL, using Blend Mode.
    ConvertFPS(50)
    # Undo Bob, even field first. Use SelectEvery(4,1,2) for odd field first.
    SeparateFields.SelectEvery(4,1,2)
    # Finish undoing Bob
    Weave



    Thanks for the information,
    I will not deinterlace when I see film/progressive.

    BTW, where do I find "Set the Field Operation to Honor Pulldown Flags" ?
    Quote Quote  
  26. Originally Posted by pboong View Post
    BTW, where do I find "Set the Field Operation to Honor Pulldown Flags" ?
    Video->Field Operation
    Quote Quote  



Similar Threads

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