Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

HOWTO: iPod, album artwork and amarok

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
tmf
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue May 10, 2005 3:47 pm
Location: Warsaw, Poland

HOWTO: iPod, album artwork and amarok

  • Quote

Post by tmf » Wed Jan 17, 2007 4:25 pm

Disclaimer: as always - anything you do, you do at your own risk :P


At december 21, 2006 package media-libs/gdk-pixbuf was removed from portage (due to gnome 1 removal). Sadly, this was also the end to artwork support for iPods, since media-libs/libgpod (library that supports ipods on linux) uses gdk-pixbuf to manipulate images. The solution to get artwork work again with iPod is to get back gdk-pixbuf on your system:

1) Create portage overlay (if you dont have it already). Add

Code: Select all

PORTDIR_OVERLAY="/usr/local/portage/"
to your /etc/make.conf file. Then create following directory structure

Code: Select all

/usr/local/portage/
/usr/local/portage/media-libs/
/usr/local/portage/media-libs/gdk-pixbuf/
/usr/local/portage/media-libs/gdk-pixbuf/files/
2) From sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/gdk-pixbuf/?hideattic=0 get an old ebuild of media-libs/gdk-pixbuf and put it at proper place:

Code: Select all

cd /usr/local/portage/media-libs/gdk-pixbuf
wget http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-libs/gdk-pixbuf/gdk-pixbuf-0.22.0-r5.ebuild?rev=1.6
3) From http://sources.gentoo.org/viewcvs.py/ge ... ortby=date download needed patch files (see below). Put them at /usr/local/portage/media-libs/gdk-pixbuf/files/ directory. 'ls' should give you

Code: Select all

gdk-pixbuf-0.22.0-bmp_reject_corrupt.patch  gdk-pixbuf-0.22.0-loaders.patch
gdk-pixbuf-0.22.0-bmp_secure.patch          gdk-pixbuf-0.22.0-m4.patch
3) From gdk-pixbuf-0.22.0-r5.ebuild comment out the line:

Code: Select all

>=gnome-base/gnome-libs-1.4.1.2-r1"
Dont forget to add missing " after !amd64? ( <sys-libs/db-2 ) . The coresponding framgent of ebuild should look like:

Code: Select all

RDEPEND="media-libs/jpeg
    media-libs/tiff
    =x11-libs/gtk+-1.2*
    >=media-libs/libpng-1.2.1
    amd64? ( sys-libs/db )
    !amd64? ( <sys-libs/db-2 )"
#   >=gnome-base/gnome-libs-1.4.1.2-r1"
4) Run 'ebuild gdk-pixbuf-0.22.0-r5.ebuild digest', then 'emerge gdk-pixbuf'.

5) libgpod ebuild present in portage patches out use of gdk-pixbuf. We need to fix that. Edit /usr/portage/media-libs/libgpod/libgpod-0.4.0.ebuild removing line:

Code: Select all

epatch ${FILESDIR}/libgpod-0.4.0-test-nogdk.patch
6) Run 'ebuild /usr/portage/media-libs/libgpod/libgpod-0.4.0.ebuild digest' to get correct digests. Note: the changes you just made will go away after next 'emerge --sync'. It would be better to put ebuild into overlay, but I'm just to lazy to do that :)

7) Reemerge libgpod and amarok. Make sure libgpod has gtk useflag turned on. Amarok should have ipod useflag obviously.

8 ) After succesfull emerge you need to do one more, important thing. Mount your iPod (I've mounted mine at /media/ipod directory). Use gtkpod (app-pda/gtkpod) to setup /media/ipod/iPod_Control/Device/SysInfo file on your iPod (this file is used by libgpod to determine which iPod model is connected). After this step /media/ipod/iPod_Control/Device/SysInfo file should look like

Code: Select all

ModelNumStr: xA426
If you dont have gtkpod and dont want to emerge it you may try to setup the file manually. Use list from http://en.wikipedia.org/wiki/List_of_iPod_model_numbers and figure out the correct model string. Note: at wikipedia list my model is listed as MA426LL/A, so the string you want to put into the file isnt exactly the string from wikipedia (MA426LL/A vs xA426 :) )

9) Go to amarok. Mount your ipod. Right click on ipod dir structure in amarok, choose "Fix iPod->Refresh album art". After you disconnect your ipod you should see album covers when playing on ipod.

Cheers,
tmf
Top
justwantstohelp
Apprentice
Apprentice
User avatar
Posts: 251
Joined: Thu Jun 29, 2006 9:22 am
Location: Sacramento, California

  • Quote

Post by justwantstohelp » Wed Jan 17, 2007 8:05 pm

iPod album artwork always worked for me in amarok since 1.4.
We need to shoot cops, and hang politicians. Concentrate the vision, concentrate the vision.
Top
nflamel
n00b
n00b
User avatar
Posts: 21
Joined: Mon Jan 22, 2007 12:26 am
Location: Spain
Contact:
Contact nflamel
Website

  • Quote

Post by nflamel » Mon Jan 22, 2007 12:48 am

If you include libgpod-0.4.0 in the overlay it won't be overwrited in next emerge --sync

Include current libgpod ebuild files on the overlay

Code: Select all

mkdir -p /usr/local/portage/media-libs/libgpod
cd /usr/local/portage/media-libs/libgpod
cp -R /usr/portage/media-libs/libgpod/* .
rename libgpod-0.4.0 ebuild to simulate a new version

Code: Select all

mv libgpod-0.4.0.ebuild libgpod-0.4.0-r1.ebuild
Once you've renamed it, modify ebuild as you told in your post and run

Code: Select all

ebuild /usr/local/portage/media-libs/libgpod-0.4.0-r1.ebuild
After if continue as you told in your post :D

Note: I had not tried it with libgpod-0.4.2 so i masked it

Code: Select all

echo =media-libs/libgpod-0.4.2 >> /etc/porgage/package.mask
PS: I'm Spanish so sorry for my English.

Bye!!!!
Top
tmf
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue May 10, 2005 3:47 pm
Location: Warsaw, Poland

  • Quote

Post by tmf » Wed Jan 24, 2007 5:00 pm

nflamel wrote:If you include libgpod-0.4.0 in the overlay it won't be overwrited in next emerge --sync

Include current libgpod ebuild files on the overlay

Code: Select all

mkdir -p /usr/local/portage/media-libs/libgpod
cd /usr/local/portage/media-libs/libgpod
cp -R /usr/portage/media-libs/libgpod/* .
rename libgpod-0.4.0 ebuild to simulate a new version

Code: Select all

mv libgpod-0.4.0.ebuild libgpod-0.4.0-r1.ebuild
Once you've renamed it, modify ebuild as you told in your post and run

Code: Select all

ebuild /usr/local/portage/media-libs/libgpod-0.4.0-r1.ebuild
After if continue as you told in your post :D

Note: I had not tried it with libgpod-0.4.2 so i masked it

Code: Select all

echo =media-libs/libgpod-0.4.2 >> /etc/porgage/package.mask
PS: I'm Spanish so sorry for my English.

Bye!!!!
afaik current version of amarok (1.4.4-r3) wont compile against media-libs/libgpod-0.4.2. libgpod and overlay - thats a nice trick/enhancement. Thank you :D


cheers,
tmf
Top
chrisashton84
Apprentice
Apprentice
User avatar
Posts: 192
Joined: Tue Aug 12, 2003 5:36 am
Location: Peoria, IL (home) Urbana, IL (school)
Contact:
Contact chrisashton84
Website

  • Quote

Post by chrisashton84 » Mon Mar 12, 2007 11:01 am

I'm curious. On the back of my ipod is engraved a model number A1136, but gtkpod lists A1146 as the appropriate number. How important are these numbers? I've filled it in by hand with the number from the back, but if it expects one of a certain list, perhaps I should choose the slightly incorrect number.
Top
yanos
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Thu Sep 11, 2003 1:14 am
Location: montreal, canada

  • Quote

Post by yanos » Fri Jan 18, 2008 1:55 pm

So, is this still the only way to load album artwork into ipods?
Top
timeBandit
Bodhisattva
Bodhisattva
User avatar
Posts: 2719
Joined: Fri Dec 31, 2004 1:54 am
Location: here, there or in transit

  • Quote

Post by timeBandit » Fri Jan 18, 2008 3:47 pm

chrisashton84 wrote:I'm curious. On the back of my ipod is engraved a model number A1136, but gtkpod lists A1146 as the appropriate number. How important are these numbers? I've filled it in by hand with the number from the back, but if it expects one of a certain list, perhaps I should choose the slightly incorrect number.
From what I've read, the model number screened on the case is all but meaningless to gtkpod/libgpod. It cares about the model number you get from the Serial/Model/Version screen at Settings > About, minus a few extraneous characters.

For example, the model number on my case is A1238, but the real model number from the firmware is MB147LL. The correct match in gtkpod is xB147 (Classic > 80GB Classic Black).

Edit: for i in $(seq 1 100); do echo "I will check post dates before responding."; done :evil::x
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Top
yanos
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Thu Sep 11, 2003 1:14 am
Location: montreal, canada

  • Quote

Post by yanos » Sun Jan 20, 2008 11:10 pm

I found out that you don't need to do any of this, using libgpod 0.6. Just make sure you compile it with the gtk use flag.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic