添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
$videoHeight = 0; foreach ($ret as $everyLine){ if(preg_match("/Duration: (.*), start: .*,/",$everyLine,$matches)){ //获取视频的尺寸 Stream #0:0(und): Video: .*, .*, 1074x952, $videoLength = $matches[1]; //00:07:37.60 $videoLength = strtotime($videoLength) - strtotime("00:00:00"); //转换为秒 if(preg_match("/Video: .*, (d*)x(d*)/",$everyLine,$matches)){ //"/Video: .*, .*, (d*)x(d*),/ $videoWidth = $matches[1]; // 1074 $videoHeight = $matches[2]; // 952 if($videoLength && $videoWidth && $videoHeight){ break;