[FFmpeg-user] ff_frame_thread_encoder_init failed when run via PHP exec

André Hänsel andre at webkr.de
Tue Jun 26 12:59:47 EEST 2018

> > It works perfectly when I log in to the console via putty and run it. But
> > when I run it via exec() in PHP it always comes back with
> > ff_frame_thread_encoder_init failed Error initializing output stream 0:0 --
> > Error while opening encoder for output stream #0:0 - maybe incorrect
> > parameters such as bit_rate, rate, width or height.

Could you try running "ulimit -a", once on the console and once from PHP?

More information about the ffmpeg-user mailing list