I have manually installed ffmpeg and required packages on CentOS 5.1(Final).
If I fire the command directly on server using putty, it converts video in required format but not able to run same command from PHP webpage using exec() function.
I checked exec() command permission and it is fine.
ffmpeg installation directory : /root/ffmpeg_build/
ffmpeg file path : /root/bin/
Please guide me what could be the problem.
Related
I would like to run ffmpeg.exe and process media files on Azure VM. Do I need to add the exe anywhere in the VM settings? I have copied ffmpeg.exe to Azure VM and trying to run a command, but ffmpeg.exe --help also not returning anything, no error either. Do I have to whitelist the .exe in order to run it on Azure VM?
If you are using a Linux image then one way would be directly installing the ffmpeg using package manager instead of the .exe file. Just run the following commands in the vm
sudo apt update
sudo apt install ffmpeg
Now if you have a windows server just make sure that you are in the folder where the ffmpeg.exe is located. If you want to run the ffmpeg anywhere on the server you will have to install you can refer this answer by the user - peanut_butter
I have successfully installed wp-cli on my remote server and created the "wp" alias. I use Putty to connect via SSH, and everything works just fine. First, I used a .user_bashrc file to set the alias with:
alias wp='/www/htdocs/w019d58a/wp-cli.phar'
The path is set in .user_bashrc using:
export PATH=/www/htdocs/w019d58a/:$PATH
However, when I tried to run wp-cli from a bash script, I got a "wp command not found" error. I contacted the support, and they recommended a symlink. So, I created a symlink using:
ln -s /www/htdocs/w019d58a/wp-cli.phar wp
Everything works but the installation process. I can, for example, install a plugin using:
#!/bin/bash
wp plugin install akismet
Unfortunately, I can't download WordPress via the bash script using:
wp core download --locale=de_DE_formal
I always get the error:
Error: Too many positional arguments:
Error: This does not seem to be a WordPress installation.
Pass --path=path/to/wordpress or run wp core download.
I tried to add the path using:
wp core download --locale=de_DE_formal --path="/www/htdocs/w019d58a"
No luck. I stil get the same error.
I can download and install WordPress directly from the console and do further operations using a script. But I can't download and install it from the script due to the path error.
Any ideas how to fix that?
I've just found out, that the download is working fine:
#!/bin/bash
wp core download --locale=de_DE_formal
It's the config create part that causes trouble:
wp config create --dbname=d123456 --dbuser=d123456 --dbpass=123456 --dbhost=localhost --dbprefix=wplcli_
I usually use Gstreamer in Linux and there I install it simply using the command
yum install gstreamer...
and then I can play an RTP stream by the command gst-launch-0.01 playbin2 ...
Now I need to do the same in Windows and I tried to download the installation application from this website and then I opened the command line and type the following command:
gst-launch-0.10 audiotestsrc ! autoaudiosink
and got this error:
'gst-launch-0.10' is not recognized as an internal or external command, operable program or batch file.
I know I am missing something like linking or something, but I don't know how to do it!
Do anyone have a good HOWTO step by step on how to install and try gstreamer in Windows?
First off, make sure your path variable points to where you installed gstreamer.
Secondly, you seem to have installed gsteamer-1.0, which is independent of 0.10.
Try running gst-launch instead of gst-launch-0.10
I have installed the hip-hop php on my ubunut server 12.4 now what i want to do is to point a directory to run all my file through hiphop
i have tried the command
"hhvm my_script.php"
it is working fine
but i want to run hip-hop in background so that all the file on my web server will be complied and run through hip-hop
Please do explain me how can i do this and if possible please post a detailed tutorial of how it will work and what changes i have to make it on my server
i refereed the git-hub link for installation
https://github.com/facebook/hiphop-php/wiki
i am newbie to ubuntu i am trying to install ffmpeg flvtool2 mplayer in ubuntu for php while using this command
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
i am getting the error as svn can't connect to host 'svn.ffmpeg.org':no route to host.
is there any http link to do this command and why i am getting the error
Please help me
FFmpeg switched from SVN to Git on 2011-01-19. See the FFmpeg Download page for more details, or HOWTO: Install and use the latest FFmpeg and x264 on Ubuntu for compile instructions.