Skip to content

Instantly share code, notes, and snippets.

@BaddMann
Last active March 27, 2017 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BaddMann/b71887162727a8545a6fb69bdc07fb83 to your computer and use it in GitHub Desktop.
Save BaddMann/b71887162727a8545a6fb69bdc07fb83 to your computer and use it in GitHub Desktop.
FFMpeg Overlay of slides with Sound Mixing
ffmpeg -i AZPosh-DamianBrady-OctopusDeployforthePowerShellUser-audacitycompress.mp4 -i AZPoshTemplates720.mp4 -filter_complex "[0:v][1:v]overlay=enable='between(t\,0,70)'[out];[0:a][1:a]amix=inputs=2[aout]" -shortest -map [out] -map [aout] -pix_fmt yuv420p -c:v libx264 -crf 18 AZPosh-DamianBrady-OctopusDeployforthePowerShellUser-audacitycompress-overlay3.mp4
@BaddMann
Copy link
Author

BaddMann commented Mar 27, 2017

Took me a while to figure this out.
So keeping it here for safe keeping.

'between(t\,1,135)' time period in seconds that the overlay is present.
[0:v][1:v] map video from source 1 (0) and source 2 (1) -map [out]
[0:a][1:a]amix=inputs=2[aout] map audio to aout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment