Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
| # To host on root path just use "<Location />" for http://mydomainname.in | |
| # To host on non-root path use "<Location /myreactapp>" for http://mydomainname.in/mypath | |
| # If non-root path, don't forgot to add "homepage": "/myreactapp" in your app's package.json | |
| <VirtualHost *:80> | |
| ServerName mydomainname.in | |
| DirectoryIndex index.html | |
| DocumentRoot /var/www/html | |
| ErrorLog ${APACHE_LOG_DIR}/error.log | |
| CustomLog ${APACHE_LOG_DIR}/access.log combined |
| // Create a Promise that resolves after ms time | |
| var timer = function(ms) { | |
| return new Promise(resolve => { | |
| setTimeout(resolve, ms); | |
| }); | |
| }; | |
| // Repeatedly generate a number starting | |
| // from 0 after a random amount of time | |
| var source = async function*() { |
| $ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
| $ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
| $ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf | |
| // In case you got the issue | |
| // wkhtmltopdf: error while loading shared libraries: | |
| // libfontconfig.so.1: cannot open shared object file: No such file or directory | |
| // | |
| // run the command below: | |
| $ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1 |