Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Simple answer: No. Neither Javascript nor HTML5 have the power to do this. You will need server side tools to do this. For example ffmpeg and LAME in case of MP3.</p> <p>If you really need to do such manipulations on a HTML basis, the only way is to bind these programms to a php script or NodeJS server that then starts a job to do what you want to do. Nevertheless you would have to write bash script or cronejobs to do so.</p> <p><strong>edit</strong></p> <p>For <a href="http://nodejs.org/" rel="nofollow">nodeJS</a> you will need to write your own node server application. The application then should be using <a href="http://socket.io/" rel="nofollow">socketIO</a> and <a href="https://github.com/schaermu/node-fluent-ffmpeg" rel="nofollow">node-fluent-ffmpg</a> which also has lame with it. The app could look like this</p> <p><em>server:</em></p> <pre><code>var io = require('socket.io').listen(80); var exec = require('child_process').exec; io.sockets.on('connection', function (socket) { socket.on('mergeFiles', function (data) { var firstFile = data.firstFile; var secondFile = data.secondFile; //do ffmpg stuff by executing a shell script execString = "./yourscript.sh " + firstFile + " " + secondFile function puts(error, stdout, stderr) { sys.puts(stdout) } exec(execString , puts); }); </code></pre> <p><em>client:</em></p> <pre><code>&lt;script src="/socket.io/socket.io.js"&gt;&lt;/script&gt; &lt;script&gt; var firstFile = ABC.mp3; var secondFile = XYZ.mp3; var socket = io.connect('http://localhost'); socket.emit('mergeFiles', { firstFile: firstFile, secondFile: secondFile }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload