Page MenuHomePhabricator

Scale images/video in the background and publish immediately
Closed, InvalidPublic

Description

when uploading files UW waits with publishing until all encoding and scaling is done before notifying the user the upload is done, this can take quite some time with large files.

i have tested this with unexperienced users, and they were all sure the uploading died and gave up / refreshed. They didn't think of going to the file page and looking if it was in fact uploaded

I think it would be best to continue to the publishing phase once the original was uploaded if that is technically possible and continue scaling in backround.


Version: unspecified
Severity: normal

Details

Reference
bz65909

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:15 AM
bzimport added a project: UploadWizard.
bzimport set Reference to bz65909.
bzimport added a subscriber: Unknown Object (MLST).

Is this specifically about video? I'm not sure this would be an accurate description of how image uploading works.

It is commons for video, as it is usually bigger in size, but if you upload an image stream from flickr it also takes a long time. there is image scaling in images as well, but i'm not sure what is the flow there. It is definitely worse for video.

Thats not an accurate description of the upload process for either type of file. The delay in "publishing" probably has to do with the round about way the job queue is invoked, and in case of chunked, the task of concatenation (i would guess anyways, as always measuring things would be better than my guess). Scaling should not enter into it.

Gilles lowered the priority of this task from High to Medium.Nov 24 2014, 2:21 PM
Gilles subscribed.
matmarex subscribed.

Indeed, this is definitely not how uploading works. The upload process finishes and then the media transcodes are queued; we don't wait for them to be complete (they could take hours).