Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. var command = "ffmpeg -i "+ input1+ " -itsoffset 40 -i " + input2 +" -filter_complex amerge -c:a libmp3lame -q:a 4 "+ output;
  2.  
  3. exec(command, function (error, stdout, stderr) {
  4. if (stdout) console.log(stdout);
  5. if (stderr) console.log(stderr);
  6.  
  7. if (error) {
  8. console.log('exec error: ' + error);
  9. response.statusCode = 404;
  10. response.end();
  11.  
  12. } else {
  13. // Do something
  14. }
  15.  
  16. });
  17.  
  18. ffmpeg -i 0.mp3 -i 1.mp3 -i 2.mp3 -filter_complex
  19. "aevalsrc=0:d=10[s1];
  20. aevalsrc=0:d=20[s2];
  21. [s1][1:a]concat=n=2:v=0:a=1[ac1];
  22. [s2][2:a]concat=n=2:v=0:a=1[ac2];
  23. [0:a][ac1][ac2]amix=3[aout]" -map [aout] out.mp3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement