Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2194 | Rev 3473 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2194 Rev 3471
Línea 118... Línea 118...
118
                            'width' =>  $sizes[0],
118
                            'width' =>  $sizes[0],
119
                            'height' => $sizes[1]
119
                            'height' => $sizes[1]
120
                        ]);    
120
                        ]);    
121
                    }
121
                    }
Línea 122... Línea 122...
122
                    
122
                    
123
                    $cmd        = "/usr/bin/ffprobe -v error -of flat=s=_ -select_streams v:0 -show_entries stream=height,width  $full_filename";
123
                    $cmd        = "/usr/bin/ffprobe -v error -of flat=s=_ -select_streams v:0 -show_entries stream=height,width,duration  $full_filename";
Línea 124... Línea 124...
124
                    $response   = trim(shell_exec($cmd));
124
                    $response   = trim(shell_exec($cmd));
125
                    
125
                    
126
                    $lines = explode("\n", $response);
126
                    $lines = explode("\n", $response);
127
                    foreach($lines as $line)
127
                    foreach($lines as $line)
128
                    {
128
                    {
129
                        $line = trim(strtolower($line));
129
                        $line = trim(strtolower($line));
130
                        if(strpos($line, 'width') !== false) {
130
                        if(strpos($line, 'width') !== false) {
131
                            $values = explode('=', $line);
131
                            $values = explode('=', $line);
132
                            $source_width = $values[1];
132
                            $source_width = intval($values[1], 10);
133
                        }
133
                        }
134
                        if(strpos($line, 'height') !== false) {
134
                        if(strpos($line, 'height') !== false) {
-
 
135
                            $values = explode('=', $line);
-
 
136
                            $source_height = intval($values[1], 10);
-
 
137
                        }
-
 
138
                        if(strpos($line, 'duration') !== false) {
135
                            $values = explode('=', $line);
139
                            $values = explode('=', $line);
136
                            $source_height = $values[1];
140
                            $source_duration = intval($values[1], 10);
Línea 137... Línea 141...
137
                        }
141
                        }