Advertisement
phillipk

Untitled

Jan 30th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. ffmpeg
  2. -i audio_and_video.ts
  3. -i audio_only1.ts
  4. -i audio_only2.ts
  5. -i audio_only3.ts
  6. -y
  7. -filter_complex
  8.  
  9. //get audio from first input (and delay 1 millisecond)
  10. [0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[mid0];
  11. [mid0]adelay=1|1[nar];
  12.  
  13. //get second input (and delay 1 millisecond)
  14. [1]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[mid1];
  15. [mid1]adelay=1|1[aud1];
  16.  
  17.  
  18. //get third input (and delay it many milliseconds)
  19. [2]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[mid2];
  20. [mid2]adelay=1745300|1745300[aud2];
  21.  
  22.  
  23. //get fourth input (and delay it many milliseconds)
  24. [3]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[mid3];[mid3]adelay=1758700|1758700[aud3];
  25.  
  26. //put it all together:
  27. [nar][aud1][aud2][aud3]amix=4[out]
  28.  
  29. //put the first input's video and then the filter (audio)
  30. -map 0:v -map [out]
  31.  
  32. //rest shouldn't matter I don't think:
  33. -strict experimental
  34. -profile:v main
  35. -level 3.1
  36. -movflags +faststart
  37. -c:a aac
  38. -b:a 64K
  39. -f mp4
  40. output.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement