Vertical videos playing upside down in nextcloud web app

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 9 (30.0.4)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-130-generic x86_64)
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • replace me
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • today
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • replace me

Summary of the issue you are facing:

Recently added vertically aligned videos are playing upside down in the nextcloud web app.

I have been following a process for years to manage my photos and videos without issue, using rsync and then running a script with the following commands. After a recent AIO update, vertically oriented videos are starting to show upside down. Earlier videos are fine, as are horizontally oriented videos.

chown -R www-data:www-data /mnt/volume_nyc3_01/nextcloud/backup/files
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan backup
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ memories:index

Steps to replicate it:

  1. take a vertical video on your phone (in my case iphone 15 pro max
  2. open nextcloud iphone app to sync photos and videos to nextcloud
  3. watch video in iphone nextcloud app - works correctly :slight_smile:
  4. watch video in nextcloud web app- works correctly :slight_smile:
  5. move video to external drive, rsync and rescan
  6. watch video in nextcloud web app - it’s upside down :upside_down_face:

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "appsallowlist": false,
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "nextcloud.foo.org",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "nextcloud.foo.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "30.0.4.1",
        "overwrite.cli.url": "https:\/\/nextcloud.foo.org\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 2,
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": "10485760",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\TXT",
            "2": "OC\\Preview\\OpenDocument",
            "3": "OC\\Preview\\Movie",
            "4": "OC\\Preview\\Krita",
            "5": "OC\\Preview\\HEIC",
            "6": "OC\\Preview\\TIFF",
            "7": "OC\\Preview\\Image"
        },
        "enable_previews": true,
        "upgrade.disable-web": true,
        "mail_smtpmode": "smtp",
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": "30",
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "updatedirectory": "\/nc-updater",
        "maintenance_window_start": 100,
        "allow_local_remote_servers": true,
        "davstorage.request_timeout": 3600,
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "files_external_allow_create_new_local": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.gis_type": 2,
        "default_phone_region": "US",
        "defaultapp": "files",
        "memories.vod.disable": false,
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "DOMAIN": "nextcloud.foo.org"
    }
}

Apps

The output of occ app:list (if possible).

Enabled:
  - activity: 3.0.0
  - app_api: 4.0.3
  - bruteforcesettings: 3.0.0
  - cloud_federation_api: 1.13.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - keeweb: 0.6.20
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - memories: 7.4.1
  - nextcloud-aio: 0.7.0
  - notify_push: 0.7.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - passwords: 2024.12.21
  - photos: 3.0.2
  - previewgenerator: 5.7.0
  - provisioning_api: 1.20.0
  - recognize: 8.2.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - settings: 1.13.0
  - side_menu: 4.0.1
  - sociallogin: 5.7.0
  - support: 2.0.0
  - systemtags: 1.20.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - viewer: 3.0.0
  - workflowengine: 2.12.0
Disabled:
  - admin_audit: 1.20.0 (installed 1.18.0)
  - audioplayer: 3.4.1 (installed 3.4.1)
  - circles: 30.0.0 (installed 28.0.0)
  - comments: 1.20.1 (installed 1.18.0)
  - contactsinteraction: 1.11.0 (installed 1.9.0)
  - dashboard: 7.10.0 (installed 7.8.0)
  - deck: 1.14.2 (installed 1.14.2)
  - encryption: 2.18.0
  - external: 5.5.2 (installed 5.5.2)
  - federation: 1.20.0 (installed 1.18.0)
  - files_archive: 1.2.3 (installed 1.2.3)
  - files_external: 1.22.0
  - files_reminders: 1.3.0 (installed 1.1.0)
  - firstrunwizard: 3.0.0 (installed 2.17.0)
  - groupfolders: 18.0.8 (installed 18.0.8)
  - maps: 1.5.0 (installed 1.5.0)
  - nextcloud_announcements: 2.0.0 (installed 1.17.0)
  - notes: 4.11.0 (installed 4.11.0)
  - notifications: 3.0.0 (installed 2.16.0)
  - privacy: 2.0.0 (installed 1.12.0)
  - serverinfo: 2.0.0 (installed 2.0.0)
  - sharebymail: 1.20.0 (installed 1.18.0)
  - survey_client: 2.0.0 (installed 1.16.0)
  - suspicious_login: 8.0.0
  - tasks: 0.16.1 (installed 0.16.1)
  - text: 4.1.0 (installed 3.9.1)
  - theming_customcss: 1.17.0 (installed 1.17.0)
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev (installed 10.0.0-beta.2)
  - unroundedcorners: 1.1.4 (installed 1.1.4)
  - user_ldap: 1.21.0
  - user_status: 1.10.0 (installed 1.8.1)
  - weather_status: 1.10.0 (installed 1.8.0)
  - webhook_listeners: 1.1.0-dev (installed 1.1.0-dev)

Maybe the transpose workaround mode toggles in Memories?

1 Like