Skip to content

Videos are always uploaded with 848x484 w, h attributes #2038

@comdev1337

Description

@comdev1337

Checklist

  • I am reporting an issue in existing functionality that does not work as intended
  • I've searched for existing GitHub issues

Description

The client uploads all >10 MB videos with bogus documentAttributeVideo w, h parameters of 848x484 (484x848 if vertical). This causes video playback issues on other clients relying on the video attributes.
telegramdesktop/tdesktop#30407

Image

Steps to Reproduce

  1. Upload literally any 1080p video >10 MB with the highest quality setting selected
  2. Video is correctly uploaded as a 1080p video, but the width, height attributes are always 848x484

Screenshots and Videos

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'gura.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf59.16.100
  Duration: 00:00:33.41, start: 0.000000, bitrate: 6014 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1080x1920 [SAR 1:1 DAR 9:16], 5886 kb/s, 60 fps, 60 tbr, 15360 tbn (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
Image

Environment

Device: iPhone

iOS version: 18

App version: 12.5.1 (wtf doesn't it show the version in settings?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions