laravel-ffmpeg icon indicating copy to clipboard operation
laravel-ffmpeg copied to clipboard

EncodingException-Problem in creating timelapse

Open MohsenHeidari97 opened this issue 3 years ago • 0 comments

I want to make a timelapse just like the example given in the ffmpeg doc ( https://github.com/protonemedia/laravel-ffmpeg#create-a-timelapse). I can save video in wmv and ogg formats but I had problem in saving videos in mp4. the output is a file with 0kb size and 0 second duration. I receive this exception when I run the method:

`

{
    $x = FFMpeg::open('test.jpg')
        ->export()
        ->asTimelapseWithFramerate(1)
        ->inFormat(new \FFMpeg\Format\Video\X264)
        ->save('timelapse.mp4');
    return $x;
}

image_2022-09-29_18-04-21 image_2022-09-29_18-04-54

I'll be appreciate if anybody could help me.

MohsenHeidari97 avatar Oct 01 '22 07:10 MohsenHeidari97