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

Come up with a useful post-processing script? Share it here!
Post Reply
emosbek
Newbie
Newbie
Posts: 7
Joined: July 7th, 2012, 4:26 pm

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

Post 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
emosbek
Newbie
Newbie
Posts: 7
Joined: July 7th, 2012, 4:26 pm

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

Post 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.
emosbek
Newbie
Newbie
Posts: 7
Joined: July 7th, 2012, 4:26 pm

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

Post by emosbek »

no one? :(
NoTolerance
Full Member
Full Member
Posts: 127
Joined: June 27th, 2012, 9:55 am

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

Post by NoTolerance »

So you basically want MKV files converted/downsampled into XviD?

Will you running this on Windows or Linux?
Mattoligy
Newbie
Newbie
Posts: 21
Joined: July 11th, 2012, 2:58 pm

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

Post by Mattoligy »

How about in Unix(iPad) and instead of mkv to avi, mkv to mp4 (just changing container)?
emosbek
Newbie
Newbie
Posts: 7
Joined: July 7th, 2012, 4:26 pm

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

Post 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 :)
keyosk
Newbie
Newbie
Posts: 2
Joined: July 20th, 2012, 4:20 pm

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

Post 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%%
Ozymandiz
Newbie
Newbie
Posts: 1
Joined: October 27th, 2012, 7:33 pm

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

Post 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
Post Reply