運動攝影機錄影擋預設流量 (bitrate) 很高,但其實我覺得看不太出來高低流量畫質的差異
所以根據網路查的一些建議用 ffmpeg 批次處理降低流量
先用 ffprobe.exe 取得影片屬性,再根據影片屬性進行處理
以下 Powershell 中,VideoRotation 是影片方向的資訊,在降低流量的處理中實際上不需要
這裡只是當作筆記用,未來有需要的時候才找得到 (找很久才找到這個語法)
#設定要降低的 bitrate 值 Start
$ProcessMethod = @();
$ProcessMethod += New-Object -TypeName PSObject -Property @{
Width = 2688;
FrameRate = 30;
BitRate = 16;
};
$ProcessMethod += New-Object -TypeName PSObject -Property @{
Width = 2688;
FrameRate = 60;
BitRate = 24;
};
$ProcessMethod += New-Object -TypeName PSObject -Property @{
Width = 3840;
FrameRate = 30;
BitRate = 45;
};
$ProcessMethod += New-Object -TypeName PSObject -Property @{
Width = 3840;
FrameRate = 60;
BitRate = 55;
};
$ProcessMethod += New-Object -TypeName PSObject -Property @{
Width = 3840;
FrameRate = 120;
BitRate = 65;
};
#設定要降低的 bitrate 值End