[MPlayer-users] Slave mode - detecting end of file.
vext01 at gmail.com
Mon Feb 28 11:33:55 CET 2011
On Mon, Feb 28, 2011 at 10:29 AM, Oliver Seitz <info at vtnd.de> wrote:
>> I have been googling around for a while trying to figure out how I can
>> detect when a song has finished playing on an instance of mplayer in
>> (idle) slave mode.
> How about checking stdout? While playing, you'll get an output every 0.1
> seconds or so, if there is no data for more than 0.2 seconds, the file has
> Or, in the output is both the position and the duration:
> A: 299.2 (04:59.2) of 299.0 (04:59.0) 1.5%
We thought of solutions like this, however I think we could sill
exploir race conditions if we put the system under substantial load.
A more robust solution is needed.
More information about the MPlayer-users