ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i need sreenshot via ffmpeg with help of php,iam haveing forum when any one upload video,i need to generate screenshout with help of php script please any one give the script,i now how to take screenshout with ssh command but i need script in php
i need sreenshot via ffmpeg with help of php,iam haveing forum when any one upload video,i need to generate screenshout with help of php script please any one give the script,i now how to take screenshout with ssh command but i need script in php
Your question is very hard to read and understand, please write more clearly.
If you already have the script that can take the screenshot, call it from PHP with system or exec.
i need a php script that should take screenshot of video,with help of ffmpeg iam useing centino os,with cpanel
Right. Please read the previous post more closely. You have already said that you have a WORKING SCRIPT, that you can execute via an SSH session, indicating that it runs from a shell.
Use the PHP exec or system calls, to call your existing script, and do what you need to do.
i dont have any workeing script,i haveing only ssh command ,so that my vistor cant take screenshot i need php script that should take screen shot of video iam newbie so help me,i installed ffmpeg-php
i dont have any workeing script,i haveing only ssh command ,so that my vistor cant take screenshot i need php script that should take screen shot of video iam newbie so help me,i installed ffmpeg-php
If you have the command, that's all you need. Put the command into a file, do a chmod 755 on it, and call it from PHP. That's it. If you have code that you've written to do this, post it, along with your error messages, so we can help you, but we're not going to write your scripts for you.
ffmpeg -itsoffset -4 -i test.avi -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 test.jpg this command iam useing any help
Read the previous post. Put this command into a file. Set that file to be executable. Run that file from your PHP script.
If you need help on how to write a shell script, try Google. Lots of examples out there. Check out http://www.php.net for information about how to call a shell script from a PHP page.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.