Skip to content

Instantly share code, notes, and snippets.

@vilaca
Created September 3, 2019 00:52
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 vilaca/5535b94842f451ff7ce85200614701e9 to your computer and use it in GitHub Desktop.
Save vilaca/5535b94842f451ff7ce85200614701e9 to your computer and use it in GitHub Desktop.
FFMPEG - generate video and sound
ffmpeg -f lavfi -i color=white:s=1920x1080:r=1 -preset ultrafast -t 60 -vf " drawtext=text='You will':enable='between(t,0,60)':fontcolor=red:fontsize=124:x=10:y=20, drawtext=text='You will hear a':enable='between(t,5,60)':fontcolor=red:fontsize=124:x=10:y=20, drawtext=text='You will hear a reverse':enable='between(t,10,60)':fontcolor=red:fontsize=124:x=10:y=20, drawtext=text='You will hear a reverse cymbal':enable='between(t,15,60)':fontcolor=blue:fontsize=124:x=10:y=20, drawtext=text='In 5 secs...':enable='between(t,25,60)':fontcolor=cyan:fontsize=124:x=(w-tw)/2:y=220" clip.mp4
ffmpeg -y -i clip.mp4 -itsoffset 00:00:30 -i cymb.mp3 -map 0:0 -map 1:0 -c:v copy -preset ultrafast -async 1 clipWsound.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment