[MPlayer-dev-eng] Having MPlayer and Mencoder in a single binary.

Oded Shimon ods15 at ods15.dyndns.org
Tue Jul 5 18:53:18 CEST 2005


On Tue, Jul 05, 2005 at 12:33:25PM -0400, Rich Felker wrote:
> On Fri, Jul 01, 2005 at 04:40:05PM -0500, Joey Parrish wrote:
> > On Thu, Jun 30, 2005 at 09:14:45PM -0700, RC wrote:
> > > On Thu, 30 Jun 2005 19:18:59 +0200
> > > Benjamin Zores <ben at tutuxclan.org> wrote:
> > > > The remaining question would be the unknown behaviour on Win32
> > > > system's (i guess they do not support symlinks, so, copy mplayer.exe
> > > > to mencoder.exe ??).
> > > 
> > > mencoder.lnk
> > > mencoder.bat
> > 
> > But then argv[0] would still be "mplayer.exe".  So we should also add an
> > option which would force mplayer.exe to behave as though argv[0] were
> > "mencoder.exe".  That would be the most OS-independant way to do it.
> 
> Just copy the .exe file to both names.

Which takes a lot more space, and defeats the purpose. :)

> An option is an ugly hack and
> not at all user-friendly. Alternatively you can make a wrapper that
> invokes mplayer.exe with argv[0]=="mencoder"

That sounds like a good idea.. Does that work in windows?..

- ods15




More information about the MPlayer-dev-eng mailing list