ffmpegのパスと保存ファイル名は自分でつぎ足す仕様
$ffparam = ""
$inputs = ""
$lists = Get-Clipboard
Write-Output $lists
foreach ($pms in $lists) {
if($pms.Contains("curl")) { $inputs += $pms.Replace("curl","-i") }
if($pms.Contains("user-agent"))
{
$ffparam += $pms.Replace(' -H "user-agent: ','-user_agent "')
continue
}
if($pms.Contains(" -H")) { $ffparam += $pms.Replace(" -H","-headers") }
}
$ffparam += $inputs
$ffparam = $ffparam.Replace("^","")
$ffparam += "-c copy -movflags faststart -bsf:a aac_adtstoasc"
Set-Clipboard $ffparam
ツイートシェア