ownCloud WEB-server unable to playback MKV videos

Dear Friends,
my ownCloud WEB-server unable to playback MKV videos, MP4 playback works fine though.

Steps to reproduce
Upload any MKV video to ownCloud WEB-server and publish it with shared link. Then open shared link in any browser.
Expected behaviour
Being able to play video like I’m able to play MP4 video.

Actual behaviour
Error “The video cannot be played because your browser does not support the file type. Please try another browser.”

Server configuration
Operating system:
OMV6 (debian 11)

Web server:
Apache (default)


PHP version:
ownCloud 10.11.0 (stable) standard docker installation, idk how to check php version

ownCloud version: (see ownCloud admin page)
ownCloud 10.11.0 (stable)

Updated from an older ownCloud or fresh install:
fresh install

Where did you install ownCloud from:
official docker yml file

Signing status (ownCloud 9.0 and above):
Idk how to check

In integrity check: No errors have been found.

The content of config/config.php:

<?php $CONFIG = array ( 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/owncloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/owncloud/custom', 'url' => '/custom', 'writable' => true, ), ), 'trusted_domains' => array ( 0 => 'localhost', ), 'datadirectory' => '/mnt/data/files', 'dbtype' => 'mypass', 'dbhost' => 'mariadb:3306', 'dbname' => 'mypass', 'dbuser' => 'mypass', 'dbpassword' => 'mypass', 'dbtableprefix' => 'oc_', 'log_type' => 'mypass', 'supportedDatabases' => array ( 0 => 'sqlite', 1 => 'mysql', 2 => 'pgsql', ), 'upgrade.disable-web' => true, 'default_language' => 'en', 'overwrite.cli.url' => 'mylocalhost:8080', 'overwritehost' => 'mypublickdns:8888', 'session_keepalive' => true, 'has_internet_connection' => true, 'htaccess.RewriteBase' => '/', 'logfile' => '/mnt/data/files/owncloud.log', 'memcache.local' => '\\OC\\Memcache\\APCu', 'mysql.utf8mb4' => true, 'filelocking.enabled' => true, 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'redis', 'port' => '6379', ), 'passwordsalt' => 'mypasswordsalt', 'secret' => 'mysecret', 'version' => '', 'allow_user_to_change_mail_address' => '', 'logtimezone' => 'UTC', 'installed' => true, 'instanceid' => 'ockv9qgkspra', 'files_external_allow_create_new_local' => 'true', ) ; **List of activated apps:** I have default set of activated apps via official docker installation ``` **Are you using external storage, if yes which one:** local/smb/sftp/... local and smb **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... ### Client configuration any **Operating system:** any ### Logs #### Web server error log ``` don't know hot to find but probably not applicable ``` #### ownCloud log (data/owncloud.log) ``` Insert your ownCloud log here ```

Hi romanand,

the web server is never playing contents, it is only delivering files. So the issue is on your side. I guess you are missing codecs for mkv files on your operating system. (You did not fill out the client configuration in the issue template, so we just don’t know which). I doubt you can play even downloaded mkv files.

Suggested solution: download an mkv codec for your operating system and try again.

1 Like

Thank you : )
I do understand that I can download a video file and then open it with media player.
But there are some cloud services like Google Drive and Yandex Disk that support mkv playback in browser, it’s just convenient.

Of course, I understand that they have a subscription there and these are essentially paid services, but I would like this function to be present here too.

Your browser can show mkv videos as well - as long as the codec is installed. It is something you can do to get it working.

I don’t think they are actually serving mkv, your browser still would not be able to show it, they probably are transcoding the videos.

Maybe, honestly I have no idea how the did it but it works fine.
Here’s for example a link to short mkv at Yandex Disk

I tried to install addon app “files_videoplayer” from Github but it doesn’t work :smiling_face_with_tear:

Nextcloud supports MKV playback :zipper_mouth_face: