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 :)
Related
I'm trying my first CodeIgniter E-learning project that a teacher can upload their video file, and show it on lesson page.
The problem I was thinking about is if our customer has AVI video files and wants to upload them and show them on webpage, but most browsers do not support an AVI file fromat.
So how can I solve this problem?
I tried videojs but it doesn't work, Is there any suggestion?
I'm thinking about 2 options
Is there any plugin/software that can display AVI video and embed it on webpage?
Create convert process to convert AVI to MP4 => I think it will more complicated.
I found another option to do that: Use Google Drive API to upload and generate preview link to show. It worked!! If you guys have another effective way please let me know!
I think for embedding avi video. That is previously answered in how to embed an .AVI in html?
As for converting video. I think you can use something like ffmpeg or avconv for converting video in the backend to convert it first and then embed it or do it in Flash or in html video tag
I have using Plupload to upload images, but now I need a thumbnail of the images too.
I know how the resize works in Plupload but I need it to upload the original file, then the RESIZED thumnail of the image, so I need both of them.
My final aim is to get the original picture and a thumnail for ex.:
picture.jpg
_picture.jpg
The _ means that is a thumbnail.
I have tried many ways (for ex.: cwUpload worked well, but I cant call it with the pictures)
I have tried to make duplicaton var uploader2 = new plupload.Uploader({..}) and make only the resize but not worked.
My idea is was) to combine a plupload upload then a plupload resize upload somehow.
Can you help me a bit how to reach it?
Thanks!
You should accept uploading the original image and resize it afterwards, if the upload was successful.
I've implemented such a function in my own project.
Look here: https://github.com/OpenBookCase/OpenBookCase/blob/master/lib/API.php#L389
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.
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
I'm new in CakePHP and trying to learn but I don't understand this part very well..
I'm using this CakePHP Upload plugin to upload images for users(avatars) and using imagick it resize image to certain sizes(thumbs)...
I follow Upload plugin instructions for uploading image. I manage to store image file and image directory in database. So column photo in database would be (imagename.jpg) and photo directory would be userid,
for example (35). Image also appear in files/user/userid/imagename.jpg
Now may be it's funny but how I output this image and display in view file ? Also is there possibility to randomize file name ? (so the file name is not same as uploaded)
to view your upload in view files of CakePHP
you write in ctp files like
$html->link($html->image('files/user/".$userId."/".$ImageName."', array('alt'=>"User Image", 'border'=>"0"))
,'#',array('id'=>$userId, 'escape'=>false));
let me know if i can help you further,