[MPlayer-cygwin] Using mplayer with another app + problems with stdin

Sascha Sommer saschasommer at freenet.de
Tue Jul 20 22:38:16 CEST 2004


On Tuesday 20 July 2004 17:51, Chhaya, Harshal wrote:
> Hi,
>
> I had sent this to the 'mplayer-users' list but then realised
> that this may be a better place for these questions. I apologise
> for the duplication.
>
> I just downloaded the latest mplayer binary for Windows
> (MPlayer-mingw32-1.0pre5.zip) and am planning to use it
> in a demo to show streaming video over a network.
>
> My current approach is to open a pipe to mplayer (via popen())
> and have an application read the incoming video stream from the
> driver. The application then writes the data to mplayer via fwrite().
>
> Is there a better way to do this?
>
> Also, this will require me to launch mplayer such that it reads from
> stdin. But my initial attempt that using stdin as input isn't working.
> For eg. 'mplayer file.mpg' works fine but 'mplayer - < file.mpg'
> causes a error message that says:
>
>    Reading from stdin...
>    MPEG: Missing video stream!? Contact the author, it may be a bug :(
>
>    Exiting... (End of file)
>
> The documents and the manual both say that using '-' should work. Am
> I missing any additional arguments?
>

I don't thinks so but stdin reading doesn't work very well with the mingw 
port. I'm not sure where the problem is, but you could try to compile mplayer
yourself with cygwin. It should work there.

Sascha




More information about the MPlayer-cygwin mailing list