Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erkaman/ffmpeg-add-text-to-video-tutorial
Tutorial that shows how to add text to a video file with ffmpeg
https://github.com/erkaman/ffmpeg-add-text-to-video-tutorial
ffmpeg tutorial
Last synced: 3 months ago
JSON representation
Tutorial that shows how to add text to a video file with ffmpeg
- Host: GitHub
- URL: https://github.com/erkaman/ffmpeg-add-text-to-video-tutorial
- Owner: Erkaman
- Created: 2018-04-30T10:58:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T10:59:07.000Z (almost 7 years ago)
- Last Synced: 2024-08-13T03:05:25.004Z (6 months ago)
- Topics: ffmpeg, tutorial
- Homepage:
- Size: 8.5 MB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Adding Text to a Video File with ffmpeg
By burning text subtitles into a video, we can use ffmpeg as a quick and dirty way
of adding text to a video. Let us say we want to add text to the video `original.mp4`, which
is rendered a `.gif` below![Animated](gifs/original.gif)
Then we simply specify a subtitle file of the format `.ass`(Advanced Substation Alpha),
and feed it to ffmpeg as follows:```
ffmpeg -y -i original.mp4 -vf subtitles=text.ass original_with_subs.mp4
```and this gives us a video with text added:
![Animated](gifs/original_with_subs.gif)
The file `text.ass` can be found in the repo, and it contains explanatory comments. The
specification of the subtitle format can be found [here](https://www.matroska.org/technical/specs/subtitles/ssa.html).