Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 249 Rev 250
Línea 212... Línea 212...
212
                    rename($full_filename, $full_tempname);
212
                    rename($full_filename, $full_tempname);
Línea 213... Línea 213...
213
                    
213
                    
Línea 214... Línea 214...
214
                    $sizeVideo = $resized_width . ':' . $resized_height;
214
                    $sizeVideo = $resized_width . ':' . $resized_height;
215
                    
215
                    
216
                    $cmd = "/usr/bin/ffmpeg -y -i $full_tempname -vf scale=$sizeVideo -c:a copy -c:s copy n -c:v libx265 -preset slower -crf 18  $full_filename";
216
                    $cmd = "/usr/bin/ffmpeg -y -i $full_tempname -vf scale=$sizeVideo -c:a copy -c:s copy n -c:v libx265 -preset slower -crf 18  $full_filename";
217
                    $output = null;
217
                    $retdata = null;
218
                    $retval = null;
218
                    $retval = null;
219
                    exec($cmd, $output, $retval);
219
                    exec($cmd, $retdata, $retval);
Línea 220... Línea 220...
220
                    $output->writeln("Retorno el estado : $retval  y la salida :");
220
                    $output->writeln("Retorno el estado : $retval  y la salida :");
221
                    $output->writeln($output);
221
                    $output->writeln($retdata);
222
                   
222
                   
223
                    $cmd            = "/usr/bin/ffmpeg -y -i $full_tempname  -frames:v 1 -vf scale=$sizeVideo $full_filename $full_filename_poster";
223
                    $cmd            = "/usr/bin/ffmpeg -y -i $full_tempname  -frames:v 1 -vf scale=$sizeVideo $full_filename $full_filename_poster";
224
                    $output = null;
224
                    $retdata = null;
225
                    $retval = null;
225
                    $retval = null;
Línea 226... Línea 226...
226
                    exec($cmd, $output, $retval);
226
                    exec($cmd, $retdata, $retval);