Last modified: 2014-02-12 23:38:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47389, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45389 - UW should not try to upload Flickr videos (resulting in: "This file might be corrupt, or have the wrong extension")
UW should not try to upload Flickr videos (resulting in: "This file might be ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
https://commons.wikimedia.org/wiki/Fi...
:
Depends on:
Blocks: 43450
  Show dependency treegraph
 
Reported: 2013-02-25 22:21 UTC by Jean-Fred
Modified: 2014-02-12 23:38 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jean-Fred 2013-02-25 22:21:54 UTC
When given a set with videos, UploadWizard Flickr warns about being unable to generate a thumbnail, but agrees to upload the files.
(example: https://secure.flickr.com/photos/21345015@N06/sets/72157624125453278/)


This results in a broken file
(<https://commons.wikimedia.org/wiki/File:Cellules_aquatiques.jpg>)

Its extension is JPG, its MIME type (according to the API) is video/mp4.

Rename to.mp4 is not possible (fails with “The new file extension does not match its type”)

If relevant: TimedMediaHandler tries to transcode the file, and fails with errors:

'/usr/bin/avconv' -y -i '/tmp/localcopy_4fda164b5870-1.jpg' -threads 1 -skip_threshold 0 -bufsize 6000k -rc_init_occupancy 4000 -qmin 1 -qmax 51 -vb '512000' -vcodec libvpx -g '128' -keyint_min '128' -f webm -s 568x320 -an -pass '1' -passlogfile '/tmp/transcode_360p.webm636dbdaf1f79-1.webm.log' /dev/null

Exitcode: 1
Memory: 4194304

avconv version 0.8.5-4:0.8.5-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jan 24 2013 18:01:36 with gcc 4.6.3
[image2 @ 0x9b27a0] Could not find codec parameters (Video: mjpeg)
/tmp/localcopy_4fda164b5870-1.jpg: could not find codec parameters
Comment 1 Nischay Nahata 2013-02-26 15:33:31 UTC
Ccing Ryan to get his opinion,

I think the Flickr upload was meant to support only images currently as the button says "Add images from Flickr". So the best bet we have currently is to just disable videos. This can be done quite easily by just adding the media parameter as per http://www.flickr.com/services/api/flickr.photosets.getPhotos.html
Comment 2 Marco 2013-12-18 20:34:05 UTC
Due to the security vulnerability in chunked uploads being fixed (bug 48306), it is not possible to upload mp4 files with jpeg extension. 

Thus lowering priority and rephrasing summary

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links