1

I am trying to create a media library and will have a component where anyone will be able to upload media .mp4 files that are stored locally on the client's pc.

I want to have a functionality where the user selects the file and Video/Audio metadata is loaded. Is there a way using Javascript/HTML5 to obtain this metadata like in the screenshot below?

File Properties

ChrisGeo
  • 3,807
  • 13
  • 54
  • 92
  • http://www.w3schools.com/tags/ref_av_dom.asp These will be the only thing you get from using the HTML5 ` – Abraar Arique Diganto Jul 24 '15 at 12:00
  • Regarding DOM properties, there are no such detailed [attributes in ` – dakab Jul 24 '15 at 12:14
  • I think it depends on the data inside the file. – putvande Jul 24 '15 at 12:23
  • Have a look [here](http://stackoverflow.com/questions/30072946/how-to-get-duration-of-video-when-i-am-using-filereader-to-read-the-video-file). Might be useful. Not sure if you can get all the information you want though. But you can certainly get duration and dimensions. – putvande Jul 24 '15 at 12:42
  • @ChrisGeo Having the same trouble. Want to find the frame rate present in the metadata. Did you manage to solve this? – João Pereira Dec 05 '16 at 18:12
  • @JoãoPereira No unfortunately I gave up on it – ChrisGeo Dec 07 '16 at 14:53
  • Found a solution, if you are still [interested](http://stackoverflow.com/questions/40980314/javascript-read-metadata-of-video-file). – João Pereira Dec 07 '16 at 15:04
  • Yes sure go ahead! – ChrisGeo Dec 07 '16 at 15:05

0 Answers0