How to generate thumbnail from a uploaded video using Imagine’s library - php

How to generate thumbnail from a uploaded video using Imagine’s library.
i want to generate thumb when i upload a video from backend. i m using sonata media bundle. they are using imagine library from generating thumbnails.

you can't do that, you need to use any video conversion library, it will help to generate image from video file.
Link: ffmpeg

Related

How to create a thumbnail for video file

I have been working on php for a while and i stuck at the point where i need to create thumbnail for video file using ffmpeg.
I looked up for same, but did not get any solution yet.
I found so many solutions to create a thumbnail from video file, but i want to create a thumbnail for video file.
EX. i will upload video file and image file and then this image file will be set as a thumbnail for a video.
Any solution .... if possible using ffmpeg then it would be great
Thanks in advance :)

How to create a WordPress gallery with videos, and allow sharing in Facebook

I have created a WordPress gallery by modifying the default WP gallery for images. It also includes a share/send to Facebook option.
Now I want to create a same gallery but instead with .mp4 files.
But there is no option of to create a gallery with .mp4 format in wordpress. Can anyone suggest how it can be done please.
Update:
Default WordPress gallery only accept images. I want it to accept .mp4 as well.
Cool Video Gallery is a Video Gallery plugin for WordPress with
option to upload videos, attach media files, add Youtube videos and
manage them in multiple galleries. Automatic preview image generation
for uploaded videos using FFMPEG library available. Option provided to
upload images for video previews. Supports ‘.flv’, ‘.mp4’, ‘.mov’,
‘.m4v’ and ‘.mp3’ video files presently.

Upload Image > Resize > Add Filter / Watermark > Download Image

May you please share any resourceful links I could use to achieve my userflow described in the title? I wish to create a facebook cover maker that adds a filter (a picture of a USA Flag) to the uploaded photo. After some research, I believe what I need is a PHP image resizer and watermarker and manipulation tool.
This is almost what I desire: http://www.adylevy.com/demo/imgUpload/
Visit website
Upload image
Image appears
Replace "Rotate" with "Filter XYZ"
A watermark appears
Download
This is what I was looking for: http://phpthumb.sourceforge.net/
Here is an alternative too: https://code.google.com/p/timthumb/

Creating Image with audio file and uploading to facebook

I have googled for image format that supports audio also. I came to know that gif won't support audio.We need to do it in flash. Is there any image format which holds audio also?
We can show image with audio in web page with little work around using audio and image tag in html5.
But we need to implement this in PHP(Forget about language now) to combine audio with Image and share to facebook ? Is this possible?
Upload to e.g soundcloud with image, that will give desired result, but its an audio file with image not vice versa, which is not possible.

Make uploaded video on youtube publicly

I m using Yii framework and I want to upload video directly to you tube from my website. For that,i have used
http://yii.hugphp.com/wiki/375/youtube-api-v2-0-browser-based-uploading/
Using this i am able to upload the video but it is giving the private access to uploaded video.I am able to play the uploaded video but anyone else can not view that video.
How can i make the video available publicly?
If you followed the file names in the tutorial, remove $video->setVideoPrivate(); in video.php

Categories