Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Server not responding when I tried to convert uploaded video file(More than 100M) into mp4 format.I am using ffmpeg converter.its taking too much time to convert video file.
can any suggest how to fix this issue.?
the PHP-Instance, which is calling ffmpeg, stunning your Server. Its not a good idea to perform realtime Video-rendering.
i would handle this so:
users upload there videos via php-script videos are stored in a
folder named "toConvert"
a cronjob parsing this folder every 5 minutes and call ffmpeg for the job
when a job is done, make a recall to "jobReadyAction.php" for after action
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a website on which I allow users to upload videos. But I'm using the HTML5 video tag and only MP4 videos can be played. So I want to convert any type of video to MP4. I'm on a shared hosting account so I can't have FFMPEG or anything else installed on the server. Is there another way to convert videos without these tools?
If you can't installed FFMPEG then it's going to be challenging to solve this in your shared hosting environment.
Your best bet would be to look at a solution that allows you to offload the actual processing - either using something like Azure Media Services, AWS Elastic Transcoder, Ooyala, or ZenCoder. There are also simple hosted FFMPEG services (though not sure how established/reliable these are)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How I can host Media files like mp3 in a different server ?
I have a website for converting videos to audio.
I want to host this audio files in a different server, but I want to keep the codein the first server.
Is this possible?
For example, if the user finished the conversion, he will be redirected to the other server.
http://example.com/.... ===> http://serv55.example.com/.....
It sounds like what you want to do is have the first server which does the processing copy the file onto the 2nd server once it's finished processing.
The best way to do this (depending on your setup) would probably be using ssh to copy the files.
http://php.net/manual/en/function.ssh2-scp-send.php
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to create a backup script to automatically run 3 times: monday of every week,first day of 1 of each month,and once per 3 months.My logical thinking,isnt that good,so i need your help guys.The code has to be in php,and the easiest way is with if.
You would need to do a cron job or launchd to do the automation but you could have it run your PHP script without a problem. All it would do is a directory recursive iterator to copy and make directories in a backup location. PHP has a ZIP library, if installed on your server, to create compressed files if so desired. See this page. This could be as complex a you make it. You may want to store the files on a remote server which you could use the FTP features in php to send with.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is there a way in the server-side to execute once an operation instead of execute it every time when I sent a PHP request?
For example, I have an website that makes a lot of requisitions, but its independent from user or anything else, it just depends on the application running in the server with wich I'm willing to manage with my website.
So I want a way to just get the data that I need, processed by a script in the server not by every PHP request, i.e. The server will execute the only once and then I can grab the data with PHP.
As lonut suggested use cronjob (linux) or task manager (windows) to run you PHP task at specific intervals.
You can run standalone php script from the command line by using php path/to/your/script.php
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing an upload system...
what is the best method to shows most videos and audio format specially for smartphone device?
Is there any open source php scripts class do do this? I wana something like youtube.
Or a way to convert videos format...
Amazon has a service for transcoding video. https://aws.amazon.com/elastictranscoder/?nc1=h_l2_as and the AWS SDK has a PHP client for it.
Other option is (assuming you are using a Linux server) is to use ffmpeg and the PHP classes for it to do the transcoding. Of course, you'll want to use some sort of worker/message queue to perform the actual transcoding into the final format(s) you need for smartphones. Oh, and ensure that all the right codecs are installed for ffmpeg to work.