inicio sindicaci;ón

Rhythmbox Stream Recording Plugin

Something I wanted to write for ages was a plugin for Rhythmbox to allow saving the currently played back stream to a file like streamripper does for instance.

Well, today I quickly wrote one which you can find attached in the related bug report #320233.

It turned out to reveal a couple of issues with the involved components so consider it very experimental and ugly.

For those who still want to try it extract the archive from the bug report it to your ~/.gnome2/rhythmbox/plugins/ directory, restart Rhythmbox and enable the “Stream Recorder” plugin.

Make sure your GStreamer installation has the plugins “lame“, “id3v2mux” and “gnomevfssink” (check output of “gst-inspect“).

It adds a button in the toolbar which if enabled, will cause a file being written onto your desktop for anything Rhythmbox plays back.

Record Button

If you change the song entry it will create a different file. For radio streams, splitting individual files does not work yet (gnomevfssink does not allow setting location property when the pipeline is in PLAYING or PAUSED state) and you have to toggle the recording button if the metadata for the radio station changes to cause the plugin to write to a new file.

Rhythmbox Radio Source

As noted it still has issues so toggling recording while playing back might screw up things. It also only encodes the stream into a MP3 file. Using the selected GNOME Audio Profile of the user instead is something which needs to be implemented yet.

Recorded file using the stream recorder plugin

This plugin should provide a testing ground and allow to fix all issues with using the tee recording functionality in GStreamer and Rhythmbox.

Update 17/12/07: The latest version now uses your currently set GNOME Audio Profile for encoding (thus MP3/OGG/AAC…), writes ID3 meta-tags and automatically splits tracks from radio streams.

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Print this article!
  • Slashdot
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5) 
Loading ... Loading ...

| 5,103 views

aphelion said,

February 13, 2008 @ 14:40

Hi.
I realy love this plugin. The concept and idea is perfect and needed. I only can’t get the last part (writing the file to Desktop) to work. I’m a quite basic user so hope you can help out. Here is my terminal output when trying to record in rhytmbox.

Traceback (most recent call last):
File “/home/cyrano/.gnome2/rhythmbox/plugins/recorder/recorder.py”, line 270, in toggle_recording
self.set_recording (True)
File “/home/cyrano/.gnome2/rhythmbox/plugins/recorder/recorder.py”, line 278, in set_recording
p.add_tee (self.encoder_bin)
AttributeError: ‘__main__.RBPlayerGst’ object has no attribute ‘add_tee’

Thanks again for a great plugin

Ivanoff said,

March 1, 2008 @ 07:35

Hello!
But I can not make it to work. The same logs:
File “/home/supervisor/.gnome2/rhythmbox/plugins/recorder.py”, line 270, in toggle_recording
self.set_recording (True)
File “/home/supervisor/.gnome2/rhythmbox/plugins/recorder.py”, line 278, in set_recording
p.add_tee (self.encoder_bin)
AttributeError: ‘__main__.RBPlayerGstXFade’ object has no attribute ‘add_tee’
Traceback (most recent call last):
File “/home/ivan/.gnome2/rhythmbox/plugins/recorder.py”, line 272, in toggle_recording
self.set_recording (False)
File “/home/ivan/.gnome2/rhythmbox/plugins/recorder.py”, line 280, in set_recording
p.remove_tee (self.encoder_bin)
AttributeError: ‘__main__.RBPlayerGstXFade’ object has no attribute ‘remove_tee’

admin said,

March 3, 2008 @ 12:19

Your Rhythmbox version appears to be too old.

Ivanoff said,

March 3, 2008 @ 20:10

It is the most recent in Ubuntu repositorium… I guess, your plugin was made for 8.04 Ubuntu?

streamripper said,

April 27, 2008 @ 06:44

[...] saving the currently played back stream to a file like streamripper does for instance. Well, todayhttp://blog.sukimashita.com/2007/12/09/rhythmbox-stream-recording-plugin/Security vulnerability in StreamripperRipping malicious internet radio broadcasts using streamripper [...]

Jogi said,

November 5, 2008 @ 21:33

Hi
I just have to fall in with the others, this is a great plugin!
I’m wondering whether you’re still working on that plugin from time to time? It still got some lacks, I’m not able to get it to write down the id3-tags, and rhythmbox is crashing when I toggle to the next song manually…
I’m trying to fix it by myself as I started programming recently, but I’m still a poor beginner and don’t know what the pb-module does, therefor I’m only making little progress, but anyway… it’s a possibility to improve my skills ;-)

Thx for the great Plugin!!!

chillum said,

January 30, 2009 @ 20:10

where can i find the updated version ?

thanks.

–chillum

admin said,

January 31, 2009 @ 18:40

The “updated/latest” version 0.1.0 is attached to the bug report here.

However I switched to Banshee now and will look into porting this as a plugin for that media player sometime.

lixujia said,

March 20, 2009 @ 04:44

Hi!
I believe this plugin is the thing I search for a long time. I’ve downloaded the newest version. It’s very easy to use.
But there is still a problem, when I was using it to record “fm music”, I found that it could just record the first music. When the music being changed, the rhythmbox started playing and recording.
I cannot understand python, so I have no idea about it.
Maybe you can fix it in next version.

RSS feed for comments on this post

Leave a Comment