MP4 Upload issue to interactive video in H5P


I am attempting to upload MP4 video file to a H5p interactive videos within WordPress. The file appears to upload as the % increases to 100 but then H5P throws this error: "File Upload Error: Invalid video file format. Use mp4 or webm.

Has anyone else come across this or found a solution?



falcon's picture

That was strange. Could you provide a link to the video file so that I may try it on my WP?

Exported a video from Premiere CS5 into mp4 format and tried to upload. After a while I recieve an error saying: ReferenceError: err is not defined. have tried with numerous videos in mp4 format from very differens sources. Only eventually managed to upload a testvideo from downloaded from Youtube, but my actual videos are not working. 

Have attached a screen dump of the error. (NOTE: tried to upload a JPG file of the screen dump, but recieved error that only "jpeg" files could be uploaded so had to rename the file - seems a bit too constrained?)

Apologies for the delayed response. We resolved our issue after a lot of frustration. It appeared after putting the vidoes through handbrake to compress them the files were corrupting and although they appeared to be MP4 and played locally as MP$, H5P wasn't seeing them as MP4s any longer. Renaming the files and checking the file extension was correct seemed to resolve the issue we experienced.


I have successfully used H5P in my Moodle site and it works fine. When i Have finished to add qquestions and download the file, the extension is in .h5p. Is there a way to download the same file (or convert the file from .h5p to.mp4) in MP4 format so that I use the video in other platforms?

Thank you in advance.


tim's picture

Hi Lucian, that isn't possible and probably will never be. The mp4 file format doesn't support interactions. Have you tried embedding that H5P into your other platforms? It should work the exact same way. 

First, I have uploaded video for mp4 with less size , and it displayed Quality1, and then when i moved for 2 step it Says video doesn't support ,but if i place youtube link of same video it support.

BV52's picture

Hi jaggu,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!


i want to convert h5p to mp4 

otacke's picture

Hi Ayman!

There's no export option, and it probably doesn't make much sense, because you'll lose the interactive elements of an interactive video -- you'll end up with a normal video. If you still want to do that, you'll probably want to use some software that can capture your screen such as OBS.


We are trying to upload an mp4 video (produced with an Android Mobile) in H5P. After Video Upload the errormessage "invalid Format" is displayed. We checked this video in the Windows Media player, where it runs fine. We use the current Wordpress version on a Windows 10 laptop with XAMP.Youtube Videos (links) work in HP5. I saw in this threat that we are not alone with this Problem...but i can't find a solution for it. Can you help us?Before we start with video recordings: what exactly are the requirements for the video format?How can I solve my problem with the mp4 videos?



BV52's picture

Hi Andreas,

Have you tried uploading the file here in Would it be possible to provide us a copy of a video that you are having issues with?


Venkatesha Vaidya L's picture

It is not possible for me to upload my wmv file to create my interactive video for my personal use in the class.pls suggest ways

BV52's picture


I'm afraid WMV files are not yet supported. What you can do in the meantime is to convert this to MP4 or WebM.


Is it possible to convert mp4 to 5hp?  My lms plartform uses 5hp. I do not need the interactions.  I simply need to play the video and be able to restrict fast forwarding. One work around is through the 'interactive video editor' but that has a size limitation on 16mb.  I need at least 128mb. Any ideas?   Thank you 

BV52's picture

Hi Jaybergnv,

The 16MB limit is only for uploading files in If you host your own content using one of the 3 supported plugins you can set the upload limit much higher.

For the other question no it is not possible to convert MP4 to H5Ps. MP4 is a video file format while H5Ps are are a collection of mostly javascript files that works together to enable us to create interactive activities.


Hi there, 

I am running the plugin on a WordPress site managing it from a Mac. Apparently some of the videos I want to upload are too big. How can I set the upload limit higher?

Thank you and kind regards

BV52's picture

Hi semper-fidelis,

The upload limit is not controlled by H5P. It's either controlled by your WP settings or web hosting. Please check with your provider on what is the upload limit and if your file/s does not exceed this I suggest that you check your Wordpress settings.


BV52's picture

Hi inboxcarrillo,

Would mind elaborating the issue? What error are you getitng?