video2commons icon indicating copy to clipboard operation
video2commons copied to clipboard

Is there an upper limit for the size of files to be converted?

Open OpenGreenStreet opened this issue 1 year ago • 13 comments

I've been waiting 24 hours for two movies (2.5 and 3.5 GB) to be finished that won't finish... I seem to remember that 2GB is somehow a limit, but it is not mentioned?

See also: https://commons.wikimedia.org/wiki/Commons_talk:Hochladen#%22Auf_diesem_Wiki_sind_Dateien_mit_der_Endung_%E2%80%9E.MP4%E2%80%9C_nicht_zul%C3%A4ssig.%22

OpenGreenStreet avatar May 27 '24 05:05 OpenGreenStreet

video2commons

OpenGreenStreet avatar May 27 '24 05:05 OpenGreenStreet

Also have two items stuck at a "Your task is being aborted..." message

devsikander avatar May 30 '24 00:05 devsikander

In principle, my experience has been good. But there seems to be a size limit. If so, where is the limit and why is it not indicated?

OpenGreenStreet avatar May 30 '24 15:05 OpenGreenStreet

Actually it depends on the bitrate. With the current setting (crf=20), it tends to create files with a high Mbps (megabit/s) quality. So if the original file is already of a high quality, it won't increase the file size, but it will if the file is of a low quality.

Yannf avatar Jul 04 '24 13:07 Yannf

@Yannf Okay, thanks for the feedback. How long (minutes) or large (Mbyte) can an MP4 be if the bit rate is 20000 kBit/s?

OpenGreenStreet avatar Jul 06 '24 17:07 OpenGreenStreet

The bitrate is an information about the quality. The size of the video will mainly depend on the length. Example: VP9, length 1 h 18 min 6 s, 1,424 × 1,080 pixels, 4.74 Mbps overall, file size: 2.58 GB, or AV1, length 24 min 18 s, 1,440 × 1,072 pixels, 2.26 Mbps overall, file size: 393.09 MB.

Yannf avatar Jul 06 '24 20:07 Yannf

@Yannf thanks, the real question that interests me is: where is the limit at which a video is too large for reliable conversion?

In my opinion, it would be important to specify this limit or to cancel the upload if the limit is exceeded. (This way, the user would not have to start a pointless attempt and wait uselessly/endlessly).

OpenGreenStreet avatar Jul 07 '24 04:07 OpenGreenStreet

There is no fixed limit, but in my experience, the resulting videos are 2 to 3 times the size of the MP4 original ones. So videos smaller than 1 GB are always OK, and I could not upload videos bigger than 1.7 GB. In between, it depends. I managed to upload one 1.6 GB video, while several 1.3 GB videos failed. Once the 4 GB limit is removed (hopefully soon, replaced by a 5 GB one), bigger videos could be uploaded.

Yannf avatar Jul 07 '24 13:07 Yannf

@Yannf : Thank you again for your feedback. Exactly, that's what I mean. I would very much like these experiences to be displayed as a note when uploading.

OpenGreenStreet avatar Jul 07 '24 14:07 OpenGreenStreet

New code deployed, can you please try again?

don-vip avatar Jul 25 '24 19:07 don-vip

First attempt. I am just about to start a second attempt

  • https://commons.wikimedia.org/wiki/File:20240801_xl_194438.video2commons.toolforge.org.error.MP4.3,42GB.jpg

OpenGreenStreet avatar Aug 01 '24 17:08 OpenGreenStreet

@don-vip Thank you very much for your effort. I would be very happy if it were now possible to convert large videos. The conversion is now running: 20180404 xl P1000739-Spaziergang-durchs-Annatal-oben-von-Alte Schlagmühle-zum-Schwanenteich-April-2018.convert.test Best regards

OpenGreenStreet avatar Aug 01 '24 18:08 OpenGreenStreet

@don-vip Unfortunately, the conversion failed. I have tried to document this with screenshots (see here: https://commons.wikimedia.org/wiki/Category:Commons.toolforge.org.error)

OpenGreenStreet avatar Aug 02 '24 18:08 OpenGreenStreet