[MPlayer-users] Record Internet streaming

Mike Castle dalgoda+mplayer at gmail.com
Thu Mar 25 05:45:42 CET 2010


On Wed, Mar 24, 2010 at 1:02 PM, shacky <shacky83 at gmail.com> wrote:
> They are all live streamings, but I need to record them only for a
> specified time lenght (some seconds or some minutes).

I do something like:

mplayer -ao pcm:file=foo.wav ..... &
pid=$!
sleep $time
kill $pid

oggenc < foo.wav > foo.ogg


Actually, my real script is a good deal more complicated than that,
dealing with failures, restarts, unique file names, and stuff.  I'm
doing some stuff that, now, a couple of years later, I'm not sure why
I did it that way.

I'm also not sure why I didn't use -endpos, so you may start there.

mrc


More information about the MPlayer-users mailing list