Page 1 of 1

Script for .MKV to .AVI and export to different drive

Posted: July 8th, 2012, 6:53 am
by emosbek
Hello, I'm new to this forum and new to SAB, Bashscript ect. so i'm seeking some help.

What i want to accomplish is a Post-processing script that converts .MKV to .AVI then exports the converted file to a different drive/share. All automated without need for me to accept stuff.

I use XBMC for .MKV but because of the size the tablet that i want to convert files for can only hold 2 .MKV movies.
Basically i want to copies for the same movie. One that i is .MKV (20-40 GB) and a .AVI (~6GBish)

Can this be done?

I'm more than willing to donate for the time if anyone want/have the time to help me out.

Regards Evan

Re: Script for .MKV to .AVI and export to different drive

Posted: July 8th, 2012, 7:13 am
by emosbek
I stumbled over this http://xenonmkv.ev98.net/forum/viewtopic.php?f=2&t=1870 but i have a hard time knowing if this is correct or where to begin :-[

In the code from post two it says
This Batch File Makes It Easy To Convert All .MKV Files In The Given Directory To .AVI Files
so i guess its a manual script. Please, correct me if am wrong.

Re: Script for .MKV to .AVI and export to different drive

Posted: July 10th, 2012, 2:00 am
by emosbek
no one? :(

Re: Script for .MKV to .AVI and export to different drive

Posted: July 13th, 2012, 8:49 am
by NoTolerance
So you basically want MKV files converted/downsampled into XviD?

Will you running this on Windows or Linux?

Re: Script for .MKV to .AVI and export to different drive

Posted: July 13th, 2012, 10:32 am
by Mattoligy
How about in Unix(iPad) and instead of mkv to avi, mkv to mp4 (just changing container)?

Re: Script for .MKV to .AVI and export to different drive

Posted: July 14th, 2012, 7:02 pm
by emosbek
NoTolerance wrote:So you basically want MKV files converted/downsampled into XviD?

Will you running this on Windows or Linux?
SAB is running on windows

Mattoligy wrote:How about in Unix(iPad) and instead of mkv to avi, mkv to mp4 (just changing container)?
Sure! me goal is to run it on an BlackBerry Playbook, and/or PMS (Playstation Media Server) and i do believe mp4 is supported :)

Re: Script for .MKV to .AVI and export to different drive

Posted: July 20th, 2012, 4:25 pm
by keyosk
On windows :

Grab XenonMkv : http://xenonmkv.ev98.net/download

Setup post processing batch file :

Code: Select all

@ECHO OFF
SET XenonMKV=C:\XenonMKV\XenonMKV.exe
SET INPUT_PATH=%1\
SET MOVE_PATH=C:\transcoded_movies\
IF EXIST %INPUT_PATH%*sample*.mkv DEL /Q %INPUT_PATH%*sample*.mkv
IF EXIST %INPUT_PATH%*.mkv %XenonMKV% -inputfolder %INPUT_PATH% -outputfolder %INPUT_PATH%
IF EXIST %INPUT_PATH%temp RMDIR /S /Q %INPUT_PATH%temp
IF EXIST %INPUT_PATH%*.mp4 MOVE /Y %INPUT_PATH%*.avi %MOVE_PATH%
ECHO Completed Transcoding
You will need to setup the XenonMKV and MOVE_PATH variables to be accurate for your system configuration.

If you configured XenonMKV to rename files to .avi, you will need to change the line :

Code: Select all

IF EXIST %INPUT_PATH%*.mp4 MOVE /Y %INPUT_PATH%*.avi %MOVE_PATH%
To :

Code: Select all

IF EXIST %INPUT_PATH%*.avi MOVE /Y %INPUT_PATH%*.avi %MOVE_PATH%%

Re: Script for .MKV to .AVI and export to different drive

Posted: October 27th, 2012, 7:39 pm
by Ozymandiz
Hi

I am looking for exactly this script to convert MTV files for playback on my Xbox 360. However I have Sabnzbd set up on Ubuntu desktop OS.

Please can someone suggest what changes I would need to make to this script so that it works on Ubuntu ? The idea is that files received from sick beard and couchpotato would be converted if they arrive as .mkv.

Any help would be very appreciated as I am a bit out of my depth in creating scripts..

Thanks