コード例 #1
0
 private VideoStream ParseVideoStream(FFProbeStream stream)
 {
     return(new VideoStream
     {
         Index = stream.Index,
         AvgFrameRate = DivideRatio(ParseRatioDouble(stream.AvgFrameRate, '/')),
         BitRate = !string.IsNullOrEmpty(stream.BitRate) ? ParseIntInvariant(stream.BitRate) : default,
コード例 #2
0
 private VideoStream ParseVideoStream(FFProbeStream stream)
 {
     return new VideoStream
     {
         Index = stream.Index,
         AvgFrameRate = MediaAnalysisUtils.DivideRatio(MediaAnalysisUtils.ParseRatioDouble(stream.AvgFrameRate, '/')),
         BitRate = !string.IsNullOrEmpty(stream.BitRate) ? MediaAnalysisUtils.ParseIntInvariant(stream.BitRate) : default,