Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Apr 2014, 20:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
gtkpod 2.0.2 for iPod-Touch & iPhone
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 7 [95 Posts]   Goto page: 1, 2, 3, 4, 5, 6, 7 Next
Author Message
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Thu 26 Aug 2010, 00:00    Post subject:  gtkpod 2.0.2 for iPod-Touch & iPhone  

gtkpod is an iPod manager for Linux.

UPDATE July 2011: this is the latest gtkpod, version 2.0.2
It includes an extensive range of underlying libraries to support the most recent range of "i-devices" which all use a complex communication protocol, and these recent devices require a bit of extra setup to get working with gtkpod. See the next post for instructions.
Specifically I'm referring to the 1st/2nd/3rd/4th generation iPod-Touch and iPhone, and also the 1st/2nd generation iPad !
The underlying libraries are:
libusb-1.0.8
libplist-1.4
usbmuxd-1.0.7
libimobiledevice-1.0.6 (formerly libiphone)
fuse-2.8.5
ifuse-1.1.1
libgpod-git-20110322

The gtkpod-2.0.2 dotpet package is quite large, mainly because gtkpod now requires additional GTK libraries: libanjuta, libgdl, libxml2 and libunique.
I compiled this gtkpod package in Puppy 5.1, linking to :
- the id3tag library for tagging support
- the libcurl library for cover art download support
- and the FLAC and vorbis audio libraries.
I suspect this gtkpod package won't run properly in earlier Puppy versions. YMMV.

I also included the mp4v2 library, so when importing mp3 or wav files, these can be configured to be converted to the Apple-preferred AAC codec. Frankly, though, I suggest you don't do this.

And the icing on the cake is ... drum roll ... embedded audio playback !!
For this function you need to install the gstreamer-audio package I just posted here -
http://www.murga-linux.com/puppy/viewtopic.php?t=69698
All audio formats compatible with gtkpod have been tested to play successfully with my gstreamer package, namely:
- AAC (m4a)
- ALAC (Apple Lossless m4a)
- mp3
- wav (uncompressed)
- flac
- vorbis (ogg)
Beware; if you install and run gtkpod-2.0.2 before you install the gstreamer package, gtkpod will automatically detect that embedded audio playback is not possible, and it will disable the "Media Player" plugin.
If you then install gstreamer at a later stage, you must re-enable the Media Player plugin, in -
Edit > Preferences

Tagging should work OK with MP3 files, but Apple does some unconventional things to AAC files, so be wary when modifying AAC/m4a tags.
The safest way to tag AAC is with plinej's pmetatagger utility (now standard in Puppy) which uses the "AtomicParsley" tagging utility.

WARNING 1: To avoid possible harm to the filesystem on your iPod/iPhone, before disconnection you should always unmount the device. Instructions are in the next post.

WARNING 2: in case of total music database corruption on your device, you should have your original iTunes music library still available on a Mac or Windows machine.

You must install these two dotpets:
http://minipc.org/ipup/download/gtkpod-2.0.2.pet 2.6 MB
http://minipc.org/ipup/download/libanjuta-1.0-Puppy5.pet 2.1 MB

and for the media playback plugin, you must also install this dotpet:
http://minipc.org/ipup/download/gstreamer-audio-0.10.35.pet 5.4 MB
gtkpod-screenshot.jpg
 Description   
 Filesize   35.06 KB
 Viewed   7864 Time(s)

gtkpod-screenshot.jpg


Last edited by tempestuous on Tue 18 Sep 2012, 08:01; edited 3 times in total
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Thu 26 Aug 2010, 00:05    Post subject:  

INSTRUCTIONS

For the older (conventional) iPod models, you should just be able to plug in via USB,
you will see an icon for the device appear on your desktop - go ahead and mount it,
then refer to the "IMPORTANT UPDATE" section further down in this post.

But there's some extra setup involved for the Ipod-Touch, iPhone and iPad. This information is Puppy-specific, based on the excellent HOWTO provided by the developer of usbmuxd, Héctor Martín Cantero
http://marcansoft.com/blog/2009/10/iphone-syncing-on-linux-part-2/
After installing this dotpet, reboot. That will make sure pupevent/udev is restarted and will detect your device.

Connect your iPod/iPhone/iPad to Puppy via USB. Puppy should automatically launch the usbmuxd daemon.
To check, go to Menu > System > System Status and Config > Pprocess process manager
You should see "/usr/sbin/usbmuxd -u -U root -v -v" listed somewhere near the end of the list.
If so, that's good. If not, you will need to launch it manually each time, as such -
Code:
/usr/sbin/usbmuxd -u -U root -v -v


Now open /var/log/messages in Geany, and at the end you should see that your device has been recognised, with text like this -
Code:
usbmuxd[12707]: [4] Initializing USB
Found new device with v/p 05ac:1290 at 3-68
...
Connected to v1.0 device 1 on location 0x30044 with serial number be2975afb30b6db9025f95261b9e0a7041044661

If so, we can proceed. Take note of those last 40 characters; that's your UUID, and you will need it shortly.
Mount your device with ifuse -
Code:
ifuse /mnt/ipod


Now create the necessary iTunes_Control/Device directory on your device -
Code:
mkdir -p /mnt/ipod/iTunes_Control/Device

Next we create the necessary configuration file -
Code:
ipod-read-sysinfo-extended YOUR_UUID /mnt/ipod

Obviously replace "YOUR_UUID" with the 40 character string we identified earlier.
This should create a file (on your iPod) in /mnt/ipod/iTunes_Control/Device called "SysInfoExtended". Open this file in Geany and check that it looks OK - it should be a largish file with XML entries.
Your device is now configured to work with gtkpod.
Now might be a good time to back up your iPod's database, into the gtkpod directory. Do this -
Code:
cp /mnt/ipod/iPod_Control/iTunes/iTunesDB /root/.gtkpod/iTunesDB.bak

Before we can continue it's necessary to unmount the iPod -
Code:
fusermount -u /mnt/ipod

and reboot Puppy.
There are some reports that it's also necessary to restart your iPod/iPhone. It wouldn't hurt.

Once restarted, plug in your iPod/iPhone again, and mount it -
Code:
ifuse /mnt/ipod

You're now ready to use gtkpod. I suggest you launch gtkpod from the commandline, which might reveal any errors.

IMPORTANT UPDATE - iPod devices are not automatically detected by gtkpod !
You must go to Edit > Configure Repositories
and press the "+ Add New ..." button. You need to create a new repository, with the following:
Repository type: iPod
Repository name: <choose a name for your iPod>
iPod mountpoint: /mnt/ipod
iTunesDB backup: /root/.gtkpod/iTunesDB.bak (we created this file earlier)
Model: select your EXACT model. You will see that the latest iTouch/iPhone/iPad models are all listed.

Now go ahead and add some music.

Remember to unmount the device when you're finished!! If you disconnect the device before unmounting, you risk damage to the filesystem.

For conventional iPod models, right-click the device's icon on the desktop, and select "unmount ...".

For Ipod-Touch/iPhone/iPads, you need to unmount by running this command -
Code:
fusermount -u /mnt/ipod

UPDATE September 2012 -
Unmounting your Ipod-Touch/iPhone/iPad can now be automated as gtkpod exits, by installing the attached "iphone-unmount-hotfix" dotpet. (This does not apply to conventional iPod models.)

Finally, it might be worth re-connecting your iPod to a computer with iTunes, just to check that the newly added music files can be seen by iTunes.
iphone-unmount-hotfix.pet
Description  Only for Ipod-Touch/iPhone/iPads
pet

 Download 
Filename  iphone-unmount-hotfix.pet 
Filesize  420 Bytes 
Downloaded  364 Time(s) 
gtkpod-models.jpg
 Description   
 Filesize   32.51 KB
 Viewed   7791 Time(s)

gtkpod-models.jpg


Last edited by tempestuous on Tue 18 Sep 2012, 08:06; edited 2 times in total
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Thu 26 Aug 2010, 00:09    Post subject:  

Regarding Creative NOMAD/Zen MP3 players, and also "MTP" (Media Transfer Protocol) devices such as iRiver,
the best music manager application for Linux is Gnomad2. Get it here
http://www.murga-linux.com/puppy/viewtopic.php?t=21961
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Sun 29 Aug 2010, 10:05    Post subject:  

If anyone wants to employ volume normalization during the transfer of audio files from Puppy to iPod, here are the necessary additional utilities: mp3gain and aacgain, as a single dotpet.
Once installed, you must then enable the normalization funtion. Go to: Edit > Preferences > Settings > Normalization...
and specify the location of the mp3gain and aacgain executables, as illustrated.
normalization.jpg
 Description   
 Filesize   21.49 KB
 Viewed   7844 Time(s)

normalization.jpg

mp3gain-1.5.2_aacgain-1.9.pet
Description 
pet

 Download 
Filename  mp3gain-1.5.2_aacgain-1.9.pet 
Filesize  555.71 KB 
Downloaded  861 Time(s) 

Last edited by tempestuous on Fri 08 Jul 2011, 04:37; edited 1 time in total
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Sun 29 Aug 2010, 10:08    Post subject:  

TIP for iTouch/iPhone/iPad users:
Once you have gone through the involved setup process for these devices, and you know it works, it's somewhat inconvenient to then have to manually mount the device each time you plug it in, before launching gtkpod.
So to automatically mount the device each time you launch gtkpod, I have created a script; /usr/bin/gtkpod-run
This script checks for the presence of your device, mounts it if present, then launches gtkpod.
You can run this script from the commandline, but an elegant idea is to link it to a desktop icon;
in ROX, go to /usr/bin and drag the icon for "gtkpod-run" onto the desktop. This is ready to go, but it has a generic icon. To give it the correct icon, right-click it, select File 'gtkpod-run' > Set Icon...
and this will present a window. Use ROX to drag /usr/local/lib/X11/pixmaps/gtkpod48.png into the window.
Done!

Alternatively, you could consider modifying the udev rule for usbmuxd to include the ifuse command. But this means your device will be mounted whenever you plug it in, regardless of whether you intend to launch gtkpod and do any music file management. You might just want to charge your battery, for example.
Auto-mounting in such cases is potentially hazardous, since you're unlikely to remember to unmount the device before disconnecting.
gtkpod-icon.jpg
 Description   
 Filesize   2.54 KB
 Viewed   7851 Time(s)

gtkpod-icon.jpg


Last edited by tempestuous on Fri 08 Jul 2011, 04:50; edited 1 time in total
Back to top
View user's profile Send private message 
winderix

Joined: 04 Sep 2010
Posts: 3

PostPosted: Sun 05 Sep 2010, 01:26    Post subject: gtkpod 1.0.0 pet works with iPod Shuffle on Lupu510
Subject description: feedback on a great pet to connect iPod Shuffle on Puppy Linux 5.10
 

Just a note to confirm that this pet (gtkpod 1.0.0 for iPod-Touch & iPhone) works with my iPod Shuffle (3rd gen). Didn't have to install any extra lib files for Lucid Pup 5.10. Had to fiddle around some with the settings in gtkpod, but it's functional, not efficacious, let's say.

Haven't tried out the mp3 gain pet linked further down in this thread, but I usually normalize my mp3 files in dbpoweramp (more options), I know, in Windoze, but I bought J River Media Center some time ago and I've kind of become attached to it. Media Center has more tricks up its sleeve than iTunes and Songbird put together. If only MediaMonkey would monkey over with a Linux port, I'd give it not one but five bananas.

By the way, Songbird has been sold for 11 million bucks to Philips Electronics, so I've heard. Hope the founders of the program made some money for all their hard work and creativity. Songbird has also, as expected, given up all support for iPods. The iPod plugin is gone. I'm uninstalling Songbird from my Lucid Pup. It's a memory hog anyway. My iPod sounds great on my cheap computer speakers with gtkpod and Pmusic. To sound so good, Apple must have bought the sound chip for the iPod from the company that used to make Aardvark sound cards for the PC. Or maybe it's my Soundblaster-compatible card, which Puppy found without a hiccup. Who knows.

First time posting, so pardon me for rambling. Kudos to Barry and all the contributors for an outstanding pup. Lucid Puppy respected and let me load the driver for my defunct (circa 1998) ATI Rage 128 Pro 16M AGP video card on my antique 800Mhz PIII with 512 RAM, and so it goes, goodness all the way!
Back to top
View user's profile Send private message 
winderix

Joined: 04 Sep 2010
Posts: 3

PostPosted: Mon 06 Sep 2010, 14:45    Post subject: Amarok and the iPod Shuffle  

Got my iPod Shuffle working with Amarok in Lucid Pup 5.10 late last night.

The steps I took to achieve this feat as a novice are as follows:

A. Installed the pet named in this thread, viz., "gtkpod 1.0.0 for iPod-Touch & iPhone" by tempetuous. Then made sure my iPod was recognized by gtkpod. Browsed to: http://www.wikihow.com/Check-Your-iPod%27s-Generation to double-check the model and generation of my matchbox-size, screen-less (AlbumArt not supported) iPod.

B. Downloaded and installed the SFS file entitled "amarok-1.4-lucid.sfs for Pupppy 5.1" by dejan555 I believe, from http://puppylinux.org/wikka/LucidPuppySFS?show_comments=1 Pointed the device location in Amarok to the mount point where my iPod appeared on the desktop when plugged in. I have a frugal install of Lucid Pup 5.10, with a removable 500GB USB hard drive (NTFS) plugged in alongside my iPod at the back of my PIII machine's two USB ports, USB <2.0, I imagine.
Issue #1: Had to select the device mount point in Amarok as /mnt/sdc. Don't know why. When pointed to /mnt/ipod, Amarok didn't list any files, even though the latter directory was created by gtkpod I assume as a place for music file backups from the iPod. Some clarification would be helpful here.

C. Right-clicked on an album name in Amarok to load the mp3 files. Clicked the blue arrow button to play. Music.

Conclusion: The iPod's mp3 files play fine, with great clarity and superb stereo imaging, and with all the tag information intact and showing correctly in Amarok.
Issue #2: I don't have any protected files on the iPod, but the few m4a files that I do have don't play in Amarok. "No demuxer found..." is the error message. Wonder if the eminently knowledgeable tempetuous would care to comment on why they don't play. TIA.

Postscript: Hope this account helps someone, who can or cannot live without his/her iPod. I normally listen to music on my computer off my music database stored on my removable hard drive. But it's useful to have an alternative to iTunes for loading and unloading songs from the portable music player, which, to be fair, sounds great, even when listened to, on the move, with earpads (good) or earbuds (better). I think it's the sound quality of the iPod, more than its appearance or fashionable status-symbol-value, that has made it such a successful and profitable product for Apple Computer Corp.

Addendum: Similar in functionality to Rhythmbox, Amarok apparently means "wolf" in Inuktitut. Wolves don't sing, they howl. There was a DJ called "Howling Wolf" I heard mention of many years ago. Anyway, wolves do have pups, so there. Bye, bye, Songbird. Hello Lupus, Amarok.
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Tue 07 Sep 2010, 02:08    Post subject:  

winderix wrote:
the few m4a files that I do have don't play in Amarok. "No demuxer found..." is the error message. Wonder if the eminently knowledgeable tempetuous would care to comment on why they don't play.

That's really a question for the contributor of the Amarok package you're referring to.

If the developer of that package compiled the application from source, then they would know for sure which options were enabled during configuration.
But a certain number of applications contributed on this forum have been re-packaged from other distributions, especially Debian/Ubuntu, now that Puppy 5.x is library-compatible with Ubuntu (10.04 Lucid Lynx).
In these cases it can be difficult knowing the exact configuration details of the application.

If this Amarok package uses the Xine backend framework (instead of the gstreamer backend) then m4a (AAC) support will depend on whether the appropriate Xine input plugin has been enabled in the configuration, and included in the package. Specifically I'm referring to xineplug_decode_faad.so
which should be located at /usr/lib/xine/plugins/<xine-version>/

EDIT: yes, xineplug_decode_faad.so is present, and works. See next post.

Last edited by tempestuous on Wed 15 Sep 2010, 05:44; edited 1 time in total
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Wed 15 Sep 2010, 05:42    Post subject:  

Well I just installed dejan555's amarok-1.4-lucid.sfs in Puppy 5.1 now, and m4a audio files play fine!
Then I configured gtkpod to use amarok for "Play now" ("amarok %s") and this also successfully launched m4a files in amarok.
The only problem I anticipate is if the m4a file is DRM-protected!
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 1729
Location: Out wandering... maybe.

PostPosted: Wed 15 Sep 2010, 21:22    Post subject:  

If the file originates from Apple, and is protected, it'll probably have the .m4p extension, anyway. Razz So, unless someone's renaming the extension...

It'd be nice if the players and various media-information tools could look at a file and tell whether it's DRM-protected right away, rather than just go ahead and blindly try to parse/play the file, anyway. Neutral (Yeah, wishful thinking. Especially since there's multiple types of DRM encoding, and aside from Apple's use of .m4p, there really isn't an easy way to tell. Sad )

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
winderix

Joined: 04 Sep 2010
Posts: 3

PostPosted: Wed 15 Sep 2010, 23:00    Post subject: m4a files and cross-platformc compatibility  

Thanks for the compatibility report, tempestuous, I'll test out my m4a files more thoroughly in Amarok than I have, because I hardly ever use them. The protected m4p files I had on the iPod, I've either converted them to mp3 format using Sound Taxi, for personal use, or just scrapped them. Flac and Ape formats are better containers if you're ripping music off your CDs, using EAC, which on the PC side IMHO is really the best audio ripper--I was tempted to says "hands down" but I won't, because some moronic poster used this expression five times in one comment on another forum. How 'bout "hands up" instead of "hands down"? But let's not quibble.

It would be great, if it were possible, to have all the audio codecs in one pet, a la the great K-Lite Codec Pack for PCs. If I had more programming skills, other than a cursory knowledge of javascript, I might have attempted this job myself as a contribution. But for now, I think I'll just convert the m4a's to mp3 format, for it will, at least, save me from mucking up my meticulously tagged songs.

Tip: Do not add your AlbumArt to your mp3s. It will bloat their file size, and as a result you'll have less music on your iPod. Try and keep the AlbumArt pics separately, even if you have an IPod with a screen. As my puny shuffle doesn't have a screen, I place a "folder.jpg" picture file in each album directory. And then I can see the Album Cover when I play my tunes on my Desktop PC. I used to even see the pictures, if I remember correctly, in Aqualung, in Puppy 4.31, which I thought and still think is a masterpiece. Puppy 4.3x might probably never be outdone, alas. Lucid Pup is a dog of a different breed. Not a Border Collie, the most intelligent dog in the world, but maybe a Caniche (Poodle)--the third most intelligent. Who's to say. Bow wow. And thanks all.
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Fri 17 Sep 2010, 03:48    Post subject:  

winderix wrote:
It would be great, if it were possible, to have all the audio codecs in one pet, a la the great K-Lite Codec Pack for PCs.

This approach is not applicable in Linux. Linux audio applications cannot, generally, access a common registry of codecs as happens in Windows.
Linux applications must be explicitly configured to support the various audio codecs, and sometimes they link to external libraries for this purpose. But any developer who knows their subject can easily do so. It's not rocket science, and the range of audio codecs out there is really quite manageable, and hasn't changed in years.
Case in point; see my XMMS package here:
http://www.murga-linux.com/puppy/viewtopic.php?t=26528
All worthwhile audio codecs are properly enabled. Period.
(XMMS requires the GTK1 libraries in Puppy versions 4.x and 5.x)
The ffmpeg libary is an all-in-one codec pool in Linux, but pmusic is the only application I know of which will use this library.

winderix wrote:
for now, I think I'll just convert the m4a's to mp3 format, for it will, at least, save me from mucking up my meticulously tagged songs.

m4a (or m4p)-to-mp3 conversion involves significant quality loss.
You would be better off converting your DRM'd audio files to flac. flac supports tags.
Or if small file size is important to you, try to get a copy of QTFairUse6, which will strip off the DRM without re-encoding the AAC audio data.

winderix wrote:
Flac and Ape formats are better containers if you're ripping music off your CDs

Let's be clear on this subject; file containers do not determine audio quality. It's the codec which matters, and the best compression is no compression! Yes, FLAC and Monkeys Audio are better audio codecs (for quality, not size) than AAC, because they're lossless codecs. The containers they're written within just happen to be flac and ape, respectively. The FLAC codec can also be written within the ogg file container.
Back to top
View user's profile Send private message 
Lord_Solrac2

Joined: 22 Dec 2010
Posts: 35
Location: Gurabo, Puerto Rico

PostPosted: Tue 25 Jan 2011, 13:45    Post subject:  

Does it Support iPod Touch? 4G
Back to top
View user's profile Send private message AIM Address Yahoo Messenger 
tempestuous

Joined: 10 Jun 2005
Posts: 5139
Location: Australia

PostPosted: Tue 25 Jan 2011, 20:23    Post subject:  

4th-generation iPod-Touch and iPhones run Apple iOS 4.x, and these devices have limited support in gtkpod-1.0.0.
Apparently you can connect OK, even copy music files, but the music-sync function doesn't work.
The developers are working on it. It appears that 4th-gen support is fixed with the latest libimobiledevice library, but usbmuxd and libgpod also need to be updated.
Back to top
View user's profile Send private message 
Eathray

Joined: 06 Sep 2009
Posts: 479

PostPosted: Tue 19 Apr 2011, 21:37    Post subject:  

I'm just wondering if there's compatibility for Puppy Wary 5.0. I'd like to give GTKpod a try for my kid's shuffle.

Thanks

Eathray
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 7 [95 Posts]   Goto page: 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1252s ][ Queries: 13 (0.0170s) ][ GZIP on ]