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

FFmpeg Hls GPU support

Open alishademan opened this issue 1 year ago • 1 comments

Hi guys,

how can I -Hwaccel Cuda At HLS Thank you for helping me?

alishademan avatar Jan 20 '24 16:01 alishademan

@alishademan After a lot of experimentation this worked for me. I am using an nvidia gpu with wsl2 & cuda devkit installed

$highBitrateFormat = (new X264)->setKiloBitrate(3000);
$highBitrateFormat->setInitialParameters([
      '-hwaccel', 'cuda',
      '-hwaccel_output_format', 'cuda',
 ]);

iz-ben avatar Apr 09 '24 07:04 iz-ben