[MPlayer-advusers] Option -endpos fails with stream sources

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Dec 14 18:24:16 CET 2007


Hello,
On Fri, Dec 14, 2007 at 04:02:55PM +0100, Maik Musall wrote:
[...]
> This doesn't:
> mplayer -vc null -vo null -ao pcm:file=file.wav -endpos 10 http://sky:28401

Actually it does, just not as you expect:

> Video: no video
> Starting playback...
> A:85962.7 (23:52:42.7) of -0.3 (unknown) ??,?% 0%

You told MPlayer to stop at 10 seconds, but the stream is already at
85962.7 seconds.
Try starting MPlayer on that stream, note the number after A:, add maybe
60 and see if an mplayer started with that as -endpos stops at the
"expected" time.

[...]
> I'd simply like mplayer to decode the stream and write the file for a
> defined time period, and then exit.

Try something like this in a script:

mplayer -noconsolecontrols <other options and URL> &
PID=$!
sleep 10
kill $PID
sleep 3
kill -9 $PID


Greetings,
Reimar Döffinger



More information about the MPlayer-advusers mailing list