Video play audio but screen is blank - not all videos

Nextcloud version (eg, 20.0.5): 23.0.0
Operating system and version (eg, Ubuntu 20.04): Docker image on Synology
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): v8.0.14

The issue you are facing:

Uploaded some videos and they refuse to play or rather they play but the video itself is blank. The sound is there, but no video. Download the file and play it locally, video displays fine, but playing it through the NextCloud interface does not display the video. The screen is blank.

Note that some other videos I uploaded before display just find through NextCloud, just not these new ones.

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

  1. Click on the video through the NextCloud interface

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'ocr9s4iyfz5x',
  'passwordsalt' => '<salt>',
  'secret' => '<shhhhh>',
  'trusted_domains' => 
  array (
    0 => '<domain1>',
    1 => '<domain2>',
    2 => '<domain3>',
    3 => '<domain4>',
  'default_phone_region' => 'US',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'overwritehost' => '',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'nextcloud',
  'installed' => true,
  'mail_from_address' => 'Andrew',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpport' => '25',
  'mail_smtpname' => '$USER',
  'mail_smtppassword' => '<shhhhh>',
  'maintenance' => false,
  'enable_previews' => true,
    'enabledPreviewProviders' =>
    array (

The output of your Apache/nginx/system log in /var/log/____:


I have similar problem with large MP4 videos (~1GB).
Nextcloud 24.0.1
nginx, php 8.0, redis, and mariadb 10.5.15
VM with Debian 11 x64 on Proxmox HV

When I try to open the video in web browser (chrome) video has sound, but I see only blackscreen.
With video with size ~650 MB - i dont have issue. In nc log - nothing

[Scanning memory… Warning: older age detected! Memories may be imperfect]

IIRC the problem ended up being that I was using some sort of H265 HEVC kinda a codec on my phone which was making the videos and the current state of browsers cannot render the video correctly. For a while, I was simply running the video through OpenShot and exporting it and that would work. But what was really happening was that this HEVC thing was being stripped off of the exported video and so that would work just fine.

The real solution for me was to set the settings of the camera in my Galaxy S21 to not use that HEVC thing and thus produce videos that would work without the need for conversion.

Ah yes, here’s a video that explains how to do this on the Galaxy S21 (probably S22 too) -

haha, yea… on huawei nova 5T I had enabled 4K video and efficient format that make file in format 8bit HVEC:

mediainfo --Inform="Video;%Format%:%BitDepth% bits" VID_20220531_102358.mp4
HEVC:8 bits

On nova 5T → open camera → swith to video mode and go to settings wheel → select [16:9] 1080p / 60 fps and disable efficient format

Now I trying to convert it to H264 with:

ffmpeg -i VID_20220531_102358.mp4 -map 0 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy VID_20220531_102358-H264.mp4

that I found on:

and will write here with the result after upload

Good luck. I just changed the setting on my Galaxy S21. No point in constantly creating videos that I have to convert.