Skip to content

Instantly share code, notes, and snippets.

@BaddMann
Last active Mar 27, 2017
Embed
What would you like to do?
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