Video format not supported — localhost

I recently ditched MAMP for Mac-localhost, where I had H5P working well, for new localhost setup (installed with HomeBrew). Now everything works well except H5P video uploads, which invariably produce the error "Video format not supported" after upload appears to be successful.

Console shows 404 error for  http://wp.localhost/wp-content/uploads/h5p/editor/videos/files-5cb5e2950...

phpinfo shows

upload_max_filesize: 2000M
upload_tmp_dir: none
post_max_size: 3000M

Some other setting I've missed?

Thx.

Bruce

Content types: 
BV52's picture

Hi Bruce,

Would you mind attaching a screenshot of the browser console error?

-BV52

See attached.

I noticed when I set out to reproduce the error that there is an update to the interactive video package available. When I tried to install the update, I got this error: 

Failed to download the requested H5P.
Destination directory for file streaming does not exist or is not writable.


Seems like it might be a relative of the 404 error I got when I tried to add interactions to the video I uploaded. 

Would a new install of H5P be a good next move?

B.

Attachments: 
BV52's picture

Hi Bruce,

You are right it looks like they are related to each other. There are 2 usually suspects with these types of error one is permission settings and the other .htaccess file may be configured incorrectly or is corrupted. Please check these 2 as uninstalling H5P may not really solve the problem.

-BV52

This is a local (Mac) install. 
permissions on uploads/h5p are drwxrwxrwx
htaccess contains only one code block, the standard WordPress stuff.

I still see the link to an updated version of inteactive video content type. But nothing happens now when I click on it.

Bruce

B.

 

 

In case someone runs into the same issue.

This turned out to be an Apache permissions problem — which I only discovered by reinstalling H5P :-( 

The directory wp-content/uploads/h5p was not writable because, after moving the localhost website to a new location,  read-write permissions on that directory were applied to myself and staff, not _www.  However,  in a the fresh h5p install, permissions were correctly granted to the _www group. Working now.

B.

BV52's picture

Hi Bruce,

I'm glad this is working for you now and thank you for getting back to us with your solution.

-BV52