0
4

1 回答 1

0

您需要使用适当的 XPath 选择器,如下所示:

var mediaInfo = videoInfo.GetMediaInfo(filename);
var has_b_frames = mediaInfo.Result.CreateNavigator().SelectSingleNode(
  "/ffprobe/streams/stream[@index=\"0\"]/@has_b_frames")?.Value;
于 2019-04-11T16:19:34.170 回答