Advertisement
phillipk

Untitled

Jan 29th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. ffmpeg
  2. -i video_and_audio.ts
  3. -i audioOnly1.ts
  4. -i audioOnly2.ts
  5. -i audioOnly3.ts //four inputs
  6. -y
  7.  
  8. -filter_complex
  9. [0:a]aformat=sample_fmts=fltp[mid0]; //get just the audio from the first input (the video+audio)
  10. [mid0]adelay=1[nar]; //start 1st input's audio at 1 millsecond...
  11.  
  12. [1:a]aformat=sample_fmts=fltp[mid1]; //get audio from 2nd input
  13. [mid1]adelay=1[aud1]; //start 2nd input at 1 millisecond...
  14.  
  15. [2:a]aformat=sample_fmts=fltp[mid2];//get audio from 3rd input
  16. [mid2]adelay=1745300[aud2];//start 3rd input at 175...
  17.  
  18. [3:a]aformat=sample_fmts=fltp[mid3];//get audio from 4th input
  19. [mid3]adelay=1758700[aud3]; //start 4th input at 175...
  20.  
  21. [nar][aud1][aud2][aud3]amix=4[out] //mix all 4 pieces
  22.  
  23. -map 0:v -map [out] //take 0 stream's video, and filter's output
  24.  
  25. -profile:v main
  26. -level 3.1
  27. -movflags +faststart
  28. -c:a aac
  29. -b:a 64K
  30. -f mp4
  31. output.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement