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

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Jun 27 00:10:25 EEST 2018


2018-06-23 13:39 GMT+02:00, rwilkin <robertwilkin1983 at hotmail.com>:

> I am trying to create a thumbnail image from a video with PHP. This is the
> command I am using:
>
> "/home2/public_html/ffmpeg/ffmpeg" -i
> "/home2/public_html/ffmpeg/SampleVideo.mp4" -ss 00:00:01.000 -vframes 1 -y
> "/home2/public_html/ffmpeg/SampleVideo.png" -loglevel debug 2>
> "/home2/public_html/ffmpeg/wildlife.txt"

Assuming the issue is a limit on the number of threads (and
you cannot increase the number), try:
$ ffmpeg -threads 1 -i SampleVideo.mp4 -ss 1 ...

Test different numbers.

Carl Eugen


More information about the ffmpeg-user mailing list