Pascal Baljet

Results 62 comments of Pascal Baljet

Can you share the command using the `dd` method? ```php FFMpeg::fromDisk('temp_media') ->open($temp_file) ->addFilter('-loop', 1) ->addFilter('-c:v', 'libx264') ->addFilter('-t', 3) ->addFilter('-pix_fmt', 'yuv420p') ->export() ->dd('output.mp4'); ```

I haven't tried it myself, but you could try a custom video format with no audio codec, that extends the existing `X264` class. Something like this: ```php use FFMpeg\Format\Video\X264; class...

I've got this working in a new branch, but it needs some cleaning up and polishing: https://github.com/protonemedia/laravel-ffmpeg/commit/a2928e9c83eff2b7a6b9535eae7315c06a6f70e5 If you're using HTML, you can also set the thumbnail with the `poster`...

I've come up with a built-in solution that looks something like this: ```php FFMpeg::open(['video.mp4', 'thumb.jpg']) ->export() ->addFormatOutputMapping(new CopyFormat, null, ['0']) ->addFormatOutputMapping(new AttachedPicFormat, Media::make('local', 'video_with_thumb.mp4'), ['1']) ->save(); ``` I'll add some...

Not sure this is possible, but I’ll investigate :) Related: https://github.com/PHP-FFMpeg/PHP-FFMpeg/issues/218 https://github.com/PHP-FFMpeg/PHP-FFMpeg/issues/780

A PR with an exception would be great! Just wondering though, why would want to call that method on an image?

Are there any console errors you can share? And is it only Alpine.js you’re using, or Livewire as well?

@coding-sunshine It would be if you could share the repo! Thanks in advance :)

You must also add `import Custom from './Custom.vue'` and `app.component('Custom', Custom)` to `ssr.js`.