Fandom

Music Player Daemon Community Wiki

Hack:mpdrecording-stream

525pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

Also on Fandom

Random Wiki