LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2008, 09:40 AM   #1
yajur
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Rep: Reputation: 0
Wink sreenshot via ffmpeg with help of 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
 
Old 08-22-2008, 10:01 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by yajur View Post
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.
 
Old 08-22-2008, 10:04 AM   #3
yajur
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
i need a php script that should take screenshot of video,with help of ffmpeg iam useing centino os,with cpanel
 
Old 08-22-2008, 10:34 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by yajur View Post
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.
 
Old 08-22-2008, 10:52 AM   #5
yajur
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 08-22-2008, 12:19 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by yajur View Post
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.
 
Old 08-22-2008, 12:21 PM   #7
yajur
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
ffmpeg -itsoffset -4 -i test.avi -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 test.jpg this command iam useing any help
 
Old 08-22-2008, 12:30 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by yajur View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM
problem with ffmpeg-php fandar Linux - Software 0 07-24-2008 12:38 PM
Problem with ffmpeg-php? UBdebian Programming 3 06-01-2008 11:25 AM
PHP: Adding ffmpeg-php without re-compiling? vxc69 Linux - Software 2 05-17-2007 04:47 PM
Problem executing a linux script from php that runs ffmpeg darkisolde Linux - Software 4 10-04-2005 07:43 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration