How to generate a video of several video clip conffmpeg

0

I am trying to generate a video that contains a series of videos, for this I use ffmpeg with php, this executes it well when it comes to doing simple tests, but when doing what I really need, it does not, here what I'm doing:

Php code:

<?php
    shell_exec('ffmpeg.exe');
    shell_exec('ffmpeg -f concat -i ruta.txt -pix_fmt yuv420p video.mp4');
    echo 'ok';
?>

The route file:

file './Video/Video_01.mp4'
duration 3
file './Video/Video_02.mp4'
duration 3
file './Video/Video_03.mp4'
duration 2
file './Video/Video_03.mp4'
duration 3

As far as I understand, this is how I would have to group all the videos into one, but it does not do anything but nothing does nothing, can someone tell me what I'm doing wrong?

    
asked by Jhonny Luis 09.05.2018 в 05:35
source

1 answer

0

You can try:

ffmpeg -f concat -i ruta.txt -vf format=yuv420p video.mp4

Where ruta.txt :

file './Video/Video_01.mp4'
duration 3
file './Video/Video_02.mp4'
duration 3
file './Video/Video_03.mp4'
duration 2
file './Video/Video_03.mp4'
duration 3
file './Video/Video_03.mp4'
    
answered by 09.05.2018 / 06:20
source