
- #Convert itunes movies to mkv windows movie#
- #Convert itunes movies to mkv windows install#
- #Convert itunes movies to mkv windows update#
- #Convert itunes movies to mkv windows mods#
Here as requested some more detail on my workflow:Īnd For iTunes artwork (itunes square images):ġ. I don't believe in re-inventing the wheel and would be grateful for a tool that does it the way I want. I am still open to a tool that can do the job though. None I found could do it the way I wanted it done though. I spent a fair amount of time looking at different options for doing this with already available tools. It also enables me - or anyone that uses it - to adjust it to suit your own scenario. The script enabled me to get something functional up and running quickly. I was going to write an app to do all this - and may still do that (just no time at the mo).

No iTunes integration which I will be adding to the script. A script can be automated within windows so simple.ģ. It also leaves the original in the source location which messes with my servers as they show duplicates on my players.Ģ. No backup of my files - I only want to delete them once I am happy the conversion was 100%. $BackupFile = $SourceFile.Replace($MoviesFolder, $MoviesBackupFolder)ġ. New-Item -ItemType File -Path $BackupFile -Force $BackupFile = $SourceFile.Replace($TVShowsFolder, $TVShowsBackupFolder) & $HandBrakeCLI -i $SourceFile -o $TargetFile -preset=$HandBrakePreset $TargetFile = ::GetDirectoryName($SourceFile) + "\" + ::GetFileNameWithoutExtension($SourceFile) + ".m4v" $Prox = Get-WmiObject Win32_Process -Filter "Name like '%powershell%'" | select-Object CommandLine | where | sort $HandBrakeCLI = "C:\Program Files\Handbrake\HandBrakeCLI.exe" $MoviesBackupFolder = "E:\Backups\Media\Movies\" $TVShowsBackupFolder = "E:\Backups\Media\TV Shows\" # If you get execution errors running a Powershell Script, start Powershell as Admin and execute the following "Set-ExecutionPolicy RemoteSigned"
#Convert itunes movies to mkv windows update#
I will update the second post if your changes are worthy Any new content will then be converted and backed up.Įnjoy! And if you have any better ways to do this, feel free to comment. Automate it to run at specified intervals.

So depending on the size of your collection, expect it to take some time.ġ. On my Quad Core 3.2Ghz Xeon server, it converts around 1GB per 15 to 20 minutes depending on the codecs uses in the source file. You can delete files from your backup location once you feel satisfied that Handbrake did it's job correctly. Ensure you have sufficient write permissions in your backup location. Once completed, it will move the original source file to your backup location. The converted file is stored in the same location as the original source file. This script will find all *.mkv,*.avi,*.mpeg,*.mpg files in collection and convert them to m4v. I had to open Handbrake and instantly it updated it's preset list.
#Convert itunes movies to mkv windows install#
On initial install of Handbrake the script failed as it could not find this preset. I chose AppleTV 3 as it is the most current. $HandbrakePreset: This is the preset to use. $HandbrakeCLI: This is the app used to do the actual work.
#Convert itunes movies to mkv windows movie#
$MoviesBackupFolder: Once a Movie is converted, the original file will be moved to this folder retaining the folder layout. $TVShowsBackupFolder: Once a TV Show is converted, the original file will be moved to this folder retaining the folder layout. $MoviesFolder: This is the root folder for your Movies.

$TVShowsFolder: This is the root folder for your TV Shows Usage: Set the first 6 variables with you root paths Run Powershell as Administrator and execute the following: Set-ExecutionPolicy RemoteSigned If you have an issue running this script it is more than likely permission related.
#Convert itunes movies to mkv windows mods#
If you make any handy mods to the script please post it here and I will update the first post with it. The second post contains the script and the post will be updated as the script is updated. The script was only written yesterday and still in it's early stages. For this I use Handbrake with a PowerShell script. I decided to convert my collection to m4v for native compatibility with XBox and ATV.
