-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 834f4f5
Showing
3 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff: | ||
.idea/ | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/dictionaries | ||
ffmpeg.iml | ||
|
||
# Sensitive or high-churn files: | ||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.xml | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/uiDesigner.xml | ||
|
||
# Gradle: | ||
.idea/**/gradle.xml | ||
.idea/**/libraries | ||
|
||
# CMake | ||
cmake-build-debug/ | ||
cmake-build-release/ | ||
|
||
# Mongo Explorer plugin: | ||
.idea/**/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Introduction | ||
This is a python script used to loop through all aax files in a given directory and | ||
complete the backup/conversion process to mp4. | ||
|
||
This has only been tested in Windows 10, Python 3.6 and ffmpeg-20180127-a026a3e-win64-static | ||
|
||
# Anti-Piracy Notice | ||
Please only use this script for gaining access to content you are licensed to use for archiving/converson/convenience. | ||
DeDRMed content should not be uploaded to open servers, torrents, or other methods of mass distribution. | ||
No help will be given to people doing such things. Authors, retailers, and publishers all need to make a living, | ||
so that they can continue to produce content for us to enjoy. | ||
|
||
Don’t be a parasite. | ||
|
||
This blurb is borrowed from the https://apprenticealf.wordpress.com/ page. | ||
|
||
## Step 1 | ||
Follow the steps outlined at https://github.com/kholia/inAudible | ||
|
||
## Step 2 | ||
Run the program using the following syntax | ||
|
||
python convert.py [activation bytes] [directory with aax files] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/python | ||
|
||
import os | ||
import sys | ||
|
||
|
||
def main(): | ||
""" prompt the user for the directory """ | ||
|
||
if len(sys.argv) < 3: | ||
print("Usage %s [activation bytes] [workingpath]" % sys.argv[0]) | ||
print("For more information see https://github.com/kholia/inAudible") | ||
exit() | ||
|
||
activationbytes = sys.argv[1] | ||
workingdirectory = sys.argv[2] | ||
workingfile = "" | ||
commandtoexecute = "" | ||
""" search for all AAX in the directory """ | ||
|
||
for file in os.listdir(workingdirectory): | ||
if file.endswith(".aax"): | ||
""" split out the names at the first underscore """ | ||
workingfile = file.split("_")[0] | ||
""" create the output file name """ | ||
commandtoexecute = "ffmpeg -activation_bytes %s -i %s%s -vn -c:a copy %s%s.mp4" % (activationbytes, | ||
workingdirectory, | ||
file, | ||
workingdirectory, | ||
workingfile) | ||
""" call out to ffmpeg on the command line """ | ||
os.system(commandtoexecute) | ||
|
||
|
||
main() |