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.
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.
edit
For nodeJS you will need to write your own node server application. The application then should be using socketIO and node-fluent-ffmpg which also has lame with it. The app could look like this
server:
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);
});
client:
<script src="/socket.io/socket.io.js"></script>
<script>
var firstFile = ABC.mp3;
var secondFile = XYZ.mp3;
var socket = io.connect('http://localhost');
socket.emit('mergeFiles', { firstFile: firstFile, secondFile: secondFile });
</script>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…