mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
More info from ffmpeg
This commit is contained in:
parent
0accb7ccdc
commit
00e931cd22
@ -39,6 +39,11 @@ namespace Nikse.SubtitleEdit.Core.Common
|
|||||||
return ParseLog(log);
|
return ParseLog(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long GetTotalFrames()
|
||||||
|
{
|
||||||
|
return (long)((double)FramesRate * Duration.TotalMilliseconds / TimeCode.BaseUnit);
|
||||||
|
}
|
||||||
|
|
||||||
public bool HasFrontCenterAudio(int trackNumber)
|
public bool HasFrontCenterAudio(int trackNumber)
|
||||||
{
|
{
|
||||||
if (trackNumber < 0)
|
if (trackNumber < 0)
|
||||||
@ -155,7 +160,7 @@ namespace Nikse.SubtitleEdit.Core.Common
|
|||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Process GetFFmpegProcess(string inputFileName)
|
private static Process GetFFmpegProcess(string inputFileName)
|
||||||
{
|
{
|
||||||
var ffmpegLocation = Configuration.Settings.General.FFmpegLocation;
|
var ffmpegLocation = Configuration.Settings.General.FFmpegLocation;
|
||||||
if (!Configuration.IsRunningOnWindows && (string.IsNullOrEmpty(ffmpegLocation) || !File.Exists(ffmpegLocation)))
|
if (!Configuration.IsRunningOnWindows && (string.IsNullOrEmpty(ffmpegLocation) || !File.Exists(ffmpegLocation)))
|
||||||
|
Loading…
Reference in New Issue
Block a user