Cant get movie previews to work - home server with LAMP

Nextcloud 23.0.0
Ubuntu 20.04.3 LTS
Apache/2.4.41
PHP 7.4

Hi, I have read many topics however I still can’t get clear answer how to force my nextcloud server to display movie previews (i.e. mp4 files)

  1. I installed imagemagick, imagemagick-common php-imagick ffmpeg
  2. Added
    ‘enable_previews’ => true,
    ‘preview_max_x’ => 1000,
    ‘preview_max_y’ => 1000,
    ‘enabledPreviewProviders’ => [
    ‘OC\Preview\TXT’,
    ‘OC\Preview\MarkDown’,
    ‘OC\Preview\PDF’,
    ‘OC\Preview\MSOfficeDoc’,
    ‘OC\Preview\JPEG’,
    ‘OC\Preview\PNG’,
    ‘OC\Preview\GIF’,
    ‘OC\Preview\BMP’,
    ‘OC\Preview\XBitmap’,
    ‘OC\Preview\MP3’,
    ‘OC\Preview\HEIC’,
    ‘OC\Preview\Movie’,
    ‘OC\Preview\MKV’,
    ‘OC\Preview\MP4’,
    ‘OC\Preview\AVI’,
    ],
    to my /var/www/nextcloud/config/config.php

as stated in https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#previews

  1. Installed Preview Generator according to this tutorial
    GitHub - nextcloud/previewgenerator: Nextcloud app to do preview generation

(suspiciosly command sudo -u www-data php /var/www/nextcloud/occ preview:generate-all does scan folders but doesn’t filnd any movie files)

So i still have no previews

As you might probably guess i am kinda newbie so I would be extremely happy i if you could be as precise as possible

Can you help ? What else can I do ?

OK PROBLEM SOLVED

There was a mishmash configuration in to my /var/www/nextcloud/config/config.php

), symbol was missing in line above ,enable_previews…" and there was one additional at the end of the file

Cheers!