This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Binary incompatibility: transKode on 64-bit Linux (RESOLVED)

Tags: None
(comma "," separated)
BenjiF
Registered Member
Posts
2
Karma
0
Greetings fellow Amarok enthusiasts!  I have both a gripe and a question.

Before trying to cook up a set of transcoding shell scripts for putting music from my .ogg library onto my new iPod, I decided to spend some time checking around online, and I saw mention of Amarok's ability to automatically transcode files before transferring them to a media device.  I fired up Amarok, and explored a bit, quickly finding the grayed-out "Transcode before transferring to device" option in Amarok's "Configure Media Device" dialog.  The tooltip for this option says "For this feature, a script of type "Transcode" has to be running".  I immediately proceeded to "Tools->Script Manager->Get More Scripts".  None of the scripts listed a "type", but the one called "transKode" seemed to be the only one that fit the bill.

When I installed transKode, I was given a nasty surprise: it isn't actually a "script" at all - it's a 32-bit binary with no source code!  :eek:  Attempting to run it on my (64-bit) machine produces this result:

Code: Select all
The script 'transKode' exited with error code: 127
Details:
/local/benji/.kde3.5/share/apps/amarok/scripts/transkode/transkode: error while loading shared libraries: libtag.so.1: wrong ELF class: ELFCLASS64


Running 'file ./transkode' produces:

Code: Select all
./transkode: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped


Running ldd on it produces the following output:

Code: Select all
        linux-gate.so.1 =>  (0xffffe000)
        libtag.so.1 => not found
        libkio.so.4 => not found
        libkdeui.so.4 => not found
        libkdesu.so.4 => not found
        libkwalletclient.so.1 => not found
        libkdecore.so.4 => not found
        libDCOP.so.4 => not found
        libdl.so.2 => /lib32/libdl.so.2 (0x5559a000)
        libresolv.so.2 => /lib32/libresolv.so.2 (0x5559e000)
        libutil.so.1 => /lib32/libutil.so.1 (0x555b1000)
        libkdefx.so.4 => not found
        libqt-mt.so.3 => not found
        libXext.so.6 => /emul/linux/x86/usr/lib/libXext.so.6 (0x555b5000)
        libX11.so.6 => /emul/linux/x86/usr/lib/libX11.so.6 (0x555c3000)
        libSM.so.6 => /emul/linux/x86/usr/lib/libSM.so.6 (0x556b3000)
        libICE.so.6 => /emul/linux/x86/usr/lib/libICE.so.6 (0x556bc000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0x556d4000)
        libXrender.so.1 => /emul/linux/x86/usr/lib/libXrender.so.1 (0x556e8000)
        libz.so.1 => /emul/linux/x86/lib/libz.so.1 (0x556f1000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/32/libstdc++.so.6 (0x55702000)
        libm.so.6 => /lib32/libm.so.6 (0x557d1000)
        libgcc_s.so.1 => /lib32/libgcc_s.so.1 (0x557f5000)
        libc.so.6 => /lib32/libc.so.6 (0x557fe000)
        /lib/ld-linux.so.2 (0x55555000)
        libXau.so.6 => /emul/linux/x86/usr/lib/libXau.so.6 (0x5591b000)
        libXdmcp.so.6 => /emul/linux/x86/usr/lib/libXdmcp.so.6 (0x5591e000)


The README says that transKode is released under the GPL, but the source code was not provided, nor was any information on how to get a non-binary version.  :confused:  This strikes me as a license violation, or at least a violation of the open-source spirit of Amarok.

My primary question is: What options (if any) do I have for getting automatic transcoding to work on a 64-bit machine right now (short of personally writing a proper script - in an actual scripting language - from scratch)?

Thanks in advance.  :smilie:

|)
|)enji

Last edited by BenjiF on Sun Oct 22, 2006 5:30 am, edited 1 time in total.
Hydrogen
Registered Member
Posts
95
Karma
0
1) the source is availible in kde's svn
2) We don't release transKode
3) compile it.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0
You could check the script's homepage... which you have found anyway by looking in the help>about page for that script anyway, right? ;)

http://www.kde-apps.org/content/show.php?content=27512

The source is available there, as well as feedback from the author.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
BenjiF
Registered Member
Posts
2
Karma
0
dangle_wtf wrote:You could check the script's homepage...


Thanks for the link - that's precisely what I was looking for.  :)

which you have found anyway by looking in the help>about page for that script anyway, right? ;)


In my defense, I did look at the Tools->Script Manager->transKode->About page.  I also made a manual examination of every file in '~/.kde/share/apps/scripts'.  I did not (and still do not) see any such link there.  Here's what I get for the About text:

transKode v0.5
About:
Adds a menu entry, 'transKode', to the playlist popup menu which allows reencoding of selected tracks using predefined profiles (use the 'configure' option to add, remove or edit them).
Supported input formats:
wav
mp3 (needs lame, mplayer or gst-launch)
mpc (needs mppdec or gst-launch)
ogg (needs oggdec, mplayer or gst-launch)
flac (needs flac, mplayer or gst-launch)
wv (needs wvunpack or gst-launch)
tta (needs ttaenc or gst-launch)
ape/mac (needs mac or gst-launch)
m4a/mp4 (needs faad, mplayer or gst-launch)
spx (needs speexdec or gst-launch)
...plus any other audio formats decodable by mplayer/gst-launch (needs gst-launch with spider plugin)
Supported output formats:
wav
mp3 (needs lame)
mpc (needs mppenc)
ogg (needs oggenc)
flac (needs flac)
ape/mac (needs mac)
wv (needs wavpack)
tta (needs ttaenc)
m4a/mp4 (needs faac)
spx (needs speexenc)
...plus output formats for which you have gstreamer encoding plugins (needs gst-launch with wavparse plugin)
Required dependencies:
amaroK >= 1.3 (http://amarok.kde.org/)
TagLib >= 1.4 (http://developer.kde.org/~wheeler/taglib.html)
Optional dependencies:
FAAC/FAAD (http://sourceforge.net/projects/faac/)
FLAC (http://flac.sourceforge.net)
GStreamer (http://gstreamer.freedesktop.org/)
LAME (http://lame.sourceforge.net)
Monkey's Audio Port (http://sourceforge.net/projects/mac-port/)
MPlayer (http://www.mplayerhq.hu)
Musepack (http://musepack.net)
OGG Vorbis (http://www.vorbis.com)
Speex (http://www.speex.org/)
Streamripper (http://streamripper.sourceforge.net/)
True Audio (http://www.true-audio.com)
WavPack (http://www.wavpack.com/)
Note that you don't need all of this programs to use the script, (specifically, you may omit most of the listed decoders if you have an installed mplayer or gstreamer capable of decoding those formats).
Credits:
Based on AUDIO FORMAT CONVERTER v.6 by Michael Mitton
(http://www.kde-apps.org/content/show.php?content=23653)
Author:
Sergio Pistone (sergio_pistone@yahoo.com.ar)
Released under the GNU GPL


However, the link you gave is, of course, the first result in response to a Google query for 'transkode'.  :redface:  Sometimes the obvious solution is the easiest to overlook.  ;)

Thanks for the help!  :smilie:

|)
|)enji
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0
Hm, you're right - I was sure I'd seen URLs to scripts there.

[me=dangle_wtf]wanders off to consider making a wish report.[/me]

Glad to help.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
shayh
Registered Member
Posts
1
Karma
0
i recompiled transKode on my fedora core 6 64bit had to change the code a little
here is the outcome:
extract uzing 7zip:
7z e transkode.7z.jpg
then just replace the one in /home/[user name]/.kde/share/apps/amarok/scripts/transkode/ with it

good luck  :biggrin:

Last edited by shayh on Thu Jan 25, 2007 10:17 am, edited 1 time in total.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]