kdaph.blogg.se

Powershell script ffmpeg mp4 to avi scale
Powershell script ffmpeg mp4 to avi scale







powershell script ffmpeg mp4 to avi scale

$filelist = Get-ChildItem D:\Video\ -filter *.wmv -recurse

powershell script ffmpeg mp4 to avi scale

You will want to adjust the HandBrakeCLI arguments to encode your video with the quality and settings you desire, these are pretty aggressive and mostly to save space while re-encoding video created with screen capture software. It will just place the new converted file in the same folder as the current one. It also does a nice clean header and tracks progress so you can estimate how long it might have to go. So opened up notepad and got to work writing some code to query the file system for all the WMV in a specific folder and any sub folders and then queue them up to pass into HandbrakeCLI. After playing around with Handbrake a bit I knew it was the tool for the job, however it will not recursively add folders to its encoding queue and with several hundred videos nested a few layers deep I wasn’t about to add all of them by hand. I recently downloaded a large amount of training video from the good old interweb, but they were all in the awful WMV format.









Powershell script ffmpeg mp4 to avi scale