[MPlayer-dev-eng] mplayer internal buffer
Arpi
arpi at thot.banki.hu
Fri Jan 24 17:53:56 CET 2003
Hi,
> Sorry, but I think that maybe I was not clear in the last e-mail. Please,
> I would like to know what's the best way for communicating with mplayer
> using and external application, via linux pipes. How may the external
> application know how much space there exists on the mplayer internal
> buffer in order to send data faster or slower to mplayer?
it can't know, unless it's part of mplayer.
(no way to comminicate backward direction through a shell pipe)
you should implement a new "plugin" (or call it driver, module, whatever)
for the stream layer. see libmpdemux/stream.[c|h]
then your function will be called periodicaly to fill the 2k (2048 or 2324
bytes) buffer. you can implement seeking too.
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-dev-eng
mailing list