Page MenuHomePhabricator

Add video encoding to
Open, LowPublic


Originally from:
Reported by: multichill
Created on: 2010-07-13 18:09:00
Subject: Add video encoding to
Assigned to: multichill
Original description:
For video's like for example

This is so that I don't forget it. Feel free to "steal" this bug ;-\)

Version: unspecified
Severity: enhancement
See Also:



Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:17 AM
bzimport added a project: Pywikibot-Scripts.
bzimport set Reference to bz55062.
bzimport added a subscriber: Unknown Object (????).
Legoktm created this task.Oct 5 2013, 4:18 AM

multichill, I don't understand the request.

Dman, that's an old one! At the moment it's possible to upload images from Flickr, but Flickr also contains video's. Try uploading one of those (that will fail). The bot should be able to detect that it's a video and than transcode it on the fly to ogv (or some other video format).

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 3 2015, 4:14 AM
jayvdb moved this task from Backlog to Harvesting on the Pywikibot-Commons board.Sep 3 2015, 4:30 AM
Restricted Application added a subscriber: Avicennasis. · View Herald TranscriptFeb 6 2016, 9:43 AM

I think this is an example of how a failure looks like:

Uploading file to commons:commons...
Reading file
Traceback (most recent call last):
  File "", line 257, in <module>
    if not main():
  File "", line 250, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "", line 119, in run_python_file
  File "./scripts/", line 547, in <module>
  File "./scripts/", line 539, in main
    removeCategories, autonomous)
  File "./scripts/", line 349, in processPhoto
  File "/home/7/federico/pwb/pywikibot/tools/", line 1616, in wrapper
    return obj(*args, **kwargs)
  File "/home/7/federico/pwb/pywikibot/tools/", line 1737, in wrapper
    return obj(*__args, **__kw)
  File "/home/7/federico/pwb/pywikibot/", line 399, in upload_image
    return self.upload_file(self.url)
  File "/home/7/federico/pwb/pywikibot/tools/", line 1737, in wrapper
    return obj(*__args, **__kw)
  File "/home/7/federico/pwb/pywikibot/", line 423, in upload_file
    file_url = self.read_file_content(file_url)
  File "/home/7/federico/pwb/pywikibot/", line 148, in read_file_content
    infile =
  File "/usr/lib/python2.7/", line 213, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/", line 457, in open_https
    return self.http_error(url, fp, errcode, errmsg, headers)
  File "/usr/lib/python2.7/", line 381, in http_error
    return self.http_error_default(url, fp, errcode, errmsg, headers)
  File "/usr/lib/python2.7/", line 386, in http_error_default
    raise IOError, ('http error', errcode, errmsg, headers)
IOError: ('http error', 302, 'Found', <httplib.HTTPMessage instance at 0x388d962f8c0>)
CRITICAL: Exiting due to uncaught exception <type 'exceptions.IOError'>
Restricted Application added a subscriber: Cyberpower678. · View Herald TranscriptJan 6 2019, 9:23 AM