Skip to content
This repository

Unrecognized Media files #346

Closed
kotedo opened this Issue June 14, 2012 · 8 comments

2 participants

Kai Janson Marc Worrell
Kai Janson
kotedo commented June 14, 2012

Hi guys,

I noticed that many different video file types are not recognized after they have been uploaded.

All the other options, like embedded and links to external sites are working fine.

—Kai

(http://media.railscasts.com/assets/episodes/videos/352-securing-an-api.m4v is a good example … try to upload it to zotonic.)

Marc Worrell
Owner

Indeed, the .m4v extension is not mentioned in the z_media_identify.erl file.
Currently we use a combination of ImageMagick, file and a list of extension to guess the mime type of a file.

Marc Worrell
Owner

According to our list the preferred extension for video/mp4 is .mp4

Marc Worrell
Owner

Two questions:

  1. Do you have any other extensions not being recognized?
  2. Are you using 0.8 or 0.9dev?
Kai Janson
kotedo commented June 19, 2012

Hi Marc,

I am using 0.9dev ... we need the bootstrap interface and I really don't want to bolt bootstrap onto 0.8 and then get busy again when 0.9 is official.

There were a lot of different movie types that were not recognized. There are .mov files, .avi and some more probably.
Is there a way that I could capture some binary information from the file(s) itself to help out in recognizing the correct file
type? I'd be happy to help if that's desired.

I also have an almost complete (or very big) mime type function in Erlang that I could share if that's helpful...

--Kai

Marc Worrell
Owner
Kai Janson
kotedo commented June 19, 2012

Marc,

Thank you! I'll be checking it out. If all fails I'll give you access to the files in question.

--Kai

Kai Janson
kotedo commented June 25, 2012

Hi Marc,

Any updates?

Viele Grüße
--Kai

Marc Worrell
Owner

Added an issue with spawgrid/mimetypes, as it is unclear what license they use.

spawngrid/mimetypes#11

Marc Worrell mworrell closed this in 321fd51 August 21, 2012
Mawuli Adzaku mawuli-ypa referenced this issue from a commit in mawuli-ypa/zotonic June 18, 2012
Marc Worrell Added .m4a and .m4v extensions. Issue #346. 6bd8fe8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.