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

Undefined array key "streams"

Open kp-sst opened this issue 3 years ago • 5 comments

Undefined array key "streams" in laravel 9

kp-sst avatar Jun 30 '22 06:06 kp-sst

I am also facing this issue. Were you able to fix it?

alhaji-aki avatar Jul 05 '22 10:07 alhaji-aki

Could share a code example?

pascalbaljet avatar Jul 05 '22 12:07 pascalbaljet

image

Here is an example of how my code looks like.

Investigating further I realized this error was comming from the underlying php-ffmpeg package. I am using PHP 8.1 and Laravel 9.

alhaji-aki avatar Jul 05 '22 12:07 alhaji-aki

Maybe it’s the slash at the beginning of the file path.

pascalbaljet avatar Jul 10 '22 13:07 pascalbaljet

Sorry I wasn't able to update this. Even though I was able to get it to work, I found two issues

  1. It turns out my files were not downloading before the processing started
  2. also if the file contained subtitle(s) it failed

alhaji-aki avatar Jul 12 '22 15:07 alhaji-aki