generate_videos.md 536 Bytes
Newer Older
Hesper Yin's avatar
Hesper Yin committed
1
2
3
4
5
6
7
8
9
10
11
12
---
layout: default
title: "Generating Videos"
permalink: /generate_videos/
---

# Generating Videos

## Converting frames to video with ffmpeg

Once you've rendered all the frames of your video, you can combine them into a video by using:

Hesper Yin's avatar
Hesper Yin committed
13
`ffmpeg -r 60 -f image2 -s 800x600 -i ./%4d.png -vcodec libx264 out.mp4`
Hesper Yin's avatar
Hesper Yin committed
14

Hesper Yin's avatar
Hesper Yin committed
15
If you don't have ffmpeg installed on your system, you can get it through most package managers, or you can [download it directly](https://ffmpeg.org/download.html), or use your own video creation program.