User(s) browsing this thread: 1 Guest(s)
|
DTS->Stereo AAC Script (Linux)
|
|
11-15-2009, 05:00 PM
(This post was last modified: 11-16-2009 07:28 PM by MukiEX.)
|
|||
|
|||
|
DTS->Stereo AAC Script (Linux)
UPDATE: Made an echo-free version. Once again, USE AT YOUR OWN RISK, but originally with the echos it wasn't completing the last step (tho it would if I separated it from the other two, so who knows what's causing this)
Once again, I'm not entirely sure if this will be terribly helpful to anyone here. I just hacked this together in a few minutes (I don't actually know bash scripting). What it does (which is pretty clear from reading the code) is: 1. Figures out which track is DTS. 2. Extracts it. 3. Converts it to stereo AAC. 4. Inserts it into a duplicate of the original filename with the word "Fixed" in front of it. I'm using it to convert 30 some odd clips that I've left on the backburner for such a conversion (that, and Heartwave over SMB doesn't work for me, sadly) Mind you, it has a few caveats: 1. You'll need mkvmerge, mkvextract (part of the mkvtoolnix for Debian/Ubuntu users) 2. You'll need a pimped-out ffmpeg installation (rarely by default in a distro, you might need to build ffmpeg from scratch if there's no ppa's for this) 3. BIG BIG WARNING: This script doesn't work with movies that have multiple DTS tracks. That requires a lot more scripting on my part 4. BIG BIG WARNING #2: This moves the new AAC track to the FIRST track on the MKV file. While it works on the PCH, YMMV on other players. 5. YET ANOTHER STUPID WARNING: This script doesn't check for files that DON'T have DTS tracks. I just lumped all of my DTS-containing files into one folder before running this script. 6. I'm sorry this script has so many specific rules, I'd drop it in a heartbeat if someone already had/has a better script for Linux systems. Once again, please use this at your own risk, and if someone builds a much better script, please post it, I'll replace the one I have here. And without further ado, the script: Code: #!/bin/bashecho-free version: Code: #!/bin/bashLike most of my hacky crap, it requires piping into sh, because I like to double-check what it's about to do to my files. Also note that I haven't tested on files with quotes in their filenames. Please doublecheck anything it's about to do. Usage: ./mkv4popcorn | sh It's pretty straightforward what this script does, hopefully someone finds it useful. |
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]



![[+]](images/collapse_collapsed.gif)