protonemedia / laravel-ffmpeg

This package provides an integration with FFmpeg for Laravel. Laravel's Filesystem handles the storage of the files.
https://protone.media/en/blog/how-to-use-ffmpeg-in-your-laravel-projects
MIT License
1.62k stars 193 forks source link

Unable to concat #480

Open erosguerrero opened 1 year ago

erosguerrero commented 1 year ago

Hi, im trying to concat 2 videos I have used this two codes

1--- Dont concat, just show the first video. Only when the two vídeos are the same vídeo works. 2 mp4 just get the first one. FFMpeg::fromDisk('local') ->open($array->toArray()) ->export() ->concatWithoutTranscoding() ->save($path); FFMpeg::cleanupTemporaryFiles();

----2 Trying to see if is a thing about transcoding, this just doesnt works (tried to change the encode, active audio, change lines order ...) FFMpeg::fromDisk('local') ->open($array->toArray()) ->export() ->concatWithTranscoding($hasVideo = true, $hasAudio = false) ->inFormat(new \FFMpeg\Format\Video\X264()) ->save($path);