Is there a jQuery plugin that could generate video preview thumbnails even before user uploads it? I notice that Facebook could do so but do not know any plugin that has the same functionality.
Try uploading a video on facebook, notice that even before you publish it or the progress bar is still in progress, preview images of the video are available already.
I tried searching the net and most answers pertain to installing ffmpeg having this as a reference.
I haven't tried it yet but looking into it, it seems that the video should be uploaded first before it could generate a thumbnail. But I what I want is a preview of the thumbnail to be generate BEFORE the video is uploaded (similar to facebook).
This is so that I have the transaction to select a video and generate a preview thumbnail at the same time even before the video is published on the server. Once I hit the "publish" button, it will upload the video to the server, upload/save generated preview thumbnail, save info to database at the same time.
I don't think you have to download a video and make its thumbnail. You can make a request via Facebook API to get it. You just have to precise that you want the attribute "picture" in the result; this attribute contains the path of the thumbnail of the video. You will find more explanation by following this link: https://developers.facebook.com/docs/graph-api/reference/v2.1/video/
Related
Hi I am looking to insert a clickable image in a video. to make a video interactive.
Basically I have a form with 3 fields upload-video, upload-photo and a URL. What I am looking for is that when the user uploads these 3 fields the image will become the part of the uploaded video and upon clicking that image it will open a URL that was added in the form.
after that I have to provide the embed code of that interactive video to users.
Is there any way to achieve that functionality with php? I have looked into ffmpeg but I am not sure that it will do exactly what I need.
I am working on a site where the admin inserts the embed code in the backend and the video is played on the frontend. I want to ask if it is possible to have preview(multiple images) for the video as the video is not in the database or on the server, we are just using the embed src for the video.
for example:
<iframe src="**abc.com/embed**" some parameters></iframe>
Now i copied the src and inserted into the database. I want to have the preview of the video? Is it possible..???
I hope i have cleared myself.
Help will be appreciated.
Usually I have a video file field where I upload the video and configure display to be open with JWPlayer. It then opens as JWPlayer when I output it in the template (node.tpl.php)
But now the problem is that in some cases, I'll get a link like
http://www.mytest.com/videos/myvideo.mp4
which I want to play in JWPlayer too. Is it possible that I can play a video link directly in JWPlayer?
Thanks.
I have various video hosts that I like to use on my website. I am trying to code a way to retrieve their video thumbnails.
Most of these video hosts actually have a frame of the video on display before the video starts to play. If it's possible to even get that frame as the thumbnail, that would be great. Most if not all of these video hosts use iframes for embedding.
I am looking for a fairly generic way of retrieving thumbnails for all video hosts that display some type of frame from the video once the video is embedded. If that frame can somehow be retrieved and then turned into an image that can be used that would be amazing. However, I am not exactly sure how to go about doing that.
You'd have to have the actual binary file data. If you have that access, install ffmpeg-php on your server and use this question for further direction: ffmpeg to get screenshot
Depends on the site.
For example, if you have a youtube video
http://www.youtube.com/watch?v=AC2FKbyC28k
then its thumbnail is at
http://i2.ytimg.com/vi/AC2FKbyC28k/mqdefault.jpg
I found this out by right clicking the image thumbnail, opening it in a tab and inspecting the url, so I'm sure you can do this exhaustively for every site ;)
It sounds like what you want is oEmbed, which is supported by most popular video hosting sites (Youtube, Vimeo, ...). There are several PHP oEmbed libraries, which come preconfigured with oEmbed endpoints.
What oEmbed allows you to do is to make a request to the provider (Youtube for example) with the video URL. It will return a JSON response with information about the video. Both Youtube and Vimeo return a thumbnail_url element in the JSON.
I am working on a Facebook app that uploads a video to your Facebook Timeline. I would like to be able to tag the user's friends in the video, since I am processing the video to include their profile pictures. There are never more than 4 friends, and they appear in the video, so that shouldn't be violating any spam rules.
Is there a way to automatically tag the people in this video? I am uploading the the /videos endpoint using Curl in PHP, and getting the video id back as a response, and attempting to POST to /video_id/tags to tag users, but it isn't working. Is there a way to handle this?
Thanks,
Esa
Right, seems it is not possible to tag an uploaded video by POSTing to https://graph-video.facebook.com/me/videos (either when the video is uploaded with tags= or tags[]=, or after the video has been uploaded).
As a workaround, you could think about using an Open Graph action and tagging the action. For example, "Esa uploaded a video" and add tags for Esa's friends. This would also give you OG Aggregation stories in the user's timeline.
Info on tagging an OG action:
https://developers.facebook.com/docs/opengraph/actions/#taggingpeople