Jump to content

Batch Create 2 Channel AAC for MKVs for Roku DIrect Play


ginjaninja

Recommended Posts

ginjaninja

https://dl.dropboxusercontent.com/u/84611964/KBRoku/Convert.rar

 

I created this windows batch script to ensure my mkvs were roku direct play compatible to support .BIF thumbnails*

let me know if you use it, have any trouble...

it uses publicly available neroaccencoder, ffmpeg, mkvmerge

it uses shell:sendto to send individual mkvs or whole folder structures (it should also work as a script on the desktop to drag objects to, but would need amending if run direct from a command line)

 

The server seems happy to recognise files the script has changed and register the additional audio track

The thumbnail plugin seems happy to identify dual audio track files ok. My plugin is configured for stereo and bifs are created for files going through this script

 

note this script improves on my previous "remove compression from mkv" script by keeping the focus to the file or folder "sent"  and not jumping up a directory level (by checking for whether the target object is a folder or not, and if not just working on the specific file)

 

 

 

 

Screenshot%202015-02-25%2020.13.39.png

 

further sophistication may well be required eg.

To test for acc present already (this would make it alot safer and rerunable on the same target..ie stop processing if mkv already has aac...ideas welcome)

To ensure the roku uses the 1st audio track by default and wether the structure of the file could be improved to ensure direct play on roku is more automated whilst dts playback on HTPC is also automated.

Edited by ginjaninja
  • Like 1
Link to comment
Share on other sites

ginjaninja

I have updated the batch file to use mediainfo to check for AAC track.

So you will also need a mediainfo cli

note the check is very crude, any aac track of any specification will cause the script to ignore the file. if you have aac tracks which are not directplay compatable, the script wont help in its current form..the checking  for acc track logic would need to be uprated.

 

I have added a logonly option, so you can see what files would have aac tracks created for them..as always read the script and configure to your requirements...

 

edit..rewritten dues to loads of mistakes, handles paths/filenames with special characters..

Edited by ginjaninja
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...