[MPlayer-users] Creating a stupid person do all mplayer package
Ergzay
ergzay at everyoneproductions.com
Wed Oct 19 08:59:57 CEST 2005
On 2005/10/19, at 1:23, RC wrote:
> On Wed, 19 Oct 2005 00:55:39 -0400
> Ergzay <ergzay at everyoneproductions.com> wrote:
>
>> Well for one thing, I hate windows so much that its caused me not to
>> become familiar with the inner workings. I have absolutely no clue
>> what syntax a .reg or .inf file is or where to put it.
>
> It's not simple...
>
> Windows registry associations are rather convoluted. They file
> extension (eg. ".avi") is created as a key in HKEY_CLASSES_ROOT. The
> "default" string is a text value pointing to another key in the same
> tree (eg. "movie.avi"). That key needs a sub-key named "shell", and
> "shell" needs a sub-key, named whatever you chose (eg. "Open"). It
> will show-up in the context menu for that type of file. That key needs
> another sub-key named "command". The "default" string for the
> "command"
> key is where you put the command-line you want explorer to use to play
> the video, with "%1" being replaced by the filenamed. You generally
> want to use the full-path to the exe.
>
> This doesn't include any of the details like keyboard shortcuts for
> that
> command, the icons you want associated with files of that type, or
> multiple selectable commands for each filetype in the context menu.
> You
> can learn that by looking at other filetype associations in the
> registry.
>
> Use regedit to add those keys to your registry. Once you've done so
> for
> all filetypes you want, select each top-level key, and chose "File" and
> "Export". Once you've saved them all to seperate reg files, append
> them
> all together (minus the one-line header), to get one big reg file for
> all filetypes.
>
>> I will attach along with the file I give them a .txt file explaining
>> any installation steps needed and where to place what files.
>
> I don't know how you're going to explain it to them, when you don't
> know
> how to do it.
>
>> I want to leave some files (.wmv, .rm and such), if they have the
>> players that play them, associated with their appropriate programs. If
>> they don't have the programs for one type, then they should be
>> associated to mplayer.
>
> To do that, you'll need to write a Windows API program that reads each
> filetype key from the registry, verifies the key it is pointing to
> exists and is not corrupt, and verifies that the executable for the
> default shell command exists where the registry key says it is. Then
> it
> needs to use that information to decide if it wants to overwrite the
> information for that filetype in the registry, if it should leave it
> alone.
>
> I wish you luck on that task. How you're going to determine that the
> program each filetype is associated with is actually a media player, as
> opposed to an editor, notepad, etc., is certainly beyond me, but maybe
> you won't mind fixing those cases manually.
>
>> I also want to use the current CVS for the binary if possible. I know
>> how to compile mplayer CVS just fine already on OS X, just need to
>> know how to cross compile.
>
> I still don't know why you insist on compiling it yourself. The
> binaries work just fine.
>
>
> Also, as I said in the previous e-mail, most people are better off just
> installing Media Player Classic, and each of the codecs they may need.
> I would certainly suggest the same for you, particularly since you
> don't
> know much about Windows to start with.
Thanks for the help. I wanted to compile it myself because I didn't
want the old version. The newer version has better features and such. I
know how to use Windows just fine I just never fiddled with the
registry before. The long story made short on how I came to hate
windows in general is taking an erased hard drive pentium pro computer
and installing dos upgrading from that to win 3.1 upgrading from that
to win 95 and upgrading from that to win 98. (After a year or two of
using win 98 I installed red hat.)
So on one last question to see if I can still use mplayer. Could I just
have them use MPUI and the Windows Binaries and they would have to open
each file by hand? Or, if I remember correctly (I forget if this is win
xp or win 98 or both), there is a "Folder options" which you can go to
from a menu in any folder and it allows you to set what applications
open which file types. Couldn't I just have them use that and set it
with that?
Ergzay
More information about the MPlayer-users
mailing list