/// <summary>
/// Applies 432hz auto-pitch if file PixelAspectRatio is 1 and FPS can be read.
/// </summary>
/// <param name="video">The video for which to create the auto-pitch script file.</param>
/// <returns>Whether auto-pitch is enabled for this video.</returns>
public static bool AppyAutoPitch(Media video) {
using (MediaInfoReader InfoReader = new MediaInfoReader()) {
InfoReader.LoadInfo(Settings.NaturalGroundingFolder + video.FileName);
if (Settings.SavedFile.ChangeAudioPitch && InfoReader.PixelAspectRatio == 1 && !video.DisablePitch && (InfoReader.BitDepth ?? 8) == 8) {
CreateScript(Settings.NaturalGroundingFolder + video.FileName, InfoReader);
return true;
} else
return false;
}
}