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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Bookmark import/export
« previous next »
  • Print
Pages: [1]

Author Topic: Bookmark import/export  (Read 3510 times)

Offline PaulF

  • Member
  • *
  • Posts: 49
Bookmark import/export
« on: February 14, 2015, 01:30:00 AM »
I use my Sansa Fuze every day to listen to podcasts. Occasionally I plug the player into the USB on a Linux Box(Beaglebone or Raspberry PI). Is there a way to unplug the player and resume where I left off on the Linux player? Ideally I'm guessing I need a Linux player that saves the playback progress in a file so that is way out of the scope of this forum. I was just seeing if by chance anyone has solved this problem. Audio book players with multple platforms synch up with each other.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Bookmark import/export
« Reply #1 on: February 14, 2015, 05:07:36 AM »
If you used the Rockbox simulator, or SDL app (you'd need to compile these yourself - yes, both run on ARMv6) combined with the "bookmark on stop" feature, you could make a small script to be run from the host (you could even write this in LUA (lowers the bar) or C and run it as a native plugin in the simulator or SDL app) that copied the bookmark file(s) between the desktop player and the DAP based on which file was newer (DAP -> host if DAP bookmark is newer, and host -> DAP if DAP bookmark is newer).

Now, this is fairly ugly, granted, but it needs to special tools, and no special software barring what's already available to you, and a tiny bit of shell script magic or LUA/C.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline PaulF

  • Member
  • *
  • Posts: 49
Re: Bookmark import/export
« Reply #2 on: February 14, 2015, 01:35:23 PM »
Quote from: [Saint] on February 14, 2015, 05:07:36 AM
If you used the Rockbox simulator, or SDL app (you'd need to compile these yourself - yes, both run on ARMv6) combined with the "bookmark on stop" feature, you could make a small script to be run from the host (you could even write this in LUA (lowers the bar) or C and run it as a native plugin in the simulator or SDL app) that copied the bookmark file(s) between the desktop player and the DAP based on which file was newer (DAP -> host if DAP bookmark is newer, and host -> DAP if DAP bookmark is newer).

Now, this is fairly ugly, granted, but it needs to special tools, and no special software barring what's already available to you, and a tiny bit of shell script magic or LUA/C.


[Saint]
Well, that was a totally unexpected surprise. Almost a miracle. Thanks. I wrote a  perl script, that is on the FUZE and runs on my Beaglebone Black, to fetch podcasts and load  them on to the  Fuze. The script renames the mp3 files for Rockbox readability and also adds an album art mp3 tag. I can add bookmark handling, but I'm thinking the simulator on the Beaglebone could use the USB disk so the Fuze player would use the same directory tree. I tried XBMC/Kodi on the Raspberry Pi and it played MP3 files on the USB drive, but I hate the UI and no bookmark sharing makes it useless, in my opinion. Debian has an SDL package.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Bookmark import/export
« Reply #3 on: February 14, 2015, 08:07:42 PM »
Just checking in because I saw that there was maybe some disconnect with what I meant by "SDL app".

In case I wasn't clear, you can compile a Rockbox build of any arbitrary dimensions as an SDL app and theme it at your leisure (or compile it to any one of the supported resolutions of existing devices {which it will default to} to get the default UI added automatically at build time).

This is build variant '200' in our configure script for reference.

This will allow you to set the Database/File Browser starting directories to any volume mountable by the host system.

[Saint]
« Last Edit: February 14, 2015, 08:09:25 PM by [Saint] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline PaulF

  • Member
  • *
  • Posts: 49
Re: Bookmark import/export
« Reply #4 on: February 14, 2015, 09:03:29 PM »
Quote from: [Saint] on February 14, 2015, 08:07:42 PM
Just checking in because I saw that there was maybe some disconnect with what I meant by "SDL app".
No misunderstanding. I should have added that the Debian SDL package was a lib not an app.
Logged

Offline PaulF

  • Member
  • *
  • Posts: 49
Re: Bookmark import/export
« Reply #5 on: February 16, 2015, 06:21:32 PM »
I tried a compiled PC version and it looked great.

My Beagle Bone Black(BBB) had the SDL lib package and git pre-installed.

The make on the BBB went smoothly until it hit the inline ARM code in firmware/drivers/lcd-16bit.c

Code: [Select]
{standard input}: Assembler messages:
{standard input}:5353: Warning: conditional infixes are deprecated in unified syntax
{standard input}:5353: Error: thumb conditional instruction should be in IT block -- `streqh r8,[r7,#-2]'
{standard input}:5354: Error: thumb conditional instruction should be in IT block -- `cmpne r9,r2'
{standard input}:5355: Warning: conditional infixes are deprecated in unified syntax
{standard input}:5355: Error: thumb conditional instruction should be in IT block -- `strneh r9,[r7,#-2]'
make: *** [/root/rockbox/build-dir/firmware/drivers/lcd-16bit.o] Error 1
I have searched for the for the error messages and one site said just turn a global thumb mode in the GCCFLAGS. That fixed that file, but another file barfed with illegal instruction in thumb mode. I can't find a description for the three instructions anywhere. They must be obsolete. Any ideas what code would replace those instructions. It looks, to me, like they do a store half word depending on a compare flag.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Bookmark import/export
« Reply #6 on: February 16, 2015, 09:11:53 PM »
Hmmmm...

I really have no idea to be honest.

I have only ever cross-compiled for armel/armhf, I haven't ever actually compiled on such hardware natively due to not wishing to be burdened by the device's hideous constraints on i/O, network throughput, and processing power (etc. and so on - even though they're great devices for hacking around on, actually developing /on/ them is painful to say the least).

That being said, I haven't done so for the past year or so, and I honestly can't remember if I needed to jump through any hoops in order to do so (though I believe not).


[Saint]
« Last Edit: February 16, 2015, 09:13:28 PM by [Saint] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline PaulF

  • Member
  • *
  • Posts: 49
Re: Bookmark import/export
« Reply #7 on: March 15, 2015, 05:25:05 AM »
I picked up a Raspberry PI 2 a couple of days ago. Someone noted that the Sansa C200 simulator compiles on the Raspberry Pi, which makes sense because the ARM on the RP and the C200 are similar. I gave it a shot. The build was thing of beauty and a joy to behold with no errors and not even a stinking warning. I put link to my Sansa Fuze in the simdisk and it finds all my podcasts. Not sure about book marking, yet

Happy PI Day

 

* rock.JPG (21.25 kB, 356x180 - viewed 227 times.)
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Bookmark import/export
« Reply #8 on: March 15, 2015, 08:32:29 AM »
If you're going to go down that route, I'd recommend compiling the SDL application instead.
Logged

Offline PaulF

  • Member
  • *
  • Posts: 49
Re: Bookmark import/export
« Reply #9 on: March 15, 2015, 03:27:31 PM »
Quote from: gevaerts on March 15, 2015, 08:32:29 AM
If you're going to go down that route, I'd recommend compiling the SDL application instead.
That was going to be my next question. In the interactive configure I saw the SDL app. In the last couple of weeks of googling "SDL Rockbox", the latest I could find was the Summer of Code 2010 failed attempt at an SDL app. Thanks for answering my question.

Back to the point of doing this, I have to figure out if bookmarks can work on SDL (Query playing progress and Seek a time). So far the simulator doesn't update my bookmarks. Back to the manual. Hopefully, it is just a setting. Then move on to the SDL app.
Logged

Offline PaulF

  • Member
  • *
  • Posts: 49
Re: Bookmark import/export
« Reply #10 on: March 15, 2015, 10:37:29 PM »
Success  :) :) :)

One Raspberry PI bookmark using the SDL app and one  Fuze bookmark. The parent directories are different and I'm not sure what to do about that. I guess I may have to patch the SDL app for my case only, since I am having trouble compiling the Fuze FW. Maybe a pre and post processing perl script for the SDL app, instead.

PODCASTS/LeBatard with Stugotz.bmark
Code: [Select]
>3;2;4236096;0;942841;0;0;10000;10000;/media/3364-3339/PODCASTS/LeBatard with Stugotz/;Lebatard_3_13_15_Part_3.mp3
>3;1;7061376;0;1649257;0;0;10000;10000;/<microSD1>/PODCASTS/LeBatard with Stugotz/;Lebatard_3_10_15_Part_2.mp3
>
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Bookmark import/export
 

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

Page created in 0.077 seconds with 14 queries.