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??
+ Reply to Thread
Results 1 to 12 of 12
-
-
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).
-
Originally Posted by retpyrc
Do you know where I can read about how I can make a VBscript to read MPEG file? -
SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
VOB2MPG PRO, Extract mpegs from your DVDs - with you in control! -
Originally Posted by Cazz
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 -
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, -
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. -
Similar Threads
-
Batch "file creation from a text file, Placed into a created directory
By Muther in forum ProgrammingReplies: 5Last Post: 24th Sep 2015, 18:29 -
VBScript to read XML. Assistance Needed
By NYPlayer in forum ProgrammingReplies: 11Last Post: 9th Oct 2012, 18:29 -
VBScript runtime error when installing Perrla software
By budz in forum ComputerReplies: 7Last Post: 27th Aug 2010, 02:53 -
VBScript and FFMPEG
By Ads79 in forum ProgrammingReplies: 2Last Post: 24th Jun 2010, 05:14 -
DGMPGDec plugin for AVISynth doesn't read MPEG file's audio
By Mark001 in forum Video ConversionReplies: 11Last Post: 9th Jun 2007, 18:07