Auto set feature image in Wordpress - php

I'm looking for php script that set the feature image (of the post) from the video embed code.
Untill now, I saw only plugins that support specific websites. I'm looking for code that allow auto set feature image from any video embed code from any website.
Is that possible ?

A generic implementation is impossible, because there are so many different players and platforms around.
As an example, YouTube have an API that allows you to grab the same screenshot they use for their videos. Vimeo also have an API that is similar, but not the same. Then look at LiveLeak, who don't have a formal API at all, or any of the thousands of third-party video players that sites use. Many even use their own video player (think BBC and other large news sites).
The best you could hope for is a plugin that implements all of the big video sites.

Related

How to do a video player frontend for videos stored in server?

I am working on a project where I need to come up with a web UI for user-training videos. I have a collection of videos stored on a server as mp4 files. Since these videos are internal to the company, I could not share it on public sites like youtube/vimeo. That is the reason I am trying to come up with a simple interface to display the videos as thumbnails and open a pop-up player.
How can I do that with PHP? Any suggestions would be very helpful.
For thumbnails you can take a deeper look into ffmepg and ffprobe. You can make Screenshots and extract info with the help of it.
Get ffmpeg information in friendly way
With the help of shell_exec you can start it with php.
You could do a Cronjob, which saves the information of new videos in the Database, so the Frontend User, can get the information quickly without waiting 5 seconds or more for pageload.
For the Video it self, i think you should google for
html 5 video control
Take a look into this Blog Post:
http://blog.teamtreehouse.com/building-custom-controls-for-html5-videos

Add title screen to video on upload to YouTube via API

I currently use the YouTube API to allow website users to upload their videos through the site straight to our YouTube channel (adding META data etc) at the time of upload.
Ideally we would like to dynamically add some sort of title, watermark, opening screen or an image to the beginning and / or the end of the video. Essentially we just need any method of adding something to the video which adds some form of branding to it (even if just a plain company name at the bottom).
The uploads are from internal users (i.e. secure and trusted) and there is not an excessive amount so I would be happy to upload to our server first (instead of straight to YouTube), manipulate the video then upload to YouTube.
The site runs PHP on a dedicated Linux / Apache server setup.
Any suggestions greatly appreciated
Thanks
Here's a really quick and easy one: Invideo Programming. Invideo Programming lets you add a small logo to a corner of the video, or promote another video in a different corner, or both.
You can add this to the API via the Channels resource as as invideoPromotion attribute. We recently did a show on Google Developers Live explaining how to configure this on both the web UI as well as in the API. Check it out - I think this'll do what you need.

Play two embedded youtube videos synchronized

I would like to add on the webpage two embedded youtube videos: one with song clip (LEFT) and the other with song lyrics or translation(RIGHT). The RIGHT video is made by me, so if I play them offline in two windows the lyrics are synchronized with clip. The videos are uploaded then to youtube.
The question is: how can I "join" these two videos online, so user will have just one play/pause button, and if he jumps for example to 0:12 - both videos jump to 0:12. Is that possible?
I can't make a one video with both clip and lyrics, as might someone suggest. The RIGHT video with lyrics can be in different languages, while the song clip is the same.
Thanks
You could do this with xuggler. http://www.xuggle.com/xuggler/
You would need some bits on the server to do the work and stream the results.
Xuggler is quite fast assuming you have all the videos available at request time. If you are forced to dl them from YouTube and then combine them it might get more exciting.
as of now an incomplete answer. to be completed when plugin described is built.
You could build this with Acorn, a media remixing javascript library.
The capabilities to do this (side-by-side videos) is not there yet out of the box (I've added an issue to the acorn-player repository).
All that needs to be done is build a shell (acorn-player plugin) that embeds two pieces of media side by side, and let acorn do the youtube api play-syncing heavy lifting.

Image management system

I have a user that wants to be able to upload photo's to his website, and then be able to choose which album he wants them to appear in. I already have the albums hard coded on the site, but he wants the ability to add more.
Does anyone know of a script or cms or something that this can easily and cheaply be implemented or am I going to have to develop all of this from scratch?
Gallery 2 is my go-to. It's powering several large website's galleries around the web.
If you're very picky (as several of my clients have been) you can query image information out of the DB and build your own front-end. I've done several photographer's websites this way. There is even a desktop upload tool that can be downloaded if desired.
There is no cost at all.
This seems to be the cheapest and most complete solution I found. Slick Gallery
This one also seems like it would work well
PhotoCMS
For Image management I have used and recommend http://coppermine-gallery.net/

Making a video sharing site, need a videoplayer

I want a videoplayer like youtube's on my site. What should I look for? I'm making a video sharing site in PHP with MySQL.
Should I look into flash? Maybe you know some good video players that are easy to implement on a site.
uff you have lot of work to do.
FlowPlayer its an opensource flash based player can you customize and use it in your site
Have you gone through these http://www.vidiscript.com/, http://www.phpmotion.com/ and http://osshare.sourceforge.net/. These are clones of youtube-like video media sharing sites. The source code is freely accessible I guess - you can get some help from it.
Flowplayer is by far the best I've found. It has a very nice Javascript API that lets you manipulate the video player in every single way you could possibly want.
What you are looking for can be searched for on Google for as either an "flv player" or a "flash video player component". E.G. a video player skin or player with media list.

Categories