Possible to use convert MKV to XviD?

Come up with a useful post-processing script? Share it here!
Post Reply
User avatar
Stitch
Newbie
Newbie
Posts: 15
Joined: March 18th, 2009, 6:17 am

Possible to use convert MKV to XviD?

Post by Stitch »

Hello folks, I'm fairly new to this so please bear with me if what I'm asking sounds dumb.

I use an Xbox (1) with XBMC on it to play files to my TV, and using Foechoer's rss feed I am downloading nice MKVs, which sadly the xbox cannot play. It can however play 720p XviD files...

What I'm wondering is if it is possible to somehow get Handbrake to fire up on complete MKV files and convert them to XviDs of similar filesize?

This is on OS X.
vdown
Release Testers
Release Testers
Posts: 38
Joined: January 30th, 2008, 8:01 am

Re: Possible to use convert MKV to XviD?

Post by vdown »

I used to do this with Windows and Mencoder.

If you get the correct command line setting for Handbrake

Basically switch to the extracted folder then run the Handbrake command line and clean up at the end.

This is my old Windows script, Im sure something similar would work in OSX. You could also look at OSX folder actions to fire Handbrake.

Code: Select all

cd /d %1
for /F %%a in ('dir /b *.mkv') do set FileName=%%~na
mencoder %FileName%.mkv -aid 0 -o %FileName%.RECODE.avi -ovc lavc -oac lavc -lavcopts acodec=ac3:abitrate=384:vcodec=mpeg4:vbitrate=2048:vpass=1 -ffourcc xvid -vf scale=960:540
del %FileName%.mkv /q
del %FileName%.nfo /q
del *.sfv /q
del *.log /q
del *.nzb /q
User avatar
Stitch
Newbie
Newbie
Posts: 15
Joined: March 18th, 2009, 6:17 am

Re: Possible to use convert MKV to XviD?

Post by Stitch »

cool, thanks for the pointers, I will dust off my scripting head.
BrandonG777
Jr. Member
Jr. Member
Posts: 79
Joined: February 9th, 2009, 5:21 pm
Location: Tulsa, OK

Re: Possible to use convert MKV to XviD?

Post by BrandonG777 »

Handbrake does a pretty good job encoding. I'm pretty sure it'll do MKV. I use it to convert ISO and VIDEO_TS folders to DivX and H.264
Post Reply