LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Closed Thread
 
Search this Thread
Old 11-19-2004, 12:00 PM   #1
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,485

Rep: Reputation: 66
Itunes music


Does anyone know of a codec that is availible for Mplayer that can play itunes music that has been downloaded using there service. When i try an play something gives me an error.


Code:
Cannot find codec for audio format 0x736D7264
I have downloaded and compiled Mplayer with the codecs for Quicktime and it does detect this as a quicktime file but will not play it with the error above.


Any help is apreciated.


By the way the only reason im trying to do this is because the songs were backed up from a windows computer that was running this service and now that linux is the primary os they can no longer play the files.
 
Old 11-19-2004, 12:10 PM   #2
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
I converted a bunch of iTunes formatted music for my girlfriend a few weeks ago into Ogg Vorbis, here is the script i wrote to do this:

anonobomber@zyklon:/home/manda$ cat m4a2ogg.sh
Code:
#!/bin/bash
#
# Converts m4a files to wav then to ogg vorbis with quality setting 4

for i in *.m4a
do
mplayer -ao pcm "$i" -aofile "$i.wav"
done

for i in *.wav
do
oggenc -q 4 "$i"
done

for i in *.ogg
do
x=`echo "$i"|sed -e 's/m4a.ogg/ogg/'`
mv "$i" "$x"
done
rm *.wav
rm *.m4a
Copy all that into a file called m4a2ogg.sh and do a 'chmod +x m4a2ogg.sh' to make it executable then copy it into /usr/bin/ if you like so you can cd into the directory containing the .m4a file and run 'm4a2ogg.sh' which will convert all that music into .wav format, then into ogg vorbis.
 
Old 11-19-2004, 12:15 PM   #3
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
oh yea, the codec it uses to decode this is faad, this is what mplayer outputs when opening such a file

Code:
Cache fill:  0.00% (0 bytes)    ISO: File Type Major Brand: Apple iTunes AAC-LC Audio
QuickTime/MOV file format detected.
--------------
MOV track #0: 627 chunks, 13147 samples
Audio bits: 16  chans: 2  rate: 44100
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (51)!
Fourcc: mp4a
--------------
MOV: longest streams: A: #0 (13147 samples)  V: #-1 (0 samples)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128.0 kbit)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
PCM: File: words.wav (WAVE)
PCM: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
PCM: Info: fastest dumping is achieved with -vc dummy -vo null
PCM: Info: to write WAVE files use -waveheader (default); for RAW PCM -nowaveheader.
I hope this is of assistance to you.
 
Old 11-19-2004, 12:17 PM   #4
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,485

Original Poster
Rep: Reputation: 66
Thanks ill try it now. And ill add some information in the comments section to mine giving you credit for the script
 
Old 11-19-2004, 04:11 PM   #5
butler
LQ Newbie
 
Registered: Nov 2004
Posts: 11

Rep: Reputation: 0
Does that de-DRM the files? If not, I don't think it will work.
 
Old 11-19-2004, 04:11 PM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,485

Original Poster
Rep: Reputation: 66
Hmm just catched these are .m4p files not m4a files


Anyone elese wanna take a crack ??
 
Old 12-08-2004, 08:20 AM   #7
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 32
Hi exvor,

try "hymn":

My suggestion:
Grab from the original source. I know this will take some time, but AAC (M4A/M4P) and
OGG are *not* lossless codecs. You know AAC encoding will cut off some information
from the music file and OGG another, so the re-encoding a M4A coded file
into OGG will make it sound worse then the original M4A encoded.
Encoding from the original (usually WAV) into OGG will give you the
best results.

Last edited by Vlad-A; 02-02-2005 at 12:17 AM.
 
Old 12-08-2004, 10:15 AM   #8
Superme
Member
 
Registered: Jul 2004
Location: Smiths Falls Ontario (near ottawa [our capital])
Distribution: slackware 9.1, redhat 9.0, PHLAK, SuSE 9.0Pro windows XP (HEAVILY MODIFIED)
Posts: 111

Rep: Reputation: 15
Itunes music is no different fomr regular mp3s but itunes does add id3 tags to the mp3s or other music formats, and some mp3 players do not support that in itunes just right click on the mp3 and go to CONVERT ID3 TAGS and in the window that comes up set the drop down menu to NONE

hope thats your problem
 
Old 12-08-2004, 11:00 AM   #9
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 32
Well, Convert ID Tags does an conversion of the ID Tags of MP3 Files, coded with older iTunes Versions or other
encoder to the latest ID Tag standard ID-Tag V 2.4 used in iTunes 4.7

This however is only for MP3 files. M4P files, so the ones you can buy through the iTunes Store, are
very different from standard MP3 files. M4P are protected (encrypted) AAC (Advanced Audio Codec) files.
MP3 is actaully MPEG 1- Layer 3
AAC in the iTunes case is the audio layer of MPEG-4, also known as M4A.

M4P is nothing else then an encrypted M4A file (so MPEG4 and *not* MPEG1-Layer 3).
The encryption key is based (Windows case) on the Windows Serial number, computer's ROM serial number
and some other parameters. So if you copy a M4P file to another computer it won't play since
the generated key wil not match the key with which teh M4A files are encrypted.

hymn will decrypt a M4P file into a M4A file permanently, but will leave the embeded id of the
iTunes Store user that bought the M4P song, in order to prevent misuse.

Last edited by Vlad-A; 12-08-2004 at 11:03 AM.
 
Old 12-10-2004, 12:39 PM   #10
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,485

Original Poster
Rep: Reputation: 66
What a bunch of bullshit. Wow this teaches me never to use itunes anymore. And wanna know something else. Even if it is <-- the same pc the <...> wont play. So its distinct to the version of windows. Screwum im just gonna log onto phex and leach the mp3 version.

Last edited by jtshaw; 01-14-2006 at 10:54 PM. Reason: Needs some soap in the mouth
 
Old 12-10-2004, 11:39 PM   #11
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 32
Well,

When converted to M4A with hymm the iTunes Shop Music can be plyed whereever you want.
The music however, you grep via iTunes from CDs or WAVs, is stored
in iTunes in M4A (so unprotected) and can be plyed wherever you want.

Last edited by jtshaw; 01-15-2006 at 10:32 AM.
 
Old 12-27-2004, 08:46 AM   #12
spineboy
LQ Newbie
 
Registered: Sep 2004
Location: Cali
Distribution: Suse 9.1
Posts: 6

Rep: Reputation: 0
M4p file converson for fair use

Using hymm and all those other programs to "De-DRM" your music files is somewhat of a pain I think.

The easiest method is to record your iTunes music on a CD and then just rip it. Viola! DRM free music

It's the Gordian knot solution to all of this.
 
Old 01-06-2005, 01:21 PM   #13
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 32
Well, indeed this can be a way, but you'll loose quality. Once coded with 128 kBit AAC there is some information missing, as part of the compression.
When burning it to CD the missing part is not fully restored. Then you rip from CD and code/compress again and loose additional information.
I do not think that programs like hymn are that complicated to handle.
 
Old 01-15-2005, 09:46 PM   #14
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Rep: Reputation: 30
dual booters out there

<piracy methods removed>

Last edited by jtshaw; 01-15-2006 at 10:31 AM.
 
Old 01-14-2006, 11:01 PM   #15
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
There is no legal way to play iTunes music in Linux short of running iTunes through wine (if that is even possible).

We have a strict policy of not discussing methods of piracy on this site.

As for Exvor's comments... all legitimate music download services implement a DRM scheme. The Apple FAQ's and licenses clearly state that the music will work through iTunes, on iTunes compatible music players (aka iPods), and can be burned to CD. It also very clearly states the number of copies and computers your purchased music can live on.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Organize my music like iTunes? purelithium Linux - Software 1 11-21-2005 12:51 PM
ITunes mtecknology Linux - Software 1 07-21-2005 02:49 PM
Mood Music, the quest for a music library app GuidoS Linux - Software 6 08-18-2004 01:12 PM
itunes server? precision Linux - Software 1 07-12-2004 09:51 AM
Accessing iTunes music sharing in Linux MockieMoo Linux - Software 6 07-12-2004 09:50 AM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration