$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;