Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.
/ soundCLI Public archive

A command line client for soundcloud.com with streaming support via gstreamer

Notifications You must be signed in to change notification settings

rekado/soundCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOUNDCLI

soundCLI is a command line client for streaming music from soundcloud. Timed comments are displayed on the command line as the playback reaches their respective positions.

button

Examples

Installation

You can either install this as a gem from RubyGems.org, build the gem yourself, or execute it without installation. To simply run soundcli, issue the following command from within the soundcli directory.

ruby -Ilib ./bin/soundcli http://soundcloud.com/rekado/chroma

Here's how to build and install this gem manually.

gem build soundcli.gemspec
gem install ./soundcli-0.0.5.gem

Then you can use this simpler command to stream a song:

./bin/soundcli http://soundcloud.com/rekado/chroma

You probably should configure rubygems to install to /usr/local/bin or some other directory that's in your PATH to execute it from any directory.

Packaging

The preferred way is, of course, to install soundCLI through your distribution's package manager (pretend you didn't read this if you are using MacOS). SoundCLI has been packaged for the following GNU/Linux distributions:

You can inspect the package file descriptions in the directory pkgdesc. Feel free to submit package descriptions for other systems.

Setup

soundCLI will save your authentication/refresh tokens (not your credentials) in a file, so you only need to provide your credentials once. The token file will be saved to $XDG_CONFIG_HOME/soundcli/auth.

mkdir ~/.config/soundcli

Dependencies

  • ruby (I'm using 1.9.2 and above, but lower versions might work, too. Ruby 1.8.7 doesn't seem to work.)

  • gstreamer bindings for ruby (gstreamer)

  • cURL bindings for ruby (curb)

  • the JSON gem (json)

Bugs

  • download only returns the download url but does not download yet

Troubleshooting

Q: I get a weird error message when attempting to stream a file:

No URI handler implemented for "http"
gsturidecodebin.c(1065): gen_source_element (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0

A: You are probably missing some gstreamer plugins. Install a bunch of them through your package management system and see if the error disappears.

Q: When attempting to run soundCLI I get an error:

no such file to load -- json/gst/curb in ...

A: You need to install the gems listed in the section DEPENDENCIES

Q: During installation of the gem I get this error:

checking for gstreamer-0.10... yes
checking for gstreamer-plugins-base-0.10... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

A: You are missing the gstreamer base plugins. If you are on Mac, you should install gst-plugins-base with brew. On Archlinux the package is called gstreamer0.10-base-plugins.

License

This code is licensed under the GPL v3.

About

A command line client for soundcloud.com with streaming support via gstreamer

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •