[MPlayer-users] listen and record the radio

Philip Walden pwaldenlinux at comcast.net
Mon Sep 22 19:08:06 CEST 2008


Olive wrote:
> I want to use mplayer to listen and record a stream (a radio) at the 
> same time. I can perfectly listen it or record it (with dumstream, etc) 
> but can't find a decent way to do both at the same time
>
> Olive
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
>   
How about:

mplayer <source> -dumpfile <streamfile> -dumpstream </dev/null 
 >/dev/null 2>&1 &

mplayer <streamfile>

The above seems to work if you give the first command a good headstart

Or more robust:

mkfifo dumpfifo

cat dumpfifo | tee <dumpedstreamfile> | mplayer - &

mplayer <source> -dumpfile dumpfifo -dumpstream





More information about the MPlayer-users mailing list