video2commons icon indicating copy to clipboard operation
video2commons copied to clipboard

Keep the encoded vp9 video to reuse if the commons API call fails

Open joakin opened this issue 4 years ago • 1 comments

I've been uploading some mp4 videos, and after ffmpeg runs and the video gets converted, in some of them (3 failed of 10) I've been seeing this exception:

An exception occurred: TaskError: pywikibot.Error: APIError: stashfailed: Internal error: Server failed to publish temporary file. [help:See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.]

When clicking restart, it seems the mp4 video is there, but it is re-encoded again with ffmpeg, which takes a lot of time and resources for a task that was just done.

Maybe the transformed video can be kept so that it doesn't need to be re-encoded when retrying?

joakin avatar Jun 02 '21 16:06 joakin

Hi! Is this still reproducible?

mikez-wmf avatar Dec 15 '25 16:12 mikez-wmf