![]() |
ffmpeg work with PHP
i need to comvert mov, avi, and other video files to FLV on the fly. i hear that FFMPG does it but i cant find how it works
does any 1 know how does ffmpeg work with PHP or have any samples file? Thanks |
I worked with FFMPEG extensively about 2 years ago, and by far the best wrapper class I can recommend for use with FFMPEG is Yorsh's FFMPEG Wrapper Class. It is simply fantastic and will save you a lot of time! If you require any help with it, please just post a follow-up and I'll try my utmost to help you!
|
Thanks
This has beeb really helpfull I have been reading over the code and it seems self explanatory. I will play with it a bit more and Thanks again |
1 Attachment(s)
ok
i copy that code and save it in a file named ffmpegWrapperPHPclass.php that lives in the same directory as my index.php page. the code in my index is Code:
and i need help to upload the file i attach and converted into a flv. Thanks |
To convert the files what I did was constructed a command to run through FFMPEG. Which was:
Code:
ffmpeg -i "/home/adam/domains/File.avi" -s 430x256 -b 7000k -aspect 16:9 -ar 44100 -r 30 -ac 1 "File.flv"exec() that and that begins the conversion from AVI to FLV. |
Thank you for all your help.
Ok i am having problems calling the functions inside the class. I wonder if there is anything that i need installed on my server. I know that i can upload a file and this is what i am doing PHP Code:
|
| All times are GMT. The time now is 06:44 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0