Forum Archive Home -> Programming -> Can VBscript/Batch read MPEG file?
Can VBscript/Batch read MPEG file? | ||
| Cazz posted 2009 Jun 19 12:43 | ||
| 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?? | ||
| retpyrc posted 2009 Jun 19 14:04 | ||
| 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). | ||
| Cazz posted 2009 Jun 19 14:10 | ||
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? | ||
| ChrissyBoy posted 2009 Jun 19 15:25 | ||
:shock:
![]() | ||
| Cazz posted 2009 Jun 19 15:48 | ||
| ohh ok thanks :) | ||
| retpyrc posted 2009 Jun 19 16:59 | ||
| lolz | ||
| Cazz posted 2009 Jun 19 17:32 | ||
| Hmm did find alot of other exampel but not any VB Script? | ||
| retpyrc posted 2009 Jun 21 01:35 | ||
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 |
Login/Register to our forum to be able to post here.

