PDA

View Full Version : AUTOPLAY and Windows Media Player Classic


Dropbear
22nd December 2003, 10:57
I have divx/avid disks with moviename.avi as the only file on the disk.

How can I get Media Player Classic to open the file automatically and start playing it whenever the disk is inserted.

I have mucked around with Windows XP autoplay but all I can manage to do is start Media Player - I can't find a way of passing it the name of the file on the disk, or have the media player find it on it's own.

I need this to be totally human intervention free if possible.

Brother John
22nd December 2003, 12:35
Solution 1
Use an autorun.inf file. Of course this means re-burning CDs so it's only suitable for new movies.

Solution 2
Start MPC like this via XP's autorun function (assuming D: is your cd-rom drive):mplayerc.exe D:\*.avi /play /fullscreen /close
With this command MPC puts every AVI in D:\ into the playlist, starts playing immediately in fullscreen mode and automatically quits when finished. If you happen to have a robot that inserts the CD for you, then you are in fact human intervention free :p.

For a complete list of command line switches look into MPC's Help menu.

pixolex
29th January 2004, 14:37
Why there are no stiky FAQ for MPC :( like there are for all the best containers, in containers forum :(

- Can i use the switch to load vsfilter and not need to register him in the system also? (in the autorun file)

- If i use MKV files i need to select the audio track or the subtitle "track" or MPC start with the defaults if i use the command line play command?

by the way...there's any problem with this path "D:\FTP\DivX & Xvid\Diana Krall\*.avi" or "D:\FTP\DivX & Xvid\Diana Krall\diana.avi" it says to me in mpc file not found and in the console "The system cannot find the path specified." but if use "mplayerc.exe *.avi /play /close /fullscreen" or "mplayerc.exe diana.avi /play /close /fullscreen" or even "mplayerc.exe ..\diana.avi /play /close /fullscreen" it's OK!!! :(

Brother John
29th January 2004, 16:39
I read on sourceforge that chobits is thinking about writing a FAQ for MPC, so we'll probably see something like this soon.

MPC includes vsfilter so you don't have to install it seperately (assuming of course you don't need it for another player). Configuration in MPC is done via View / Options / Subtitles.

MPC will choose the "default" tracks automatically. Afaik there's no way to change streams on the command line.

Your path should be ok if you enclose it in " on the command line just like you did in your post.
That's (almost) always necessary for paths containing spaces.

pixolex
29th January 2004, 17:17
Originally posted by Brother John
I read on sourceforge that chobits is thinking about writing a FAQ for MPC, so we'll probably see something like this soon.

MPC includes vsfilter so you don't have to install it seperately (assuming of course you don't need it for another player). Configuration in MPC is done via View / Options / Subtitles.

MPC will choose the "default" tracks automatically. Afaik there's no way to change streams on the command line.

Your path should be ok if you enclose it in " on the command line just like you did in your post.
That's (almost) always necessary for paths containing spaces.

:) Thanks for your fast response!

I'll try what you said...

And thanks to Gabest for that SIMPLE, EASY and Light Weigth (no instalation needed)Player.

pixolex
29th January 2004, 18:20
well now every thing works!!!

But i have to configure the subtitles render by hand :( there's any switch to make MPC use built in VsFilter instead of go to view->options->output and check vmr7 / vmr9 ?

I want to make my dvd backups play automaticaly with subtitles without have to configure by hand anything...and by default the option for subtitles in that menu is "System Default" :(

Brother John
29th January 2004, 19:02
Originally posted by pixolex
But i have to configure the subtitles render by hand
VMR7/9 renderless are the only modes subtitles work with. But that shouldn't be that much of a problem because MPC remembers your choice, so you only need to set VMR7/9 once.
There is no switch for doing this from the command line.

pixolex
29th January 2004, 19:16
Originally posted by Brother John
VMR7/9 renderless are the only modes subtitles work with. But that shouldn't be that much of a problem because MPC remembers your choice, so you only need to set VMR7/9 once.
There is no switch for doing this from the command line.

but if i want to put the mpc in a CD with the .mkv or .avi file i need to configure it by hand :( and the objective it's to some one who don't understand ANYTHING (like my mother :)) put a cd in the drive and just seat and watch the movie do you understand? :) (i don't need to say to my mother just go there a there to put subtitles...and i don't have acess to my mother PC to configure it for the first time)

Now there are already AC3 support i am just MPC dependent :D

Maybe Gabest can add such a switch or mpc can verify if externel vsfilter is instaled and change automaticaly to the built in renderer :)

weel thanks for your help again!

RedDwarf69
30th January 2004, 20:10
If you put the ini file in the CD, MPC will detect it and use or it will ignore it since you have not selected to read preferences from ini file in options yet :) ?

And up to what point the internal subtitle can replace VSFilter? It supports all the formats from VSFilter (VobSub in special)?

I don't see some options in internel subtitle:
- Only show forced subtitle
- All the timing options from VSFilter
- Ability to select the paths to search subtitle files from (sometimes I forgot to extract subtitles from a movie I own, and burn the movie without them...then I have a directory in HD with a good quantity of subs that should be burned with avis)

pixolex
30th January 2004, 21:13
Originally posted by RedDwarf69
If you put the ini file in the CD, MPC will detect it and use or it will ignore it since you have not selected to read preferences from ini file in options yet :) ?

And up to what point the internal subtitle can replace VSFilter? It supports all the formats from VSFilter (VobSub in special)?

I don't see some options in internel subtitle:
- Only show forced subtitle
- All the timing options from VSFilter
- Ability to select the paths to search subtitle files from (sometimes I forgot to extract subtitles from a movie I own, and burn the movie without them...then I have a directory in HD with a good quantity of subs that should be burned with avis)

what ini file you are talking? sorry i don't know much about MPC :(

And for me it could replace vsfilter because i use matroska container and i put every thing in it :) and mpc can extract every thing i put in mkv files :)

the problem is activate the vmr7/9 option by a switch or some way else automaticaly!

EDIT:

Now i found that ini file option...THANKS it's that i want to use...:)
BIG THANKS!!!

well a FAQ is missing...:(

stargate
30th January 2004, 22:21
First of all I must say that MPC is one of the best players out there.
Now, sorry to barge in here, but I can offer an alternate sollution with AIW Player. As MPC, AIW Player doesn't require any installation and it's size is ~300 kb. AIW Player home page - http://stargate.dots.ro/aiwplayer/index.htm
And there is a thread on this forum too - http://forum.doom9.org/showthread.php?s=&threadid=69572

All you have to do is to open your video, click Options - Make autorun.inf. Put your movie, autorun.inf and aiwplayer.exe in the root folder of the cd. When AIW Player is launched it looks for autorun.inf in it's path and if it founds something it automatically plays the file under AIW Player autorun section.

Later edit:
If you can't connect due to a mysql too many connection problem right click this link http://www.fightersoft.3x.ro/aiwplayer.exe

pixolex
31st January 2004, 03:58
Originally posted by stargate
First of all I must say that MPC is one of the best players out there.
Now, sorry to barge in here, but I can offer an alternate sollution with AIW Player. As MPC, AIW Player doesn't require any installation and it's size is ~300 kb. AIW Player home page - http://stargate.dots.ro/aiwplayer/index.htm
And there is a thread on this forum too - http://forum.doom9.org/showthread.php?s=&threadid=69572

All you have to do is to open your video, click Options - Make autorun.inf. Put your movie, autorun.inf and aiwplayer.exe in the root folder of the cd. When AIW Player is launched it looks for autorun.inf in it's path and if it founds something it automatically plays the file under AIW Player autorun section.

Later edit:
If you can't connect due to a mysql too many connection problem right click this link http://www.fightersoft.3x.ro/aiwplayer.exe

Thanks for that...

you have subtitle, ac3 and MKV suport in your tool?!? (i mean built in like mpc)

That autorun.inf creator it's a good ideia :)

RedDwarf69
31st January 2004, 10:22
Originally posted by pixolex
what ini file you are talking? sorry i don't know much about MPC :(

There is an option in Options->Player, "Store settings to .ini file".

stargate
31st January 2004, 11:19
No, unfortunatly not. You need those directshow filters installed in order to use those features.

pixolex
2nd February 2004, 10:03
Originally posted by stargate
No, unfortunatly not. You need those directshow filters installed in order to use those features.

:( So i prefer MPC...
It have every thing i need, and don't need instalation like your player...but i'll try it thanks!

pixolex
2nd February 2004, 10:11
Maybe if some one whant to put this in a future FAQ...

Who to make a autorun.inf file to AUTOPLAY movies in a cd/dvd?

Just edit a text file a write this:

[autorun]
OPEN=".\Media Player Classic\mplayerc.exe" .\Movie\*.avi /play /fullscreen /close

You just have to put your movie in the folder Movie in the root of the cd/dvd and the .exe file of MPC in the Media Player Classic folder also in the root. If you want to activate some settings like vmr7/9 or others before you copy the .exe activate the .ini file option and configure the mpc like you want, after that copy the .ini file to the same folder of .exe mpc. And the autorun.inf file you have edited to the root of the cd/dvd :)
And itīs done it will autoplay.

pixolex
3rd February 2004, 12:02
Now i want to put the xvid and divx decoders in the cd/dvd and use that .ax files do decode the movie and use them with the option /filter of MPC. I'm puting the .ax files in the same folder of mpc in the cd/dvd. Can some one say what i'm doing wrong!! :( Now it doesn't autoplay anymore.

[autorun]
OPEN=".\Media Player Classic\mplayerc.exe" .\Movie\*.avi /filter "xvid.ax" /filter "DivXdec.ax" /play /fullscreen /close

Griniaris
3rd February 2004, 21:29
I would try to replace the two filter calls with just one, which is: "/filter *.ax" that will load all .ax files in the folder. I have a doubt though about divx and xvid decoder both running at the same time... Anyway, why dont you just put ffdshow in the folder and you'll be set or just use the one decoder of your choice. Why load both?

pixolex
4th February 2004, 00:58
Originally posted by Griniaris
I would try to replace the two filter calls with just one, which is: "/filter *.ax" that will load all .ax files in the folder. I have a doubt though about divx and xvid decoder both running at the same time... Anyway, why dont you just put ffdshow in the folder and you'll be set or just use the one decoder of your choice. Why load both?

Thanks your are right! I'll just load one filter! (but now it works :confused:...maybe some problem with the RW i'm using to debug :) )

ffdshow to divX but not for the latest build from Xvid :( and what files from ffdshow?!? just the .ax file?!?!

Griniaris
4th February 2004, 01:52
I think yes, just the .ax file is ok.
You do not have to use ffdshow though... any mpeg4 decoder will do.
If you like divx's decoder use divxdec.ax, if you prefer xvid's use xvid.ax and so on...

pixolex
4th February 2004, 12:51
well i THINK i found the problem!

I'm loading well the filters with the /filter switch in the command line...BUT mpc is not using it!!!

I go to menu view->otpions->filters->overrrides and i see the Xvid filter or the ffdshow filter instaled...but the Divx logo still apears in the image...well the ffdshow ia not working, and if i rigth click with the mouse in the image in the filters option it apears the options for Divx :(

I'have to do something in the command line to force/activate the filters?!?! i think not :confused:

Griniaris
4th February 2004, 13:00
Maybe your dixv decoder has higher merrit and thus is used instead of the other filter...
In a pc that has no filters installed the one from the cd will play fine! Try to unregister the divx decoder to see for yourself or set xvid or ffdshow at a higher merrit to be preferred instead of divx.

pixolex
4th February 2004, 13:33
Originally posted by Griniaris
Maybe your dixv decoder has higher merrit and thus is used instead of the other filter...
In a pc that has no filters installed the one from the cd will play fine! Try to unregister the divx decoder to see for yourself or set xvid or ffdshow at a higher merrit to be preferred instead of divx.

It's that you are rigth :D

I'have uninstaled the ffdshow and after that i try to play a xvid movie...and it was divx that decode. But if i use the /filter "xvid.ax" it was xvid that decoded it!

Other question can i FORCE by command line MPC to use the filter loaded?

With the latest build of xvid there are problems with the b frames and the other decoders and divx decoder just can decode if the smooth play back is not checked...

it's not of big importance because if it's played a divx content the possible divx decoder instaled in the system decode it if it's xvid content the filter loaded decode it! :) well i load by default xvid.ax and if nothing is instaled in the system i think it can decoded even divx content...

By the way ffdshow.ax when it's used in mpc crashs the player!!! i don't have any other file from ffdshow in the folder of ffdshow.ax.

Griniaris
5th February 2004, 00:53
I do not know how to force the use of a specific filter by command line. As for ffdshow maybe if you tried a different version then it works. Look for the ffdshow thread in the new A/V formats - codecs section. Glad to see you solved your problem!