public VideoMetadataUseful(ffprobe xml)
 {
     this.xml = xml;
     if (xml.streams != null) {
         videoStream = xml.streams.FirstOrDefault(x => x.codec_type == "video");
         audioStream = xml.streams.FirstOrDefault(x => x.codec_type == "audio");
     }
     format = (ffprobeFormat)xml.format;
 }
Beispiel #2
0
 public VideoMetadataUseful(ffprobe xml)
 {
     this.xml = xml;
     if (xml.streams != null)
     {
         videoStream = xml.streams.FirstOrDefault(x => x.codec_type == "video");
         audioStream = xml.streams.FirstOrDefault(x => x.codec_type == "audio");
     }
     format = (ffprobeFormat)xml.format;
 }