VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    Hi
    I have now a basic but nice scriptcode in batch that I can easy create AVI for the program I recording on TV.

    The problem is this

    I have some MPEG file that I like to convert, and I use Mencoder (Love that program).

    That I do is open my Batch file and add line to each MPEG file, I have to look if that is in 4:3 or 16:9 the source.
    Then I have to open a biterate Calculator to have have a good size of my movie (I have a little rule that biterate have to be over 1000 for a movie)
    After that I start the batch file and it start to create the AVI file


    Now I was thinking maybe create a file (Batch or VBscript) that can read the MPEG size and length, So I just have to add the MPEG file in a folder and then run the script.

    But can VBscript/Batch read MPEG file??
    Quote Quote  
  2. Member
    Join Date
    Nov 2007
    Location
    United Kingdom
    Search Comp PM
    You can't read MPEG files directly in VBScript, but you can use an ActiveX build of MediaInfo in VBScript . See http://mediainfo.sourceforge.net/en/Support/SDK/ReadFirst for more details (there are VBScript examples included in the download).
    Quote Quote  
  3. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    Originally Posted by retpyrc
    You can't read MPEG files directly in VBScript, but you can use an ActiveX build of MediaInfo in VBScript . See http://mediainfo.sourceforge.net/en/Support/SDK/ReadFirst for more details (there are VBScript examples included in the download).
    I dont find any information. I dont like to program a VB program or C, just clean VBscript.

    Do you know where I can read about how I can make a VBscript to read MPEG file?
    Quote Quote  
  4. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM


    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  
  5. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    ohh ok thanks
    Quote Quote  
  6. Member
    Join Date
    Nov 2007
    Location
    United Kingdom
    Search Comp PM
    lolz
    Quote Quote  
  7. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    Hmm did find alot of other exampel but not any VB Script?
    Quote Quote  
  8. Member
    Join Date
    Nov 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by Cazz
    Hmm did find alot of other exampel but not any VB Script?
    Hmm... I suspect that you have downloaded the wrong version, as I can clearly see the VBScript example.

    1. Go to the download page and select the Windows version.
    2. Then download the DLL version (32 bit or 64 bit, which every one you require).
    3. Install\extract the exe\7z
    4. Then navigate to the "Developers\Contrib\ActiveX\Example" directory
    Quote Quote  
  9. Member
    Join Date
    Sep 2010
    Location
    South Africa
    Search Comp PM
    Sorry guys but I am useing Windows 7 and I don't find this directory you are referring to. There is no Developers folder in the root, in Program Files, in Program Files\MediaInfo, in Program Files\MediaInfo.dll\ or in the Windows directory. I have done a search for Contrib as well but nothing.

    Sorry for being a pain but could someone post the VBScript samples?

    I have searched the net but nothing so far.
    Quote Quote  
  10. Member
    Join Date
    Nov 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by milnet View Post
    Sorry guys but I am useing Windows 7 and I don't find this directory you are referring to. There is no Developers folder in the root, in Program Files, in Program Files\MediaInfo, in Program Files\MediaInfo.dll\ or in the Windows directory. I have done a search for Contrib as well but nothing.

    Sorry for being a pain but could someone post the VBScript samples?

    I have searched the net but nothing so far.
    No, I think you've downloaded the wrong file. Go to the Windows download page and download the DLL version of MediaInfo (download the 32-bit version if you want the VBScript examples as it is currently omitted from the 64-bit version). I suggest downloading the zip version (without installer) so that you can find the files much easier.

    Regards,
    Quote Quote  
  11. Member
    Join Date
    Sep 2010
    Location
    South Africa
    Search Comp PM
    Thanks very much, can't believe it was that simple. Now I am having a different problem, can't register the dll file. Get the error: The module ... was loaded but the entry point DllRegisterServer was not found.

    Any ideas.
    Quote Quote  
  12. Member
    Join Date
    Nov 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by milnet View Post
    Thanks very much, can't believe it was that simple. Now I am having a different problem, can't register the dll file. Get the error: The module ... was loaded but the entry point DllRegisterServer was not found.

    Any ideas.
    Which DLL are you trying to register (there's more than one)?

    Navigate to the ..\Contrib\ActiveX\Release directory, and you should find the correct DLL, along with useful install\uninstall batch scripts.

    Regards
    Quote Quote  



Similar Threads

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