Page 1 of 1

Possible to use convert MKV to XviD?

Posted: March 18th, 2009, 2:52 pm
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.

Re: Possible to use convert MKV to XviD?

Posted: March 20th, 2009, 9:19 am
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

Re: Possible to use convert MKV to XviD?

Posted: March 24th, 2009, 7:42 am
by Stitch
cool, thanks for the pointers, I will dust off my scripting head.

Re: Possible to use convert MKV to XviD?

Posted: March 24th, 2009, 9:30 am
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