Created
March 3, 2020 06:57
-
-
Save nicolas42/6da62976fdb6010bdc1980fcc0bca302 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Download a static build of ffmpeg which contains libass from https://www.ffmpeg.org/download.html. For example | |
| wget https://evermeet.cx/ffmpeg/ffmpeg-96869-gb6879b61df.zip | |
| Download the video | |
| youtube-dl https://www.youtube.com/watch\?v\=SLGeFfxdEkA | |
| Use that particular ffmpeg binary to render the subtitles. Pay attention to the start time on the subtitles since it will need to coincide. Set start time with -ss and the duration with -t. | |
| ./ffmpeg -i a.mkv -vf subtitles=a.srt -r 10 -ss 151 -t 5 out.gif | |
| See if it works | |
| open -a "Google Chrome" out.gif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment