Filter concat:out:v0 has a unconnected output | Concatenating with php-ffmpeg -


i'm incorporating php-ffmpeg symfony3 project working perfectly. i've been needing concatenate 2 videos one, , appear it's not supported. created concatvideofilter class i'm using based off of this

    public function apply(video $video, videointerface $format)     {         $params = [];         $count = count($this->files) + 1;         foreach ($this->files $i => $file) {             $params[] = '-i';             $params[] = $file;         }         $params[] = '-filter_complex';         $params[] = 'concat=n='.$count.':v=1:a=1 [v]';         $params[] = '-map';         $params[] = '[v]';         return $params;     } 

i'm getting encoding failed error in symfony profiler

runtimeexception: encoding failed, executionfailureexception: ffmpeg failed execute command

i copy pasted actual ffmpeg command line see error give:

filter concat:out:v0 has unconnected output

which giving me error

filter concat:out:v0 has unconnected output

what error mean, , can rid of it?

you need

    $params[] = '-filter_complex';     $params[] = 'concat=n='.$count.':v=1:a=1 [v][a]';     $params[] = '-map';     $params[] = '[v]';     $params[] = '-map';     $params[] = '[a]'; 

your concat filter exports audio output didn't assign output pad , map it.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -