compn | 6 Jan 2006 02:17
Picon
Favicon

which confdir to use when compiling on cygwin?

i cant figure it out, most of the binary packages have normal conf dirs
e.g. if mplayer.exe is in c:\mplayer\ then its c:\mplayer\mplayer\config
but my mplayer builds have the problem of using /cygdrive crap...

i'm sure there is a quick answer somewhere, but i havent seen it. i saw a patch
for the codecs dir on Gianluigi Tiesi 's win32 mplayer site. but not confdir...
i guess i could work his codecsdir into a confdir patch, but i'm not so great
with C.

any help would be appreciated. also accepting his patch into cvs would work
as well :)

-compn

I:\tv>mplayer -v broken-pinnacle-studio-dv-file.avi
MPlayer dev-CVS-060102-16:56-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.

get_path('codecs.conf') -> '/cygdrive/c/Documents and Settings/Administrator.MON
/.mplayer/codecs.conf'
Reading /cygdrive/c/Documents and Settings/Administrator.MON/.mplayer/codecs.con
f: Can't open '/cygdrive/c/Documents and Settings/Administrator.MON/.mplayer/cod
ecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/c
odecs.conf': No such file or directory
Using built-in default codecs.conf.
(Continue reading)

Diego Biurrun | 6 Jan 2006 02:38
Picon
Gravatar

Re: which confdir to use when compiling on cygwin?

On Thu, Jan 05, 2006 at 08:17:35PM -0500, compn wrote:
> i cant figure it out, most of the binary packages have normal conf dirs
> e.g. if mplayer.exe is in c:\mplayer\ then its c:\mplayer\mplayer\config
> but my mplayer builds have the problem of using /cygdrive crap...

The Cygwin port uses Unix-style paths.  Just run MPlayer from the Cygwin
command line.

Diego
Chris Taylor | 6 Jan 2006 10:44
Picon
Gravatar

Re: which confdir to use when compiling on cygwin?

Diego Biurrun wrote:
> On Thu, Jan 05, 2006 at 08:17:35PM -0500, compn wrote:
> 
>>i cant figure it out, most of the binary packages have normal conf dirs
>>e.g. if mplayer.exe is in c:\mplayer\ then its c:\mplayer\mplayer\config
>>but my mplayer builds have the problem of using /cygdrive crap...
> 
> 
> The Cygwin port uses Unix-style paths.  Just run MPlayer from the Cygwin
> command line.
> 
> Diego
> 

Indeed, the behaviour described is what is expected.
Run it from within rxvt (much better terminal than cmd).
If you want it to use native windows paths, you have to compile the 
mingw version - I believe this can be done within cygwin, but I haven't 
ever had cause to do so.

Chris
--

-- 

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?
(Continue reading)

Turbos X | 9 Jan 2006 00:53
Picon
Favicon

Slave mode


Hellow!
Sorry for my English.
1. Is any example runing mplayer in slave mode?
I serch internet and find link to http://www.mplayerhq.hu/~faust3/gui/ on this list. But this link dont
work(The requested URL /~faust3/gui/ was not found on this server). Wher I can find any gui example?

2. I try this code, bat it don%u2019t work. I gets comment on console but mplayer ignore it.

#include <iostream>
#include <windows.h>
using namespace std;
int main()
{

    STARTUPINFO si;
    PROCESS_INFORMATION pi;
    SECURITY_ATTRIBUTES sa;
    ZeroMemory( &sa, sizeof(sa) );
    sa.nLength=sizeof(sa);
    sa.bInheritHandle=true;
    ZeroMemory( &si, sizeof(si) );
    si.cb = sizeof(si);
    ZeroMemory( &pi, sizeof(pi) );
    // Start the child process.
    if( !CreateProcess("N:\\dp\\binary\\mplayer.exe",
                       "  -slave -quiet N:\\dp\\binary\\t.mpg",
                       &sa,NULL,true,0,NULL,NULL,&si,&pi )
      )
    {
(Continue reading)

Hans-Carl Oberdalhoff | 9 Jan 2006 13:16

Re: Slave mode

Hi,

09 Jan 2006 00:53:53 +0100, Turbos X <turbos10 <at> interia.pl>:
>     char* lpBuffer="mute\0"; DWORD aaa;
The last time I tried MPlayer-slave mode in Cygwin, MPlayer only
understood commands, if they were followed by a whitespace. I don't
remember, if a newline was needed after the whitespace...

Hope this helps anyway :)
hco
Anton Ragnarsson | 9 Jan 2006 16:18

Re: Slave mode

From: "Hans-Carl Oberdalhoff" <hcoberdalhoff <at> googlemail.com>
> 
> 09 Jan 2006 00:53:53 +0100, Turbos X <turbos10 <at> interia.pl>:
> >     char* lpBuffer="mute\0"; DWORD aaa;
> The last time I tried MPlayer-slave mode in Cygwin, MPlayer only
> understood commands, if they were followed by a whitespace. I don't
> remember, if a newline was needed after the whitespace...
> 
> Hope this helps anyway :)
> hco

Only '\n' is needed after each command.
.anton
Anton Ragnarsson | 9 Jan 2006 18:32

Re: Slave mode

From: "Turbos X" <turbos10 <at> interia.pl>:
> Hans-Carl Oberdalhoff napisaƂ(a):
> > Hi,
> >
> > 09 Jan 2006 00:53:53  0100, Turbos X >turbos10 <at> interia.pl>:
> > >     char* lpBuffer="mute\0"; DWORD aaa;
> > The last time I tried MPlayer-slave mode in Cygwin, MPlayer only
> > understood commands, if they were followed by a whitespace. I don&#039;t
> > remember, if a newline was needed after the whitespace...
>
> It don't work to. Mayby I icorrect use CreateProcess. Can You or anybody 
> share working source?

I've attached code for a class that launches and controls mplayer.
It won't compile standalone, and it's a bit old (the threading code isn't 
very robust in this version),
but I guess it shows enough to be helpful.

.anton

#ifndef __MPlayerControl2__
#define __MPlayerControl2__

#include "misc/defs.h"
#include "Thread.h"

//#define MPLAYER_EXE "c:\\progs\\mplayer\\mplayer.exe"
//#define MPLAYER_EXE2 "c:\\Coding\\download\\MPlayer-1.0pre5\\mplayer.exe"
(Continue reading)

compn | 12 Jan 2006 16:35
Picon
Favicon

Re: which confdir to use when compiling on cygwin?

On Fri, 06 Jan 2006 02:38:44 +0100
Diego Biurrun <diego <at> biurrun.de> wrote:

> The Cygwin port uses Unix-style paths.  Just run MPlayer from the Cygwin
> command line.
> 
> Diego

i only have cygwin installed on one pc, but i want to my mplayer binaries
on multiple pc's

-compn
Chris Taylor | 12 Jan 2006 16:46
Picon
Gravatar

Re: which confdir to use when compiling on cygwin?

compn wrote:

> On Fri, 06 Jan 2006 02:38:44 +0100
> Diego Biurrun <diego <at> biurrun.de> wrote:
> 
> 
>>The Cygwin port uses Unix-style paths.  Just run MPlayer from the Cygwin
>>command line.
>>
>>Diego
> 
> 
> 
> i only have cygwin installed on one pc, but i want to my mplayer binaries
> on multiple pc's
> 
> -compn
> 

You have two options then (possibly only one)

1) Use a mingw-compiled version on the non-cygwin boxen
2) Copy cygwin1.dll to the other boxes and specify the path to 
codecs.conf on the commandline - be aware that the path to all dll files 
will be incorrect.

There is of course the 3rd option of installing a minimal cygwin on the 
other boxes, done by merely running setup and not changing any of the 
default options.. Though I would always strongly recommend installing 
rxvt and using it over the default cmd.exe - it's far more responsive.
(Continue reading)

Diego Biurrun | 13 Jan 2006 02:20
Picon
Gravatar

Re: Re: Mplayer win32 GUI questions

On Sun, Dec 04, 2005 at 03:49:36PM -0500, Erik Lunchpail wrote:
> > works now under cygwin. Just run configure with
> > --enable-gui, and add -mwindows to WIN32_LIB in
> > config.mak. The --enable-static switch was screwing
> > something up (I'm not familiar with cygwin.)
> 
> Well, i'd rather not spam out the list, but since
> Gianluigi is A.W.O.L., here's another patch.

I finally got around to testing this, but unfortunately I'm apparently
too lame to get libpng compiled under MinGW.  Any hints?

Does this work (properly) under Cygwin as well?

Diego

Gmane