Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previews for videos #206

Closed
DecaTec opened this issue Sep 25, 2020 · 1 comment
Closed

Previews for videos #206

DecaTec opened this issue Sep 25, 2020 · 1 comment

Comments

@DecaTec
Copy link

DecaTec commented Sep 25, 2020

The app is supposed to also generate previews for video files, right?

That doesn't seem to work.

Nextcloud 19.0.3
Preview generator 2.3.0

Entries in config.php:

'enable_previews' => true,
  'enabledPreviewProviders' => array(
        0 => 'OC\\Preview\\PNG',
        1 => 'OC\\Preview\\JPEG',
        2 => 'OC\\Preview\\GIF',
        3 => 'OC\\Preview\\HEIC',
        4 => 'OC\\Preview\\BMP',
        5 => 'OC\\Preview\\XBitmap',
        6 => 'OC\\Preview\\MP3',
        7 => 'OC\\Preview\\TXT',
        8 => 'OC\\Preview\\MarkDown',
        9 => 'OC\\Preview\\Movie',
        10 => 'OC\\Preview\\MKV',
        11 => 'OC\\Preview\\MP4',
        12 => 'OC\\Preview\\AVI',
        13 => 'OC\\Preview\\PDF',
 ),

ffmpeg is installed and can be found in the path as this is included in the variable env[PATH] in PHP's pool config.

Previews are generated as expected for image files. So the preview generation seems to be configured correctly.

When calling sudo -u www-data php occ preview:pre-generate -vvv, all scanned files are listed. The video files (*.mp4, *.mov, etc.) are missing here, so I guess that the preview generator doesn't recognize these files.

Am I missing something with my configuration or doesn't the preview generator support video files by now?

@DecaTec
Copy link
Author

DecaTec commented Oct 1, 2020

OK, solved. I had open_basedir active in the PHP config. Had to add /usr/bin/ffmpeg to open_basedir and re-"index" the preview files.

Maybe it's a good idea to print out some message when calling sudo -u www-data php occ preview:pre-generate -vvv and ffmpeg cannot be found/called?

@DecaTec DecaTec closed this as completed Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant