[MPlayer-advusers] Option -endpos fails with stream sources
Maik Musall
lists at musall.de
Sat Dec 15 01:03:37 CET 2007
Hello Reimar,
On Fri, Dec 14, 2007 at 06:24:16PM +0100, Reimar Döffinger wrote:
> > 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.
Yes, you're right, that works. Unfortunately, I don't know the stream
position before starting mplayer. Something like a possible syntax
"-endpos +10" would be nice.
> [...]
> > 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
Yes, that's my current approach, but it makes everything a bit more
complicated than I'd like it to be.
Thanks anyway.
Maik
More information about the MPlayer-advusers
mailing list