I have a WordPress site which runs in a Docker container behind an nginx proxy container. I need to embed a small number of videos in the site, which total around 8GB. I looked into hosting them on Vimeo, but the site is part of a small academic project and we currently do not have the funding for an ongoing Vimeo subscription. So I have been researching the possibility of self-hosting the videos.
My intial thought was to bundle the videos into their own Docker container, and stream from there. I found this Docker container through Googling 'Docker streaming server', but I really have no idea if it represents a potential solution. I assume that we would indeed need some kind of server to stream the videos, and if so what kind of server? FFmpeg? Something like this?
you dont need to build up an extra container for the videos.
just upload them in a subdirectory of your WordPress instance.
you can use a video plugin for embedded videos:
https://wordpress.org/plugins/easy-video-player/
https://wordpress.org/plugins/wordpress-video-plugin/
or simply use the HTML5 video tag to link the source:
https://www.w3schools.com/tags/tag_video.asp
Related
I have a classified website pkwhistle.com that is leading multiple countries and has a huge collection of images media. Is there any way to store newly uploaded listing images automatically store outside WordPress and fetch back to my site. clasificadospr.com is the best example of my idea. Because this website is using service which I am actually asking about. It's using the "thumbor" service. Please help me in this matter so I can increase the speed of my website. More than 10thousand images on a website can kill speed.
Well, it's called hosting/loading your images from a CDN, and there are many providers that work nicely with Wordpress!
With 10.000 images you mostly end up with a premium solution such as WP offload Media from Deliciousbrains (highly recommended and I am not in any way affiliated to them, just love their products). They also have a free version.
You can hook it up with all the big assets storage providers (digitalOcean Spaces, Amazon's AWS)
And integration with WP is great, it syncs between the CDN and your Wordpress Library.
Alternatively, there are some free options, you can use photon from Wordpress, it does almost the same, but hosted on photon's servers. It comes with the Jetpack plugin.
Another free option is Cloudinary (they have a plugin as well). But it has a limited free plan.
Good luck!
I've looked a bit and seen a number of questions related to serving mp4, but I have not yet seen an answer to "How can I serve MP4 from Wordpress and/or Apache?" I believe it is possible as the twentyseventeen theme IIRC lets you host your own.
I am looking to host my own, if possible, after this question had an anchor linking to this blog post, and the custom generated minimized code did not work on this page on my site. Both that and the present homepage have the offered HTML solution but fail to do what is intended, namely hide related offerings like the (now retired) rel=0 parameter.
What, if any, options do I have to serve MP4 gracefully, with or without streaming, from Wordpress under Apache? I would ideally like something as graceful as under Youtube, but without related videos.
Thanks,
You definitively want to peek a look at the Plugins WordPress offers for video streaming. For example, Easy Video Player allows you to "embed both self-hosted videos or videos that are externally hosted using direct links".
It's just a one-liner. Can't get simpler than that:
[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4"]
As of functionality, it will work in Apache, since the webserver only transfers the video by HTTP and the playing occurs in the client side with HTML5. However, you must check that your hosting gives you enough bandwidth to stream content to all your visitors
By default, Wordpress provides a [video] shortcode. I'm trying to see if that will work, as a matter of using Wordpress default functionality.
I have used Contentful before to host content and access it in my application via REST. It works great however it is not free.
I am trying to find out if I can host my app's content similarly on Wordpress and access it in my app using its REST apis.
Does anybody know if we can and how? It is not that straight forward to figure out on their website.
PS: I don't care about the security about the website content.
wordpress has an embeded REST API, this can be done easily, check the REST API Handbook in the following url here: https://developer.wordpress.org/rest-api/
Building a local application which allows the embedding of YouTube videos through their standard iframe api. However, I am facing an issue where the video(s) have a domains blacklist in YouTube and although my application runs locally the videos don't play with the message
This video contains content from XXX. It is restricted from playback
on certain sites.
However, I want the video(s) to be playable in my application but not on the domains I have added in YouTube blacklist.
Is there a way for my application to authorise itself to play my videos but without loosing the black listed domains?
The block embedding content has no option to allow file:/// as a playback location so I am hoping for a programmatic way around it.
Thanks in advance,
George
I have a wordpress site, and it has more that 30k posts.
Every post has own feature image, and each feature image has 10 responsive sizes.
#10076 post has 13 thumbnails
So there are about 300k image files, and this reaches to the File Usage Limit(inode limit) of hosting service.
File Usage Indicator
How can I reduce the number of thumbnails?
For example, when we use 2~3 thumbnails, we can store 120k~180k posts.
Well, are there any other hosting services which can store more than 300k files?
Sure, it is possible. There are several plugins in the WP repository that will automatically push uploads to S3 or some other CDN (e.g. WP Offload S3 Lite).
But the biggest challenge you'll face is in migrating the huge collection of images you already have. Anything you run from a web browser will almost certainly die trying. WP-CLI is the only real option for large-scale maintenance tasks. Take a look at S3-Uploads.
Alternatively you could push files to S3 manually and dynamically rewrite media URLs in WordPress by hooking into post_thumbnail_html or some such. You could build a cachable "does this exist?" check into your filter so it only rewrites image URLs that can actually be found at Amazon.
empty your trash folder in File Manager and file usage will drop significantly.