| View previous topic :: View next topic |
| Author |
Message |
cough syrup
Joined: 03 Jun 2006 Posts: 517
|
Posted: Mon Aug 28, 2006 6:53 pm Post subject: QTFairUse6 Discussion |
|
|
| Well. I'm not gonna lie. It's not working for me. |
|
| Back to top |
|
 |
igorsk
Joined: 28 Aug 2006 Posts: 128
|
Posted: Mon Aug 28, 2006 7:22 pm Post subject: |
|
|
| Well, it would be nice to have some more details besides "it's not working". |
|
| Back to top |
|
 |
iTunesIsEvil Moderator
Joined: 08 Nov 2004 Posts: 999 Location: In Ur Base
|
Posted: Mon Aug 28, 2006 7:31 pm Post subject: |
|
|
Hmm... when I try to run this (I opened/ran it in IDLE) I get the following:
| Code: | Traceback (most recent call last):
File "C:\Documents and Settings\gkaiser\Desktop\QTFairUse6-1.0\QTFairUse6.py", line 16, in ?
from pydbg import *
File "C:\Documents and Settings\gkaiser\Desktop\QTFairUse6-1.0\pydbg\__init__.py", line 40, in ?
from defines import *
File "C:\Documents and Settings\gkaiser\Desktop\QTFairUse6-1.0\pydbg\defines.py", line 34, in ?
from my_ctypes import *
File "C:\Documents and Settings\gkaiser\Desktop\QTFairUse6-1.0\pydbg\my_ctypes.py", line 29, in ?
from ctypes import *
File "C:\Documents and Settings\gkaiser\Desktop\QTFairUse6-1.0\ctypes\__init__.py", line 16, in ?
from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes |
So I thought to myself "Hmm, maybe I should move pydbg and cytpes to the Lib folder, so I copied both to "WhereIInstalledPython\Lib\", restarted IDLE, and tried running the app again and it failed with the same message. Both of the directories (ctypes,pydbg) are now in the "Path Browser" so I would think they're being included, but I must be screwing something up.
If you know what I'm doing wrong, feel free to let me know. I'm a total Python newb.  _________________ "Hooray! I'm Helping!" - Dr. Zoidberg while being held Hostage. |
|
| Back to top |
|
 |
igorsk
Joined: 28 Aug 2006 Posts: 128
|
Posted: Mon Aug 28, 2006 7:37 pm Post subject: |
|
|
| Ah, this is a much better report. Looks like I forgot to put one file. Please redownload the zip from the first post. |
|
| Back to top |
|
 |
iTunesIsEvil Moderator
Joined: 08 Nov 2004 Posts: 999 Location: In Ur Base
|
Posted: Mon Aug 28, 2006 7:49 pm Post subject: |
|
|
Looks like it's working now. This is pretty damn neat man! Very nice job.
So explain this to me: is this really AAC audio you're grabbing right out of memory? It's not being really decompressed or anything & we're not getting wav audio right? _________________ "Hooray! I'm Helping!" - Dr. Zoidberg while being held Hostage. |
|
| Back to top |
|
 |
igorsk
Joined: 28 Aug 2006 Posts: 128
|
Posted: Mon Aug 28, 2006 8:10 pm Post subject: |
|
|
| Yep, it works in the same way as the original QTFairUse - intercepts AAC frames after they're decrypted but before they're decoded. And you can compare the file sizes - dumped streams are a few hundred K less than the encrypted m4ps, since the latter include artwork and other metadata. |
|
| Back to top |
|
 |
ejonesss
Joined: 16 Oct 2005 Posts: 743 Location: usa
|
Posted: Mon Aug 28, 2006 9:38 pm Post subject: |
|
|
correct me if i am wrong but it looks like this is one step closer to being to get hymn working for itunes 6  |
|
| Back to top |
|
 |
iTunesIsEvil Moderator
Joined: 08 Nov 2004 Posts: 999 Location: In Ur Base
|
Posted: Mon Aug 28, 2006 10:19 pm Post subject: |
|
|
| ejonesss wrote: | correct me if i am wrong but it looks like this is one step closer to being to get hymn working for itunes 6  |
Well, this is a real-time solution as far as I can see. _________________ "Hooray! I'm Helping!" - Dr. Zoidberg while being held Hostage.
Last edited by iTunesIsEvil on Thu Aug 31, 2006 12:56 am; edited 1 time in total |
|
| Back to top |
|
 |
cough syrup
Joined: 03 Jun 2006 Posts: 517
|
Posted: Mon Aug 28, 2006 10:47 pm Post subject: |
|
|
Sorry that I didn't post more. I just had time to make sure this wasn't gonna crash my computer, and to then say it didn't work before I had to run for soccer.
But I have a thought. Could we snag the songs ID3 tags or add a prompt to encode the info?
PS. Is this windows only? |
|
| Back to top |
|
 |
DrmBytes Moderator
Joined: 16 May 2004 Posts: 2999
|
Posted: Mon Aug 28, 2006 11:00 pm Post subject: |
|
|
| Highly impressive. Credit where credit is due. This is very nice. Thanks for posting this! Now if only TuneBite could implement this combined with their tag capturing stuff we'd have a really great solution. |
|
| Back to top |
|
 |
iTunesIsEvil Moderator
Joined: 08 Nov 2004 Posts: 999 Location: In Ur Base
|
Posted: Mon Aug 28, 2006 11:02 pm Post subject: |
|
|
| cough syrup wrote: | | But I have a thought. Could we snag the songs ID3 tags or add a prompt to encode the info? |
Probably could, but that'd be a lot of extra stuff to do. There may be a python library for reading tags from AAC audio.
[edit] Here's a little python script that kinda,sorta does what I was thinking.
| cough syrup wrote: | | PS. Is this windows only? |
This should work on any environment that python and iTunes will run in (Windows & OS X). Should being the keyword there. But I don't see anything right off the bat in the code that would stop us from using this on OS X. _________________ "Hooray! I'm Helping!" - Dr. Zoidberg while being held Hostage. |
|
| Back to top |
|
 |
igorsk
Joined: 28 Aug 2006 Posts: 128
|
Posted: Mon Aug 28, 2006 11:20 pm Post subject: |
|
|
| iTunesIsEvil wrote: | .
Here's a little python script that kinda,sorta does what I was thinking.
|
Thanks for the code! I will see if I can do something with it.
And yes, this script works on Windows only. To make it work on Mac one would need 1) port pydbg or find a similar package 2) reverse iTunes to find the routines which handle AAC data after decryption. |
|
| Back to top |
|
 |
cough syrup
Joined: 03 Jun 2006 Posts: 517
|
Posted: Mon Aug 28, 2006 11:58 pm Post subject: |
|
|
| iTunesIsEvil wrote: | This should work on any environment that python and iTunes will run in (Windows & OS X). Should being the keyword there. But I don't see anything right off the bat in the code that would stop us from using this on OS X. |
That's what I was thinking. It's python so yeah. It should work for me. But I looked inside som of the resource files. It made references to windows system files.
pydbg/windows_h.py
As well as the file pydbg.defines cant be read. I get this
| Quote: | | from: can't read /var/mail/pydbg.defines |
And I can't find that file anywhere.
I also get these 3 lines of error. Right after it says it can't read the file.
| Quote: | ~/Desktop/QTFairUse6-1.0 Folder/QTFairUse6.py: line 19: import: command not found
~/Desktop/QTFairUse6-1.0 Folder/QTFairUse6.py: line 21: syntax error near unexpected token `('
~/Desktop/QTFairUse6-1.0 Folder/QTFairUse6.py: line 21: `error = lambda msg: sys.stderr.write("ERROR> " + msg + "\n") or sys.exit(1)' |
Then it quits. |
|
| Back to top |
|
 |
ejonesss
Joined: 16 Oct 2005 Posts: 743 Location: usa
|
|
| Back to top |
|
 |
totom
Joined: 29 Aug 2006 Posts: 2
|
Posted: Tue Aug 29, 2006 10:41 am Post subject: |
|
|
| cough syrup wrote: | As well as the file pydbg.defines cant be read. I get this
| Quote: | | from: can't read /var/mail/pydbg.defines |
And I can't find that file anywhere.
|
You have to use "python QTFairUse6.py" instead of "./QTFairUser6.py" since the script lacks a shebang line.
That said, even with "python QTFairUse6.py" and redownloading the file, I still get the "ImportError: No module named _ctypes" error (on OS X). |
|
| Back to top |
|
 |
|