mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
354 B
12 lines
354 B
namespace ErsatzTV.Application.Streaming; |
|
|
|
public record PtsAndDuration(long Pts, long Duration) |
|
{ |
|
public static PtsAndDuration From(string ffprobeLine) |
|
{ |
|
string[] split = ffprobeLine.Split("|"); |
|
var left = long.Parse(split[0]); |
|
var right = long.Parse(split[1]); |
|
return new PtsAndDuration(left, right); |
|
} |
|
}
|
|
|