Video format not supported.


I have updated to versión 1.3 of H5P, and then I have tryed creating a new interactive video.

The first problem that I'd got was that that I couldn't pass to step number 2, Adding interactions. The screen to add the video seemed to miss some styles as the buttons to go to previous and next steps where unformatted and only text could be seen.

So I decided to remove H5P plugin and reinstall.

Now, I can see the edition screen with the correct view in the buttons, but, after uploading a video (.mp4) I get the screen you see in the 1st attachement when trying to add interactions.

Tested in a Moodle 3.2.2+ (Build: 20170324)

Then, I went to other Moodle instance, (Moodle 3.3 (Build: 20170515)). There I tried to upload a file, but I've got the error of attachement #2.

In this last Moodle I updated the plugin and the libraries, but I did not reinstall.




icc's picture

I'm sorry to hear that you're having issues. I just tested the plugin on a fresh M. 3.3 site and everything worked as expected. I'm guessing that the file isn't uploading properly for some reason. This could be due to a size limit on the web server or PHP. Try using a smaller file just for testing, e.g. less than 2 MB. Also, you could check the variables upload_max_filesize and post_max_size in php.ini. Remember that post_max_size must always be larger than upload_max_filesize.

You could also test using an external file, e.g.


I've tested teh video you sent me. Being larger than my videos, I had no problem to upload it, so I think there must be something wrong with my videos or the application that generate them (Free screen video recorder).

Best regards.

icc's picture

Ah, yes that could also be it. If you're a little familiar with using command line tools you could download and try the ffmpeg/ffprobe to check the coding of the videos. There should be a good amount of guides on how you can do it, e.g.