Page 1 of 2 12 LastLast
Results 1 to 20 of 22
  1. drnull's Avatar
    Posts
    570 Posts
    Global Posts
    571 Global Posts
       #1  
    I've had a few people asking about putting audiobook support into drPodder. Some may think that a music player with playlist support would be a good way to handle audiobooks. Some people just like drPodder's interface and want to keep all their longer audio files there.

    I may implement this functionality in the future, but there are some webOS API changes that would be helpful to make that happen. I'd like to be able to query the filesystem for a list of files in a particular directory.

    Back on topic:

    Here's a trick to make a list of files (local or web) show up as a feed in drPodder.

    First, round up the files. For this example, I'm going to assume you've got an audiobook named "My Audio Book". The mp3's for that book are named ch1.mp3, ch2.mp3, etc. Optionally, you could have a book cover saved as cover.jpg.

    Next get those files over to the Pre:


    H:\ (or whatever your USB drive is for the Palm)
    +-\myAudioBook\
    +-\myAudioBook\feed.xml
    +-\myAudioBook\cover.jpg
    +-\myAudioBook\ch1.mp3
    +-\myAudioBook\ch2.mp3
    +-\myAudioBook\...
    +-\myAudioBook\chNN.mp3


    feed.xml is a file you create, and it will look approximately like this:
    Code:
    <rss>
    <channel>
    <title>My Audio Book</title>
    <image><url>file:///media/internal/myAudioBook/cover.jpg</url></image>
    <item>
    <title>Chapter 1</title>
    <pubDate>Mon, 08 Mar 2010 12:59:59 EST</pubDate>
    <guid>ch1.mp3</guid>
    <enclosure url="file:///media/internal/myAudioBook/ch1.mp3" type="audio/mpeg"/>
    <description><![CDATA[<img src="http://www.google.com/intl/en_ALL/images/logo.gif"/>In chapter 1, we have a google logo.  Weird, isn't it?]]></description>
    </item>
    <item>
    <title>Chapter 2</title>
    <pubDate>Mon, 08 Mar 2010 12:59:58 EST</pubDate>
    <guid>ch2.mp3</guid>
    <enclosure url="file:///media/internal/myAudioBook/ch2.mp3" type="audio/mpeg"/>
    </item>
    ...
    <item>
    <title>Chapter NN</title>
    <enclosure url="file:///media/internal/myAudioBook/chNN.mp3" type="audio/mpeg"/>
    <pubDate>Mon, 08 Mar 2010 ##:##:## EST</pubDate>
    <guid>chNN.mp3</guid>
    </item>
    </channel>
    </rss>
    Make sure that the path after "file:///media/internal/" matches up with the directory you made on the Pre for the media files. Also make sure that the pubDate is DECREASING so that the episodes will sort properly in drPodder. Finally, make sure you put a guid in for each episode. The guid is what lets drPodder know that this is not a new episode. That way it won't duplicate your chapters when you update the feed (obviously you don't need to update the feed, but if you have auto-updates turned on, this would otherwise get weird).

    Then, in drPodder, add a new feed by URL. Type in:
    Code:
    file:///media/internal/myAudioBook/feed.xml
    as the feed URL.

    That's it! You should be able to listen to your audio book in drPodder using "Play From Top". It will mark the chapters as old as you listen to them, and save your position as you leave playback. You probably don't want to download the files from within drPodder (it actually fails to download, and I don't know (or care) why )

    If you wanted to keep these files hidden from the photo viewer and built-in music player, just put a leading "." onto the directory name (so myAudioBook becomes .myAudioBook). Windows is an utter failure here, so you'll have to open a command window and type "ren myAudioBook .myAudioBook".

    If you want to point to files on the internet instead of files located in on the Pre, you can, just adjust feed.xml accordingly (use "http://" references instead of "file://" references).

    Also, keep in mind that webOS is linux based, so cAsE mAtTeRs!!

    Let's keep any discussion of this trick over in this thread, as I really don't "support" it, per se...
    Attached Images Attached Images
    Last edited by drnull; 03/10/2010 at 11:54 AM. Reason: Fixing example, adding explanation for pubDate & guid
  2. stbxxl's Avatar
    Posts
    513 Posts
    Global Posts
    566 Global Posts
    #2  
    Great idea. I will try it out tonight.
  3. msb
    msb is offline
    msb's Avatar
    Posts
    109 Posts
    Global Posts
    114 Global Posts
    #3  
    This is awesome... now I know how to "move" the podcasts from the old drPodder to the new one!
  4. drnull's Avatar
    Posts
    570 Posts
    Global Posts
    571 Global Posts
       #4  
    Quote Originally Posted by MSB View Post
    This is awesome... now I know how to "move" the podcasts from the old drPodder to the new one!
    Wow, brilliant. Why didn't the author of drPodder think of that??

    ... oh wait.
  5. stbxxl's Avatar
    Posts
    513 Posts
    Global Posts
    566 Global Posts
    #5  
    I couldn't help myself and tried it. It works beautifully.

    Now that this function has been added to drPodder I have another feature request: Add a user option to speed up the playback. For instance +10% and +20%. This way I can listen to an 10h audio book in only 9 or even 8 hours.

    Obviously this would also require some additional tweaking for keeping the audio frequency the same as otherwise it wouldn't sound good (high pitched). I don't know whether this is possible with the current SDK but I figured it doesn't harm to ask.
  6. #6  
    I did have trouble getting an image file to show up. Should the JPG be perfectly square( ie, 300 x 300 ) ? I put all my audio files and the .jpg on my internet server and the files stream fine but no image..
  7. drnull's Avatar
    Posts
    570 Posts
    Global Posts
    571 Global Posts
       #7  
    Quote Originally Posted by STBXXL View Post
    Now that this function has been added to drPodder I have another feature request: Add a user option to speed up the playback. For instance +10% and +20%. This way I can listen to an 10h audio book in only 9 or even 8 hours.
    I would love this as well. It's one feature on i* devices that I actually envy. Tragically, webOS doesn't support this yet (it's an HTML5 audio object property, so I have hope that they will eventually support it)

    Quote Originally Posted by pcvideotech View Post
    I did have trouble getting an image file to show up. Should the JPG be perfectly square( ie, 300 x 300 ) ? I put all my audio files and the .jpg on my internet server and the files stream fine but no image..
    No, the jpeg should be valid at any setting. Could you send the feed xml address to support@drpodder.com? I'll take a quick peek at it.
  8. #8  
    If there is any interest in using a mp3-tag -> feed.xml converter, I working on a .net version. A feature could also be: converting existing podcast folder structure into feed.xml format or/and manual tagging other sort of media files to feed.xml format.
  9. msb
    msb is offline
    msb's Avatar
    Posts
    109 Posts
    Global Posts
    114 Global Posts
    #9  
    drNull,

    What property does drPodder use to order the tracks within a "local" podcast? Each time I open the application and the feed, the order of the individual podcasts is different (and seemingly random). I assumed it would use the order of the files in the feeds.xml file, but that doesn't appear to be happening.

    Also, the date that is displayed under the title of each podcast... where is that coming from? Is it using the "modified" date/time and can it be defined in the feeds.xml file?

    Thanks
  10. msb
    msb is offline
    msb's Avatar
    Posts
    109 Posts
    Global Posts
    114 Global Posts
    #10  
    Quote Originally Posted by runebune View Post
    If there is any interest in using a mp3-tag -> feed.xml converter, I working on a .net version. A feature could also be: converting existing podcast folder structure into feed.xml format or/and manual tagging other sort of media files to feed.xml format.
    Absolutely! I manually built the feed.xml file, but it was a grueling process.
  11. drnull's Avatar
    Posts
    570 Posts
    Global Posts
    571 Global Posts
       #11  
    Quote Originally Posted by MSB View Post
    What property does drPodder use to order the tracks within a "local" podcast? Each time I open the application and the feed, the order of the individual podcasts is different (and seemingly random). I assumed it would use the order of the files in the feeds.xml file, but that doesn't appear to be happening.

    Also, the date that is displayed under the title of each podcast... where is that coming from? Is it using the "modified" date/time and can it be defined in the feeds.xml file?
    So yeah, I've been meaning to get back to this thread.

    Since posting this and allowing a day or two to go by, I found that my "chapters" in my test feed audiobook keep getting duplicated.

    The property used by drPodder to order episodes is the pubDate. Let me get back to you after doing a bit of research and I'll let you know the best way to make this work.

    @runebune, that sounds awesome. I don't always keep up with these threads, so if you need any support or want to ping me, remember: support@drpodder.com
  12. #12  
    @drnull, sounds good. I will in the next few days make an initial project layout with some really basic features. Keep up the good work drnull \0/
  13. drnull's Avatar
    Posts
    570 Posts
    Global Posts
    571 Global Posts
       #13  
    FYI: updated original post with details about guid & pubDate. Also included example in chapter 1 of what you need to do to put content in the description area. You could (theoretically) put album art, chapter descriptions, etc. Whatever @runebune decides to support in his feed generator. (very cool that you're gonna throw something together, btw!)

    Quote Originally Posted by drnull View Post
    ... Also make sure that the pubDate is DECREASING so that the episodes will sort properly in drPodder. Finally, make sure you put a guid in for each episode. The guid is what lets drPodder know that this is not a new episode. That way it won't duplicate your chapters when you update the feed (obviously you don't need to update the feed, but if you have auto-updates turned on, this would otherwise get weird).
  14. #14  
    I will just let you all know that I'm working on an application also before in this thread.

    The application is at the moment in alpha state with a minimum of features.
    Features are:
    • Select files/folders to copy to device
    • give a title and directory name
    • hide media from music and picture app in webOS
    • set feed/channel image
    • open destination directory
    • write feed.xml to device (feed index/meta file)
    • write drpodder.xml to device for easy import


    All this is just to import media files (audio/video) to the drPodder application from a computer. The commen use of this application is importing audio books, but can of cause import all kind of webOS supported media files.

    Releases and discussions in this thread:
    http://forums.precentral.net/general...-importer.html
    Last edited by runebune; 03/19/2010 at 06:08 PM.
  15. #15  
    I use a somewhat lower rent hack to get my audiobooks in drPodder. This is probably only feasible if you're using something like audible.com files where you have just 1-3 large files per book. It would be very tedious if you have one file per chapter. But otherwise it's pretty quick if you don't want to mess with the XML file.

    1. Add a new podcast feed -- pick anything from the directory. We're just going to hijack it. Best to choose one that has a bunch of short podcasts to minimize download time (let's call it "The Daily Minute")
    2. Download a few those podcasts (you'll need one for each audiobook MP3 that you have)
    3. Now plug in your Pre in USB mode and locate the drPodder download directory for your new feed (/drPodder/.The Daily Minute). You should see the files you just downloaded in step 2. Now copy your audiobook MP3 files in there too.
    4. To complete the hijack, you need to rename your audiobook files with the names of the downloaded podcast mp3 files. (That's the tedious part.)

    Unplug your Pre and head back to drPodder... play that episode and now it will load up your new audiobook mp3 instead.

    So this isn't the prettiest way to do it -- the feed title and episode names don't match the content, but I don't care about that. I just want the auto-bookmarking and awesome navigation of drPodder.

    (Ok, I care about it a little -- you can do some creative stuff with with the feed naming and episode title substitution features to get better labels on your episodes and that makes it a little nicer.)
  16. #16  
    Quote Originally Posted by dtoliver View Post
    I use a somewhat lower rent hack to get my audiobooks in drPodder. This is probably only feasible if you're using something like audible.com files where you have just 1-3 large files per book. It would be very tedious if you have one file per chapter. But otherwise it's pretty quick if you don't want to mess with the XML file.

    1. Add a new podcast feed -- pick anything from the directory. We're just going to hijack it. Best to choose one that has a bunch of short podcasts to minimize download time (let's call it "The Daily Minute")
    2. Download a few those podcasts (you'll need one for each audiobook MP3 that you have)
    3. Now plug in your Pre in USB mode and locate the drPodder download directory for your new feed (/drPodder/.The Daily Minute). You should see the files you just downloaded in step 2. Now copy your audiobook MP3 files in there too.
    4. To complete the hijack, you need to rename your audiobook files with the names of the downloaded podcast mp3 files. (That's the tedious part.)

    Unplug your Pre and head back to drPodder... play that episode and now it will load up your new audiobook mp3 instead.

    So this isn't the prettiest way to do it -- the feed title and episode names don't match the content, but I don't care about that. I just want the auto-bookmarking and awesome navigation of drPodder.

    (Ok, I care about it a little -- you can do some creative stuff with with the feed naming and episode title substitution features to get better labels on your episodes and that makes it a little nicer.)
    You could also use my drPodder Media Importer software: http://forums.precentral.net/general...-importer.html

    The only downside compared to your method could be that webOS/drPodder cannot delete the physical files, this must be done via the USB mode. drPodder Media Importer will name the episodes after the id-tags in the corresponding mp3 file you import.
  17. #17  
    beautiful! Thanks alot!
  18. #18  
    Change log:

    0.1.6.0
    -Remove files from tree via context menu (right click)
    -Restore database will search for media files in drPodder directory and ask for deletion because all episodes will be flaged as NOT downloaded and drPodder will try to download
    -MONO Ready (should run with MONO on Linux and Mac)
    -Links in About Box

    thread and download

    could some one please try to test it with MONO on Linux or Mac or any other MONO platform and give me some feedback?
  19. #19  
    released a new version of drPodder Media Importer

    Change log:

    0.2.0.1 (Beta)
    -Loading m3u playlist files, supports url and local files within the format (only absolute and not relative paths as \directory\file)
    -Donation button
    -Email link in About Box
    -Choose episode downloaded flag on restore (all/non)
    -Detect drive on palm directory basis not drPodder directory (drPodder directory does not exist if no feeds are ever updated)
    -Create drPodder directory if not created when processing media files
    -Better MONO support
    -Version in application title
    -Bug: disable context menu (remove) when in progress

    also features in progress for future releases:

    -run an RSS feed server with ip/port listen
    -convert local media files into local rss feed
    -truncate web RSS feeds on local server
    -application configuration persistence
    -application configuration save/load file
    -detect icon files on restore and clear in database if not existing

    thread
  20. #20  
    I wrote a simple bash script to do this, not fancy gui like runebune's and it doesnt try to copy to the device. Mainly for my own use, but i thought i might as well put it out there.
    I suppose it should work on the pre aswell in the terminal, but i haven't tried it.
    its at:
    gitorious(dot)org(slash)alexs-random-projects/drpodder-make-feed/blobs/master/make_feed.sh
    (sorry, not enough posts to make links yet)
Page 1 of 2 12 LastLast

Posting Permissions