Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Codec for spotify offline files
« previous next »
  • Print
Pages: [1]

Author Topic: Codec for spotify offline files  (Read 36487 times)

Offline gijswijs

  • Member
  • *
  • Posts: 1
Codec for spotify offline files
« on: September 14, 2010, 09:17:24 AM »
I'm thinking about creating a codec for rockbox.
I have a premium Spotify account, so I can download spotify tracks to listen them offline.

This is what i think needs to be done:
- Reverse-engineer the system the normal Spotify client uses to store offline playlist and tracks. (I found out spotify stores it's cache per song in AppData\Local\Spotify\storage; If you want songs to be available offline spotify downloads the entire song as if it's cached entirely as far as I can see it. The files in storage have a gui as filename:
20123a445c4e6d86712ac9987e472e34817dadc6.file
- The files are stored encoded, but with the despotify library (http://despotify.se/) it should be possible to  decode the files to the native Spotify format which is Ogg
- Port the part of despotify that decodes the filestream as a audio codec in Rockbox
- be happy!

Before I embark on this (for me) far fetched journey into unknown technical territories I would really appreciate it if you guys could share some thoughts on the subject with me.

P.S. another possibility is to create a desktop program that encodes the spotify offline files to Ogg and than moving them to the player. That would make it unnecessary to create a codec. So that's plan B.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Codec for spotify offline files
« Reply #1 on: September 14, 2010, 10:39:47 AM »
We already support playing Ogg, but patches to do things like support DRM will not be accepted.
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: Codec for spotify offline files
« Reply #2 on: September 14, 2010, 01:44:05 PM »
See http://www.rockbox.org/wiki/NoDo for a short explanation on why DRM won't be supported.

Anyways, even if DRM was supported, I wouldn't recommend decoding DRM on a portable player.   DRM decoding is additional CPU activity which results in more power usage and shorter battery life.  This has been measured and documented on devices which are designed for DRM and using their original firmware.  So, just decode the DRM on your computer, if you can.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Codec for spotify offline files
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.073 seconds with 16 queries.