Videos+ffmpeg

I have a problem with processing videos, I will try to describe it. Version 14RC1 and 13.1 stable, same problem

I first uploaded a 1 MB video, which went through relatively smoothly. Only the page with the video took a while to load, but the rest of the website responded normally. Then I uploaded a 30 MB video, and while the website was still responsive, things started to get interesting. On the server, tasks for converting (ffmpeg) the same video kept piling up, which heavily burdened it. There are only two video quality options, yet these tasks are being triggered from the website. I absolutely don’t understand this, given that there is a cron job. The cron job could trigger them directly as a process. I see no reason why the video conversion application should block the PHP process dedicated to the web server.

web9004 13691 30587 0 15:53 ? 00:00:06 php-fpm: pool example.comweb9004 15340 13691 0 16:05 ? 00:00:00 sh -c /home/domains/example.com/web/public/plugins/ffmpeg/ffmpeg.exe -i 'https://example.com/s/bx_videos_media_resized/gbqvg3vjzdpvfnhyzwqawcpmu4eqgz2m.mp4web9004 15341 15340 9 16:05 ? 00:00:00 /home/domains/example.com/web/public/plugins/ffmpeg/ffmpeg.exe -i https://example.com/s/bx_videos_media_resized/gbqvg3vjzdpvfnhyzwqawcpmu4eqgz2m.mp4web9004 13270 30587 0 15:52 ? 00:00:04 php-fpm: pool example.comweb9004 15281 13270 0 16:04 ? 00:00:00 sh -c /home/domains/example.com/web/public/plugins/ffmpeg/ffmpeg.exe -i 'https://example.com/s/bx_videos_media_resized/gbqvg3vjzdpvfnhyzwqawcpmu4eqgz2m.mp4'web9004 15282 15281 11 16:04 ? 00:00:08 /home/domains/example.com/web/public/plugins/ffmpeg/ffmpeg.exe -i https://example.com/s/bx_videos_media_resized/gbqvg3vjzdpvfnhyzwqawcpmu4eqgz2m.mp4web9004 15050 7402 0 15:59 ? 00:00:00 sh -c /home/domains/example.com/web/public/plugins/ffmpeg/ffmpeg.exe -i 'https://example.com/s/bx_videos_media_resized/gbqvg3vjzdpvfnhyzwqawcpmu4eqgz2m.mp4'web9004 15051 15050 11 15:59 ? 00:00:46 /home/domains/example.com/web/public/plugins/ffmpeg/ffmpeg.exe -i https://example.com/s/bx_videos_media_resized/gbqvg3vjzdpvfnhyzwqawcpmu4eqgz2m.mp4web9004 15074 7766 0 16:00 ? 00:00:00 sh -c /home/domains/example.com/web/public/plugins/ffmpeg/ffmpeg.exe -i 'https://example.com/s/bx_videos_media_resized/gbqvg3vjzdpvfnhyzwqawcpmu4eqgz2m.mp4'web9004 15075 15074 11 16:00 ? 00:00:41 /home/domains/example.com/web/public/plugins/ffmpeg/ffmpeg.exe -i https://example.com/s/bx_videos_media_resized/gbqvg3vjzdpvfnhyzwqawcpmu4eqgz2m.mp4web9004 7402 30587 0 15:35 ? 00:00:05 php-fpm: pool example.comweb9004 7766 30587 0 15:37 ? 00:00:04 php-fpm: pool example.com

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

14130 web9004 20 0 242216 35616 24160 S 18,8 0,3 0:04.28 php-fpm

14187 web9004 20 0 242540 37564 25856 S 18,8 0,3 0:04.35 php-fpm

14188 web9004 20 0 242672 38964 27200 S 18,8 0,3 0:03.70 php-fpm

14267 web9004 20 0 242024 30368 19116 S 18,8 0,2 0:01.76 php-fpm

14271 web9004 20 0 242220 36352 24884 R 18,8 0,3 0:02.10 php-fpm

14272 web9004 20 0 242544 38436 26676 S 18,8 0,3 0:01.65 php-fpm

2013 mysql 20 0 2163672 248260 19660 S 12,5 2,0 1:53.19 mysqld

11984 web9004 20 0 96488 21828 12156 R 12,5 0,2 0:54.34 ffmpeg.exe

12173 web9004 20 0 96488 21852 12180 S 12,5 0,2 0:49.34 ffmpeg.exe

12343 web9004 20 0 96488 21940 12268 S 12,5 0,2 0:46.48 ffmpeg.exe

13577 web9004 20 0 96488 21844 12268 R 12,5 0,2 0:16.91 ffmpeg.exe

13953 web9004 20 0 96488 21844 12268 R 12,5 0,2 0:07.42 ffmpeg.exe

14012 web9004 20 0 96488 21848 12268 R 12,5 0,2 0:07.04 ffmpeg.exe

14269 web9004 20 0 96488 21848 12272 R 12,5 0,2 0:01.60 ffmpeg.exe

14270 web9004 20 0 242024 31032 19776 S 12,5 0,3 0:02.19 php-fpm

14325 web9004 20 0 96488 21784 12208 S 12,5 0,2 0:00.90 ffmpeg.exe

14329 web9004 20 0 242024 30176 18928 R 12,5 0,2 0:01.15 php-fpm

30698 www-data 20 0 1970344 33044 7188 S 12,5 0,3 1:58.96 apache2

12176 web9004 20 0 96488 21968 12296 S 6,2 0,2 0:48.07 ffmpeg.exe

14186 web9004 20 0 96488 21804 12228 S 6,2 0,2 0:02.89 ffmpeg.exe

In addition, these ffmpeg tasks download the video again through the webserver. The file should be loaded directly from the disk correctly?

What is causing this behavior?

  • 740
  • More
Attachments
Replies (2)
    • So finally the mystery solved..it's an outdated version of ffmpeg..I tried different versions and 7.0.2 works absolutely without problems in UNA 14RC1 ..I'm attaching it for download

      Don't forget to set the ffmpeg attributes to 755 again after the change!

      • I had the same problem and solution a while back, I could have helped but it's my first day back on after my holiday

        Login or Join to comment.