Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfonba authored Oct 29, 2024
1 parent 433e9a7 commit 55f7e9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tutorials/FFMPEG-cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ffmpeg -r 30 -f image2 -i pic.%04d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p
The inputs are:
* `-r` is the framerate
* `-crf` is the quality, lower means better quality
* `-S` (optional) video resolution in pixes
* `-S` (optional) video resolution in pixels
* `-pix_fmt` specifies the pixel format

## Playing one video after another
Expand Down Expand Up @@ -43,7 +43,7 @@ ffmpeg -i input0 -i input1 -i input2 -i input3 -filter_complex "[0:v][1:v][2:v][
```

## Dealing with an odd number of pixels
Adding `-vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"` to your FFMPEG command as shown below allows you to create a video from PNGs that are not an even number of pixels in height and/or width.
Adding `-vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"` to your FFMPEG command as shown below allows you to create a video from images that are not an even number of pixels in height and/or width.
```
ffmpeg -r 30 -f image2 -i pic.%04d.png -vcodec libx264 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -crf 25 -pix_fmt yuv420p test.mp4
```
Expand Down Expand Up @@ -72,4 +72,4 @@ where the inputs are
* `-vf` indicates the usage of a video filter
* `crop` is the name of the filter
* `w:h` is the width and height of the output video<
* `x:y` is the coordinate from which the video will be
* `x:y` is the coordinate from which the video will be

0 comments on commit 55f7e9f

Please sign in to comment.