Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser

Home Page:https://joinpeertube.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect Video Size Reported by Admin Page

MattyBoombalatty opened this issue · comments

Describe the current behavior

In 6.1.0-rc1, the Administration -> Videos page shows each newly transcoded video as what it would be after transcoding (size on system), plus the original video size. Please note that "keep a copy of the original video" is disabled.

Steps to reproduce

  1. Upload a video (let's say 10 MB pre-transcoded)
  2. After video processes, the video is 15 MB on the file system
  3. Total video size is reported as 25 MB, rather than 15 MB.

Describe the expected behavior

The total video size should be post-transcoded video size, rather than the original size plus the transcoded size. I do not know if this is negatively impacting user storage capacity but will test it shortly.

Additional information

  • PeerTube instance:

  • Browser name, version and platforms on which you could reproduce the bug:

  • Link to browser console log if relevant:

  • Link to server log if relevant (journalctl or /var/www/peertube/storage/logs/):

It appears that only the HLS / web video size counts towards the user's storage quota, not the size reflected in "total". In this case the user would only have 455.5 MB added to their quota, rather than 632.3 MB (original file size + HLS transcoded file size).

image
image

Thanks! It should be fixed by bce0f2f