[MPlayer-users] endpos for streamdump?

Giorgio Vazzana mywing81 at gmail.com
Sat Nov 24 16:59:23 CET 2012


2012/11/24 Steven Adeff <adeffs.mythtv at gmail.com>:
> Am I doing something wrong with endpos or does anyone has any thoughts
> on how I can accomplish this if the endpos command won't work for what
> I'm trying to accomplish?

I had noticed in the past that -endpos doesn't work with -dumpstream,
so I've been using something like the following script to stop
recording after a predetermined amount of time (in this example 60s):

#!/bin/bash

URL="http://192.168.1.10/stream.ogg"
FILE="recording.ogg"
LOG="mplayer.log"

mplayer -noconsolecontrols -dumpstream -dumpfile "$FILE" "$URL" &>"$LOG" &
PID=$!
sleep 60
kill $PID

I hope this helps. Regards,

Giorgio Vazzana


More information about the MPlayer-users mailing list