Hack:mpdrecording-stream
From Music Player Daemon Community Wiki
This script allow you to simple recording/ripping currently playing (in mpd) broadcast internet radio stream to *.mp3 under linux/unix shell. For peep/stop recording push keys: CTR+ A + D [/and Ctr+C]. Don`t forget install streamripper [stream recording], mpc [client mpd] and screen [system command].
#!/bin/bash # Unix/linux`s bash script assigned for Music Player Daemon http://www.musicpd.org/ # Simple recording/ripping currently playing (in mpd) broadcast radio stream to .mp3 in /media/container/muzyka/zrzut_radia/ # For peep/stop recording push keys: CTR+ A + D [/and Ctr+C] # Don`t forget install streamripper, mpc and screen! # Ver. 0.1 By Liwiusz Amoniusz liwiusz_amoniusz@interia.pl 2008 GPL screen -D -m streamripper `mpc --format %file% | grep 'http'` -d /media/container/muzyka/zrzut_radia/ & # Recording for only 2 hours: # screen -D -m streamripper `mpc --format %file% | grep 'http'` -d /media/container/muzyka/zrzut_radia/ -l $(( 60 * 60 * 2 )) & # Recording to one separate mp3 for 3 hours: # screen -D -m streamripper `mpc --format %file% | grep 'http'` -a /media/container/muzyka/zrzut_radia/zrzut_radyjka.mp3 -l $(( 60 * 60 * 3 )) &
For playing radio stations in mpd I review shoutcast`s catalog with use streamtuner (in Gnome) http://www.nongnu.org/streamtuner/ + script streammpc: http://mpd.wikia.com/wiki/Hack:streammpc or in console: elinks/links/lynx with special prepare adres: http://mobilust.net/shoutcast/web/ + script to load and play playlist (.pls, .m3u) -> [exemplary script is placed in command: man mpc].
Back to others scripts mpd hacks
