Skip to content

Instantly share code, notes, and snippets.

@yanoshi
Created May 21, 2015 18:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanoshi/e351e4ed695bb3218396 to your computer and use it in GitHub Desktop.
Save yanoshi/e351e4ed695bb3218396 to your computer and use it in GitHub Desktop.
AutoConvert + A's Video Converter で AMD VCEを行うためのスクリプト群(encoder.ps1)
Param(
[string]$output_fullpath
)
$input_fullpath = [System.IO.Path]::ChangeExtension($output_fullpath, ".avs")
$input_filename = Split-Path $input_fullpath -Leaf
$output_path = Split-Path $output_fullpath -Parent
Start-Process -FilePath "C:\Program Files (x86)\A's Video Converter\AsVideoConv.exe" -ArgumentList "/p" , "main" , "/o$output_path" , "/i$input_fullpath" , "/c4" , "/m" -Wait
$temp_filename = [System.IO.Path]::ChangeExtension($input_filename, ".mp4")
$temp_fullpath = Join-Path $output_path $temp_filename
mv -LiteralPath $temp_fullpath $output_fullpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment