Found playlists - bigger effort to sync with pc - Captivate Android Development

Location for playlists is in a database in the /dbdata directory:
/dbdata/databases/com.android.providers.media
Maybe a unique file for each person:
external-6e84080b.db
Numerous tables that store the location and attributes of all media on the phone - videos, music, sounds, pictures.
There is a table that has titles of playlists (custom ones, not the default) and links to another table of the actual playlist contents. The default playlists are probably a view. There is a also a hash value generated for each song - I assume it is an actual hash generated by media scanner and stored in table.
Anyway, it looks like a lot of work to find a solution to sync playlists - I see the following effort required
1. Playlists would have to be created on PC (M3U) but converted to SQL script
2. Directory structure on phone, must be known for script to create proper paths
3. Must run after media scanner on phone
4. Tool must run as root on phone that creates playlist in DB file
On the phone I see something like this:
1. Media scanner runs - creates entries for all music in DB file
2. Playlist script runs, creates playlist in playlist table for each playlist in M3U
3. For each file in M3U playlist, SQL script must find song in Media DB file, and create a record in playlist table with correct entries (path, hash, etc.)
Anyone see any issues with this or this logic?
I guess maybe a utility would not have to run as root - since somehow the music app creates the playlist. Maybe the file doesn't root access - need to check.

Is there a way to wipe the media database and have the media scanner build it from scratch?
I have my music in /Music and my WMP Playlists in /playlists (as synced by WMP) but the Android media datbase can't find some mp3s, duplicates certain mp3s in playlists, and have two copies of some playlists...
It's completely corrupted! I want to just restart.

I simply copy over the .wpl files and use PlayerPro instead now... but would be ideal if the .pla files are automatically generated through the WMP sync process more consistently (sometimes it works fine... normally the first time only)

I finally discovered a solution to this whole issue with playlists. Just use Songbird along with the FolderSync addon. This Songbird addon easily syncs your entire library along with your playlists into one simple folder onto any storage device. This folder can be read by any music player on your phone and properly displays your entire library and playlists.
I used this addon with my external microSD card and transferred my library and playlists via a card reader. This addon also creates a playlist named 'library' containing your entire library in addition to your other playlists.
Hopefully this will address any issues related to playlists.
This is the tutorial where I found the solution:
http://arashpayan.com/blog/index.php/2010/05/23/sync-music-and-playlists-with-android-using-songbir/

Related

TouchFlo Music

Hi
Could anyone tell me how I get the music part of touchflo to read mp3 files on my storage card
I deleted the stock 2 music files from my documents/music folder and now it just tells me there are no files found !
Thanks
I'm not sure exactly why the music player is not seeing your music files, but I can pass on some useful tips that I have discovered. Please excuse me if these have been covered elsewhere, or if some of them seem terribly obvious to experienced users :
(1) Put all the tracks from a particular album inside their own folder, and save each such album folder in a "My Music" folder on the SD card. This keeps things nice and organised.
(2) Try to ensure that each track MP3 file has got the various "meta tags" set properly to describe the track number, artist, album etc because the music player uses those for sorting and filing the tracks. There is a handy program called Tag&Rename that is very helpful to edit these tags.
(3) If you place a JPG image called "Folder.jpg" inside each album folder, the music player will make a copy called "hTC_AM_AlbumArt.jpg" which it displays when you play back that track or when chosing albums. Once the music player has made this file, you can delete "Folder.jpg" to save space.
(4) The music player may take several minutes to index all the music if you have many files. Be patient! Until it has indexed fully, some tracks may not appear in the music library at all, or appear with music note images instead of the proper album image.
(5) If the indexing seems to have any problems, switch off the HD with a long press of the power button or do a soft reset. This seems to force it to re-index all the music.
(6) I had a problem when I first copied all my music to the device. It made an error message afte a while. I tracked this down to one particular music track; I don't know why, but suspect that there may have been something odd in the meta tags.
Hope this helps !
- Steve
the best way, i think is sync the music files with wmp in your pc

[APP] Automatic playlist creator for Windows Mobile and others (.m3u / .wpl / .asx)

Hi,
Just wanted to share some small Java program that i've written in order to create playlists for my music.
My problem was as follows: around 5000 mp3s gathered in a few years time, converted to eaac+, mostly without proper ID3 tags and sorted by folder.
This was OK for Coreplayer where i could use "play folder" but not in windows media player which seems to work better for my Touch HD in some of the newly cooked ROMs.
So i've writted this Java class that goes recursively trough my folders and creates a playlist of each type (m3u / wpl / asx) in each folder, that contains all the music files (mp3 / aac) in that folder and in all subfolders (it's careful thou to avoid names that could hurt playlists, so it accepts just some special characters in file names, for example it will not allow '$' as it will break XML formatting for XML-type playlists)
To exemplify consider the following directory structure:
dir_a
--dir_b
----1.mp3
----2.aac
--dir_c
----3.aac
--4.aac
The program will
- create playlists called "dir_a.m3u", "dir_a.wpl" and "dir_a.asx" in dir_a that will contain all the music files (1.mp3, 2.aac, 3.aac and 4.aac)
- create playlists called "dir_a-dir_b.m3u", "dir_a-dir_b.wpl" and "dir_a-dir_b.asx" in dir_b that will contain dir_b's music files (1.mp3 and 2.aac)
- create playlists called "dir_a-dir_c.m3u", "dir_a-dir_c.wpl" and "dir_a-dir_c.asx" in dir_c that will contain dir_c's music files (3.aac and 4.aac)
This works for as many as files as you get or as deeply nested directory structure that you may have as long as you don't start hitting some FAT32 limits (max file name length for example)
This takes care of creating playlists for most players (Winamp / Windows Media Player / Coreplayer / Pocket Windows Media Player / etc.). If you don't need all the playlist types, just search for example "*.wpl" and delete them all.
I've uploaded a zip archive containing:
- PlaylistCreator.jar -> compiled stuff, if you have java properly installed you can just put this in a folder and double click it and i will start working on creating playlists, or you can open a command console in that folder and start it using by "java -jar PlaylistCreator.jar"
- Main.java -> source code for the program
What i don't know how to do is create playlists for the Music Tab of HTC TouchFlo3D. If someone has any idea of the format that the Music Tab uses for playlists, i would be happy to extend it to create playlists for that. Or is someone has some Java skills and wants to do it themselves, please feel free to and show the world how it's done
whoa, noone did reply?
Thank you for that app, exactly i was looking for.
Thanks for providing the source. Maybe I will tweak it a bit to accept video format as well.

Is There A Way To Save Playlist To Memory Card?

I downgraded firmware to gain root access and install Hero, all my playlists are gone. Over 300 songs have to put them all in playlist again. Is there a way to save playlists like we do for windows media player playlist?
I REALLY wish I knew this as well... Everytime I have to wipe my playlists are gone...
EDIT: Was thinking... does MyBackupPro save playlists? That would be worth the cost...
No. The way to do it is backwords. Create the playlist on your PC and save it to your SD card (pls file will work as well).
huh!? can you explain this in more detail? how do I create a playlist for my G1 on the PC?
mm0
never mind...got it...
So, this is what I did...
1) mount the G1 on a windows computer.
2) Open Windows Media Player
3) Import the 'Music' folder of the G1 into Windows Media
4) Go to the 'Library' tab
5) Drag files from the G1 to the 'Now Playing' window
6) Use the drop down box above the 'Now Playing' window to do a SaveAs
7) Save as a .m3u type playlist
8) Copy the playlist file to the 'Music' folder of the G1.
Done
mm0
P.S. The .m3u file seems to work as is, even though if you open it up with a text editor, it shows the path as a windows path...regarless of that, it works.
muzicman0 said:
never mind...got it...
P.S. The .m3u file seems to work as is, even though if you open it up with a text editor, it shows the path as a windows path...regarless of that, it works.
Click to expand...
Click to collapse
you can delete the path and keep the file name only if you save the m3u file at the same folder of the music files
What I do now is sync playlists from WMP to my G1 (some reason when syncing WMP playlists to phone it copies mp3s to the phone and not the playlist itself). Then I go to my music folder on my computer and then copy the playlist folder onto the G1.
I just do a party shuffle when I'm lifting
I used WMP for awhile but it hated my tags. So I tried out Media Monkey. After setting it up all the way (per this post), it is way better than WMP. Easy syncing and easy playlist copying. Just a FYI.

Media Player/HTC Music Player and iTunes/iPod Use

I currently have all of my music (15,000+ songs) set up for use with Itunes/iPod. I would like to try to use Windows Media Player with the HD2. However, I am concerned about letting Media Player access my files that are currently cataloged in iTunes.
1. Can I set up Media Player so that it accesses the mp3 and m4a files but doesn't copy or move the files from the iTunes folder?
2. If I add the music to the Media Player system, can I rate the music in the Media Player without changing or disrupting the music files themselves?
3. Can Media Player playlists be created without disrupting the iTunes system?
If you currently are using Media Player/HTC Player AND iTunes/iPod successfully, can you tell me if there are any issues that need dealing with? Up until now I've been manually copying music to the HD2. Unfortunately, there seems to be some sort of corruption issue if I delete files that I've added to playlists from within the HD2 Player. I'm assuming that using Media Player to create lists is easier and more secure than creating lists from manually copied files.
Any help or suggestions will be greatly appreciated.
-Bob-
The easiest way I recommend which I my self did is Find your Itunes library on your computer copy it to your HD2's storage Card and from there do whatever you like.
hagba said:
The easiest way I recommend which I my self did is Find your Itunes library on your computer copy it to your HD2's storage Card and from there do whatever you like.
Click to expand...
Click to collapse
From my original post: "Up until now I've been manually copying music to the HD2. Unfortunately, there seems to be some sort of corruption issue if I delete files that I've added to playlists from within the HD2 Player."
As far as I know you should delete songs from the folder that you have your music in it usually on your storage card that should not be any problem,another way is that you use the ActiveSync to sync your music files from your computer to your device,in this way whenever you add or delete a music file on your PC it will be automaticaly synced to your Phone,this sure is the better way.

question about putting music in the phone

where in the sdcard can I put the music I have in my pc so it shows correctly in the player in the phone?
Create a folder named music.
Actually, music can be wherever you want it to be, in whatever folder you want. There's a media scanner process that runs every so often that scans your SD card and finds music files wherever they may be. Typically the stock media player can see all media files found by the scanner, but if you're using a third-party player, it might only look certain places for the files.
Off the top of my head, Meridian lets you choose which folders it will look in for media files, whereas doubleTwist appears to be hard-set to only look in certain locations for media files, such as Music and Videos (it seems to ignore any audio files I have in my notifications and alarms folders).
If in doubt, then yeah, just put your music files in a folder called Music.

Categories

Resources