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
i copy pasted actual ffmpeg command line see error give:
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
Post a Comment