Exemplo n.º 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,
Exemplo n.º 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,