Skip to content

Instantly share code, notes, and snippets.

@mikkohei13
Created October 26, 2025 09:11
Show Gist options
  • Select an option

  • Save mikkohei13/c84c2fd94f4eb7973c8443cc3f5dbc28 to your computer and use it in GitHub Desktop.

Select an option

Save mikkohei13/c84c2fd94f4eb7973c8443cc3f5dbc28 to your computer and use it in GitHub Desktop.
Combine mp3, jpg and srt into a lyrics video
ffmpeg -ss 0 -i 'input.mp3' -loop 1 -i 'input.jpg' \
-vf "subtitles='input.srt'" \
-c:v libx264 -tune stillimage -c:a aac -b:a 192k -shortest -pix_fmt yuv420p output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment