Automate iTunes to Smartphone syncing. - Non-Touchscreen Windows Mobile Other
I have my music library in iTunes on my PC and wanted to automatically copy playlists to my smartphone to listen to music, video and audio podcasts. Also i wanted to do this using freeware if possible.
Not being able to find any application off the shelf to do this I set about making it happen myself.
On the smartphone I have installed the TCPMP freeware media player - downloaded from http://picard.exceed.hu/tcpmp/test/
You should also download all the plugins from the same site and install on your smartphone.
For the apple AAC format I downloaded the aac codec from a previous version (apple asked the developer to remove it from the current release) - http://www.rarewares.org/files/aac/tcpmp_aac_plugin.windows_mobile.0.66.zip
In iTunes I have created some auto playlists "My Podcasts", "My Videos" "My Smartphone"
settings in general select by least recently played for the music, and play count less than 2 for the podcasts, with a limit on the max size - For the videos I limit the playing time.
To get the music out of iTunes I modified a script I found on http://www.teavuihuang.com/massstorsync/ - my version updates the play count and last played date so that the smart playlists work.
The batch file should be edited to reflect the names of the playlists to get from iTunes and the location of where you want the local sync directory to be and saved to a subdirectory on your PC along with the javascript file.
SYNC.BAT - cut, paste, edit and save!
@echo off
echo My Music
erase playlist.bat >nul 2>&1
cscript //E:javascript //NoLogo ListOutbox.js "My Samrtphone" "%USERPROFILE%\My Documents\smartphone\My Music" >playlist.bat
if not exist "%USERPROFILE%\My Documents\smartphone\My Music" mkdir "%USERPROFILE%\My Documents\smartphone\My Music"
erase /Q "%USERPROFILE%\My Documents\smartphone\My Music\*.*" >nul 2>&1
call playlist.bat
erase playlist.bat >nul 2>&1
echo #EXTM3U > MusicMix.m3u"
echo #EXTINF:154, >> MusicMix.m3u"
dir /b /o:-d "%USERPROFILE%\My Documents\smartphone\My Music" >> MusicMix.m3u
move MusicMix.m3u "%USERPROFILE%\My Documents\smartphone\My Music"
echo My Podcasts
cscript //E:javascript //NoLogo ListOutbox.js "My Podcasts" "%USERPROFILE%\My Documents\StorageCardBackup\My Podcasts" >playlist.bat
if not exist "%USERPROFILE%\My Documents\StorageCardBackup\My Podcasts" mkdir "%USERPROFILE%\My Documents\StorageCardBackup\My Podcasts"
erase /Q "%USERPROFILE%\My Documents\StorageCardBackup\My Podcasts\*.*" >nul 2>&1
call playlist.bat
erase playlist.bat >nul 2>&1
echo #EXTM3U > Podcasts.m3u"
echo #EXTINF:254, >> Podcasts.m3u"
dir /b /o:-d "%USERPROFILE%\My Documents\StorageCardBackup\My Podcasts" >> Podcasts.m3u
move Podcasts.m3u "%USERPROFILE%\My Documents\StorageCardBackup\My Podcasts"
echo My Videos
cscript //E:javascript //NoLogo ListOutbox.js "My Videos" "%USERPROFILE%\My Documents\My iTunes Videos" >playlist.bat
if not exist "%USERPROFILE%\My Documents\StorageCardBackup\My Videos" mkdir "%USERPROFILE%\My Documents\My iTunes Videos"
erase /Q "%USERPROFILE%\My Documents\My iTunes Videos\*.*" >nul 2>&1
erase /Q "%USERPROFILE%\My Documents\StorageCardBackup\My Videos\*.*" >nul 2>&1
call playlist.bat
erase playlist.bat >nul 2>&1
echo Convert Video format
for %%x in ("%USERPROFILE%\My Documents\My iTunes Videos\*.*") do "C:\Program Files\3GP_Converter034\3GP_Converter.exe" "%%x"
echo #EXTM3U > Videos.m3u"
echo #EXTINF:254, >> Videos.m3u"
dir /b /o:-d "%USERPROFILE%\My Documents\StorageCardBackup\My Videos" >> Videos.m3u
move Videos.m3u "%USERPROFILE%\My Documents\StorageCardBackup\My Videos"
-------------------------------------------------------------------------------------
LISTOUTBOX.JS - cut, past and save!
/*
File: ListOutbox.js
*/
var today = new Date();
var MSSFolder = WScript.Arguments(0);
var OUTFolder = WScript.Arguments(1);
var iTunesApp = WScript.CreateObject("iTunes.Application");
var mainLibrarySource = iTunesApp.LibrarySource;
var playlists = mainLibrarySource.Playlists;
var currPlaylist = playlists.ItemByName(MSSFolder);
var Months = new Array("01","02","03","04","05","06","07","08","09","10","11","12");
if (currPlaylist == undefined)
{
WScript.Echo("Play list '" & MSSFolder & "' does not exist.");
iTunesApp.CreatePlaylist(MSSFolder);
WScript.Echo("Play list '" & MSSFolder & "' created.");
}
else
{
var currTracks = currPlaylist.Tracks;
var numPlaylists = currTracks.Count;
var i=1;
while (numPlaylists != 0)
{
var currTrack = currTracks.Item(i);
WScript.Echo("copy /Y \"" + currTrack.Location + "\" \"" + OUTFolder + "\" >nul 2>&1");
numPlaylists--;
currTrack.PlayedCount = currTrack.PlayedCount + 1;
if (today.getDate() < 10)
{
currTrack.PlayedDate = "0" + today.getDate() +"/" + Months[today.getMonth()] + "/" + today.getYear() + " 12:00:00";
}
else
{
currTrack.PlayedDate = today.getDate() +"/" + Months[today.getMonth()] + "/" + today.getYear() + " 12:00:00";
}
i++;
}
}
--------------------------------------------------------------------------------------------------
Although TCPMP can play most audio & video formats, some videos have a frame/rate and size much higher than that required for viewing on a small smartphone screen.
I therefore use 3gpConverter to re-encode them to mpeg format - this runs from the batch file just set the options in 3gpConverter to exit after encoding and specify output directory and format.
3gpconverter can be obtained from http://www.nurs.or.jp/~calcium/3gpp/3GP_Converter034.zip
I then create a shortcut on my desktop to the batchfile and clicking this gets all the music from iTunes to a folder on my PC ready for copying to my smartphone.
I gave up trying to use Activesync - its slow and due to the auto sync every 5 minutes bug, is pron to disconnect when copying large numbers of files and now remove the SD card and copy them directly - much quicker and reliable.
TCPMP will not play purchased media from iTunes, but this can be converted. See this article http://en.wikipedia.org/wiki/QTFairUse
I now have new music and videos on my smartphone each day with just a couple of mouse clicks.
Related
gaps between MP3 songs
Hi, no matter what music player i use on my XDAIIi i always get gaps in-between my songs. I have a lot of dance music which mixes into the next song on my CDs so if i play it on a CD player i have un-interrupted music but if i convert it to MP3 (CDex) then i have about a 1 sec gap from the 'end' of a song to when the next one starts. Is this just the way it is or am i converting to MP3s incorrectly? cheers
I seem to remember from my original Orange SPV smartphone days that there were workarounds for the fact that you couldn't skip forward movies, what you did was to create a playlist which pointed to different positions in the same file to simulate chapters. You could always try ripping your entire CD as one single MP3 and create a playlist for the individual songs in the file. That way if you play the playlist instead of the MP3 you can listen to it without gaps and still have the ability to jump forwards and backwards though it to a particular track. This is how you do it. File name = my album.mp3 Album title = my album Track 1 = "one" Length = 3 mins Track 2 - "two" length = 2 mins Track 3 = "three" length = 6 mins Playlist = my album.asx Playlist contents Code: <asx version="3"> <TITLE> my album</TITLE> <ENTRY> <StartTime Value = "0:0.0"/> <TITLE> one </TITLE> <Ref Href = "my album.mp3"/> <Duration Value= "3:00.0"/> </ENTRY> <ENTRY> <StartTime Value = "3:00.0"/> <TITLE> two </TITLE> <Ref Href = "my album.mp3"/> <Duration Value= "2:00.0"/> </ENTRY> <ENTRY> <StartTime Value = "5:00.0"/> <TITLE> three </TITLE> <Ref Href = "my album.mp3"/> <Duration Value= "6:00.0"/> </ENTRY> </asx> Once you create the playlist put it into the same folder as your mp3, or if you want to have a seperate folder for the playlist and the mp3 then change all the <Ref Href = "my album.mp3"/> lines to something like <Ref Href = "..\my music\my album.mp3"/>, which assumes you store your MP3s in "some path\my music\" and your playlists in "(the same) some path\my playlists\" It looks like quite a bit of work but I'd imagine that you won't need to be too accurate with your track timings, as long as they all add up. The tricky one is the start time as you need to remember to roll in all the track durations preceeding it. Madu (from modaco.com) had released an excel file with macros to enable you to partially automate the creation of the asx code but I can't seem to find it now.
The thought had already crossed my mind about ripping it to a single file with no chapters, do you know a good ripper that does this before i have to start downloading and installing everything i can find. I've already checked and CDex can't do this.
Haven't actually done it myself in a long time, but I'm sure that there are plenty of capable programs out there. CDex was one suggested on Modaco, I'm surprised it doesn't work, are you sure that you are selecting to extract a section of the CD to a compressed file and not just selecting tracks and ripping them?. You could always rip the raw data from the CD in BIN-CUE form and rename the .bin file to .wav then use any wave to mp3 convertor out there. This way you would also have a starting point for your playlist in the cue file.
Just had a play around with this and discovered that the playlist idea doesn't seem to work on the universal. I was able to set up the playlist and have all the songs entered into it, but when it reaches the end of the first track it just jumps back to the beginning again, ignoring the start time of the next track. Perhaps I'm just using the wrong format, I tried with both WMA and MP3, or perhaps its just WM05 which doesn't allow random entry into a file. If anyone else knows please post. EDIT: Must be a Windows Mobile 05 or SD card problem, the playlist plays perfectly in windows, jumps to the right track and plays without any gaps.
shuflie said: Haven't actually done it myself in a long time, but I'm sure that there are plenty of capable programs out there. CDex was one suggested on Modaco, I'm surprised it doesn't work, are you sure that you are selecting to extract a section of the CD to a compressed file and not just selecting tracks and ripping them?. You could always rip the raw data from the CD in BIN-CUE form and rename the .bin file to .wav then use any wave to mp3 convertor out there. This way you would also have a starting point for your playlist in the cue file. Click to expand... Click to collapse You're right, CDex does do it! I works too, great! Thanks everyone.
johnk1973 said: shuflie said: Haven't actually done it myself in a long time, but I'm sure that there are plenty of capable programs out there. CDex was one suggested on Modaco, I'm surprised it doesn't work, are you sure that you are selecting to extract a section of the CD to a compressed file and not just selecting tracks and ripping them?. You could always rip the raw data from the CD in BIN-CUE form and rename the .bin file to .wav then use any wave to mp3 convertor out there. This way you would also have a starting point for your playlist in the cue file. Click to expand... Click to collapse You're right, CDex does do it! I works too, great! Thanks everyone. Click to expand... Click to collapse How about the playlist idea, are you using one or are you just playing the entire album from start to finish?
I'm not going to bother creating playlists, i'm waiting for the T-mobile MDA Vario II / HTC Hermes like anyone else!
WMP: define root directory
Hi all Is there a possibility (reg hack, ..., ???) to set a default directory (i.e. \Storage Card\Media\) to be *the only* directory where Wîndows Media Player is searching for media files when updating the library? Otherwise it will find a lot of audio files from software products (navigation, ...) I obviously don't want to listen to with WMP ;-) Thanks for all input!
MP3 file problem - The system cannot find the file specified
All of my MP3's are no longer associated/recognised by Windows Media Player nor any other music program. When i select an MP3 i get a message saying "The system cannot find the file specified" I have also tried to open with Core Player to no success. It's almost like the MP3 extensions have been deleted or changed somehow. I have tried opening the file with Resco and doing a open with but still does not work. Can someone help restore MP3 playback?
orbit9 said: All of my MP3's are no longer associated/recognised by Windows Media Player nor any other music program. When i select an MP3 i get a message saying "The system cannot find the file specified" I have also tried to open with Core Player to no success. It's almost like the MP3 extensions have been deleted or changed somehow. I have tried opening the file with Resco and doing a open with but still does not work. Can someone help restore MP3 playback? Click to expand... Click to collapse When is that ? Do u have ur TP connected to the pc at that moment. because when yes and its mounted as a harddrive, the sd is not accessable from within the phone during that time.
no, even when it is not connected to a PC. Is it something to do with reg keys?
orbit9 said: no, even when it is not connected to a PC. Is it something to do with reg keys? Click to expand... Click to collapse dunno, try this. Its not from our phone but wm genaral should have this. http://forum.xda-developers.com/showthread.php?t=441087
Installed the File Explorer Extension cab and did the 'Open with' instruction and now plays with Windows Media sucessfully. However, the file is still an unknown type and causing problems with TF3D and searching the phone for music + ading tracks to playlists/libraries as the MP3's are uknown file types.
Manged to sort this one! It was a REG KEY problem. Had to change this entry: HKEY ROOT > .mp3 > default: mp3-file to HKEY ROOT > .mp3 > default: mp3dfile All it was is that it was looking in the wrong folder with unset/undefined parameters and entries.
orbit9 said: Manged to sort this one! It was a REG KEY problem. Had to change this entry: HKEY ROOT > .mp3 > default: mp3-file to HKEY ROOT > .mp3 > default: mp3dfile All it was is that it was looking in the wrong folder with unset/undefined parameters and entries. Click to expand... Click to collapse This worked perfectly. Thank you
[Q] How to start the default music player from my app?
I make a app with a ListView. When i tap on a ListView Item, a .ogg soundfile should start playing. Not in my app, but in the default music player app of the user. How does it work? Thanks P.S.: Sorry for my bad english
I believe you want an intent to open the file. Here's an example that should play the test.ogg file located on the sdcard: Code: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File("/sdcard/test.ogg"); intent.setDataAndType(Uri.fromFile(file), "audio/*"); startActivity(intent); You'll most likely want to replace "/sdcard/test.ogg" with a string variable that gets set as "/PATH/TO/sound.ogg" once a selection is made. Then use the above code to open the music app and play the file.
Thanks man!
How to export current settings (and import it on MX Player another Android device)?
How can I export current settings? .... and import it on a MX Player installation on another Android device?
Go to Local Player Setting --> General --> on the bottom you find Export setting. Than you chose a folder who it can be saved. After that you send to file to the other phone and make the same to the player of the other phone, on the bottom under Export you find import setting.