Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions config/config.sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,48 @@
*/
'preview_imaginary_key' => 'secret',

/**
* Set the address of an ffmpeg-over-ip server to generate video previews on,
* as ``host:port``, ``tls://host:port`` or ``unix:/path/to/socket``. This is
* not an HTTP URL. Also requires the ``OC\Preview\MovieRemote`` provider to
* be enabled in the ``enabledPreviewProviders`` array. Neither ffmpeg nor the
* ffmpeg-over-ip client is needed on the Nextcloud server in that case.
*
* The server reads the videos from Nextcloud over the same connection, so
* it needs no access to the data directory. ffmpeg-over-ip itself does not
* encrypt the connection and does not authenticate the server, so anyone
* answering on this address can read the videos. Either only use it within
* a trusted network, or put a TLS terminating proxy (e.g. stunnel) in front
* of the server and use a ``tls://`` address. Like for other outgoing
* connections of Nextcloud, its certificate is verified against Nextcloud's
* certificate bundle, so a certificate of an internal CA has to be imported
* with ``occ security:certificates:import``.
*
* Like with ``OC\Preview\Movie``, the server can only read up to 20 MB of
* videos on storages that are not local (e.g. S3 or external storage), and
* only the first 10 MB of videos on storages that cannot seek (e.g. WebDAV
* or FTP external storage).
*
* If ``OC\Preview\Movie`` is enabled as well, the server is tried first and
* the local ffmpeg is only used if the server could not generate a preview.
*
* See https://github.com/steelbrain/ffmpeg-over-ip
*/
'preview_ffmpeg_address' => 'ffmpeg-over-ip:5050',

/**
* The ``authSecret`` configured on the ffmpeg-over-ip server.
*/
'preview_ffmpeg_key' => 'secret',

/**
* Seconds generating a single video preview on the ffmpeg-over-ip server
* may take in total. Values below 1 use the default.
*
* Defaults to ``120``
*/
'preview_ffmpeg_timeout' => 120,

/**
* Only register providers that have been explicitly enabled
*
Expand All @@ -1646,6 +1688,7 @@
* - ``OC\Preview\Illustrator``
* - ``OC\Preview\JP2``
* - ``OC\Preview\Movie``
* - ``OC\Preview\MovieRemote``
* - ``OC\Preview\MP3``
* - ``OC\Preview\MSOffice2003``
* - ``OC\Preview\MSOffice2007``
Expand Down
2 changes: 2 additions & 0 deletions lib/composer/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2172,6 +2172,7 @@
'OC\\Preview\\Db\\Preview' => $baseDir . '/lib/private/Preview/Db/Preview.php',
'OC\\Preview\\Db\\PreviewMapper' => $baseDir . '/lib/private/Preview/Db/PreviewMapper.php',
'OC\\Preview\\EMF' => $baseDir . '/lib/private/Preview/EMF.php',
'OC\\Preview\\FFmpegOverIpClient' => $baseDir . '/lib/private/Preview/FFmpegOverIpClient.php',
'OC\\Preview\\Font' => $baseDir . '/lib/private/Preview/Font.php',
'OC\\Preview\\GIF' => $baseDir . '/lib/private/Preview/GIF.php',
'OC\\Preview\\Generator' => $baseDir . '/lib/private/Preview/Generator.php',
Expand All @@ -2193,6 +2194,7 @@
'OC\\Preview\\MarkDown' => $baseDir . '/lib/private/Preview/MarkDown.php',
'OC\\Preview\\MimeIconProvider' => $baseDir . '/lib/private/Preview/MimeIconProvider.php',
'OC\\Preview\\Movie' => $baseDir . '/lib/private/Preview/Movie.php',
'OC\\Preview\\MovieRemote' => $baseDir . '/lib/private/Preview/MovieRemote.php',
'OC\\Preview\\Office' => $baseDir . '/lib/private/Preview/Office.php',
'OC\\Preview\\OpenDocument' => $baseDir . '/lib/private/Preview/OpenDocument.php',
'OC\\Preview\\PDF' => $baseDir . '/lib/private/Preview/PDF.php',
Expand Down
2 changes: 2 additions & 0 deletions lib/composer/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -2213,6 +2213,7 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
'OC\\Preview\\Db\\Preview' => __DIR__ . '/../../..' . '/lib/private/Preview/Db/Preview.php',
'OC\\Preview\\Db\\PreviewMapper' => __DIR__ . '/../../..' . '/lib/private/Preview/Db/PreviewMapper.php',
'OC\\Preview\\EMF' => __DIR__ . '/../../..' . '/lib/private/Preview/EMF.php',
'OC\\Preview\\FFmpegOverIpClient' => __DIR__ . '/../../..' . '/lib/private/Preview/FFmpegOverIpClient.php',
'OC\\Preview\\Font' => __DIR__ . '/../../..' . '/lib/private/Preview/Font.php',
'OC\\Preview\\GIF' => __DIR__ . '/../../..' . '/lib/private/Preview/GIF.php',
'OC\\Preview\\Generator' => __DIR__ . '/../../..' . '/lib/private/Preview/Generator.php',
Expand All @@ -2234,6 +2235,7 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
'OC\\Preview\\MarkDown' => __DIR__ . '/../../..' . '/lib/private/Preview/MarkDown.php',
'OC\\Preview\\MimeIconProvider' => __DIR__ . '/../../..' . '/lib/private/Preview/MimeIconProvider.php',
'OC\\Preview\\Movie' => __DIR__ . '/../../..' . '/lib/private/Preview/Movie.php',
'OC\\Preview\\MovieRemote' => __DIR__ . '/../../..' . '/lib/private/Preview/MovieRemote.php',
'OC\\Preview\\Office' => __DIR__ . '/../../..' . '/lib/private/Preview/Office.php',
'OC\\Preview\\OpenDocument' => __DIR__ . '/../../..' . '/lib/private/Preview/OpenDocument.php',
'OC\\Preview\\PDF' => __DIR__ . '/../../..' . '/lib/private/Preview/PDF.php',
Expand Down
Loading
Loading