I am using FFMPEG for converting mp4 to m3u8 format on an Ubuntu local machine. But I am facing an error Encoding Failed.
My controller code is:
FFMpeg::open(public_path()."/uploads/".$filename)
->exportForHLS()
->addFormat($lowBitrate)
->addFormat($midBitrate)
->addFormat($highBitrate)
->toDisk(env('APP_ENV'))
->save(public_path().'/converted/adaptive_steve.m3u8');
The error is:
Config file is
How can I solve this? Thanks


->InFormat(new \FFMpeg\Format\Video\WHATEVER_FORMAT_IS_CORRECT)before->save? Read the documentation, they use that to export it to the desired format...