Log in

View Full Version : AM-ARDVD (Version 1.02 released)


Amnon82
27th January 2004, 00:24
Avalon's and maa's AutorunDVDPlayer

I wanted MPC to play the DVD automaticaly.
The root of my autorun DVD is:

VIDEO_TS
AUDIO_TS
COVER
DVDPlayer.exe
autorun.inf

The Autorun was:

[autorun]
open=DVDPlayer.exe /dvd /fullscreen /open "%L"
icon=DVDPlayer.exe

I renamed mplayerc.exe into DVDPlayer.exe (just fun ;) ).

So, if I put this DVD into my drive, the mpc on the disk starts the DVD in fullscreen.

This was nice!

After a while maa helps me with a bat and I starts Avalon's-Autorun-DVDPlayer.
I created a package with gabests new versions of MPC.
My DVDAutorun.bat checked the OS and the DVD-letter and starts automaticaly the DVDVideo using the rigth MPC.
Again maa rewrites the bat. Now all errors will be shown.

Changes to 1.01:

maa totaly rewrites the bat. I found some bugs in it and fixed this.
I tested the version only in WinXP. If some errors comes up with 9x please be so kind and post it here.
I renamed the program to AM-ARDVD (Avalon's & maa's AutorunDVDPlayer).

You can download AM-ARDVD on my page.

Download AM-ARDVD 1.02 at dvdr-page.tk (http://rj-elektronik.de/avideo/files/AMARDVD102.EXE)

benza
27th January 2004, 23:04
Nice one, but I just read that Windows98 and ME have to use a different Media Player Classic. It would be nice to have a batchfile that checks the OS and launches the right player for it. If I have some spare time this weekend, I will try to create one.

Benza

maa
28th January 2004, 18:16
Heres a #.bat file - don't know if it cn be part of an #.inf file or if it has to be called upon by the inf file.
Anaway it should be enough to go on.


@echo off
rem Safty check
if "%1"=="?" goto helpme
if "%1"=="/?" goto helpme
IF %OS%==Windows_NT Goto WinNT

:Win9x
if not exist DVDPlayer9x.exe goto error
open=DVDPlayer9x.exe /dvd /fullscreen /open "%L"
icon=DVDPlayer9x.exe
goto end

:WinNT
if not exist DVDPlayerNT.exe goto error
open=DVDPlayerNT.exe /dvd /fullscreen /open "%L"
icon=DVDPlayerNT.exe
goto end

:error
rem - write errors here

:helpme
rem - write help here

:end
Exit


cheers

maa

Amnon82
30th January 2004, 14:44
I got it!

It was a little hard to write the bat, but it got it!
I released the autorun dvdplayer 1.00 today:D

maa
30th January 2004, 21:00
I hope you're going to post the Autorun.inf here ;)
What do you do if the destination player hasn't got the codecs ?

cheers

maa

benza
31st January 2004, 15:48
Originally posted by maa
I hope you're going to post the Autorun.inf here ;)
What do you do if the destination player hasn't got the codecs ?

cheers

maa

Thats the beauty off MediaPlayer Classic! It has it's own codecs for mpeg(2) (also AC3). Don't know about DTS though...

Amnon82
1st February 2004, 00:31
I found some bugs. I fixed it in Version 1.01.
Yes MPC has its own MPEG2- and AC3-Decoder. I'm looking now for DTS...

maa
1st February 2004, 03:02
Hi, you need some help with this.
The errors aren't displaying and you have repeated the player check about 24 times. BTW whats "checkos.bat" ?
I whish I could write a proper INF - it would be neater somehow.
You should test it thorougly on each OS, simulating the errors and the checks.

Heres a shorter version of the BATch file

@echo off
rem Avalon's AutorunDVDPlayer 1.01 (C) 2004 DRP
rem visit: www.dvdrpage.dl.am
if "%1"=="?" goto helpme
if "%1"=="/?" goto helpme
IF %OS%==Windows_NT Goto WinNT

:Win9x
if not exist DVDPlayer9x.exe goto error98
if not exist .\VIDEO_TS\nul goto error2
DVDPlayer9x.exe /dvd /fullscreen /open /close VIDEO_TS
goto end

:WinNT
if not exist DVDPlayerNT.exe goto errorNT
if not exist .\VIDEO_TS\nul goto error2
DVDPlayerNT.exe /dvd /fullscreen /open /close VIDEO_TS
goto end

:error98
cls
echo.
echo.
echo.
echo.
echo.
echo. DVDPlayer98.exe not found.
echo. Copy this file into the root of the DVD and create the ISO again.
echo.
echo.
pause
goto helpme

:errorNT
cls
echo.
echo.
echo.
echo.
echo.
echo. DVDPlayerNT.exe not found.
echo. Copy this file into the root of the DVD and create the ISO again.
echo.
echo.
pause

:helpme
cls
echo.
echo.
echo.
echo.
echo.
echo. Download the newest Versions of MPC at:
echo. http://sourceforge.net/project/showfiles.php?group_id=82303&package_id=84358.
echo. Rename the mplayerc.exe to DVDPlayerNT.exe and DVDPlayer9x.exe.
echo. Copy them and this bat to the root of the DVD.
echo. Create a autorun.inf which opends the checkos.bat
echo.
echo.
pause
goto end

:error2
cls
echo.
echo.
echo.
echo.
echo. The folder VIDEO_TS could not be found on this disc.
echo.
echo.
pause
goto helpme
:end
cls
Exit


make good use of it,
cheers

maa

Amnon82
1st February 2004, 15:52
THX maa for this. Thats nice form you. I renamed the program to AM-AutorunDVDPlayer (... Avalon's and maa's AutorunDVDPlayer ...).

I hope you'll like this...

I tested it only in WinXP. Everyone be so kind to post errors of 9x if they will show up. THX