Skip to content

Commit

Permalink
add more documentation for ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Aug 13, 2024
1 parent a080f55 commit 3a03cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sleap/io/videowriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def __init__(

# Imageio's ffmpeg writer parameters
# https://imageio.readthedocs.io/en/stable/examples.html#writing-videos-with-ffmpeg-and-vaapi
# Use `ffmpeg -h encoder=libx264`` to see all options for libx264 output_params
# output_params must be a list of strings
# iio.help(name='FFMPEG') to test
self.writer = iio.get_writer(
filename,
Expand All @@ -115,8 +117,6 @@ def __init__(
str(crf),
"-vf",
"scale=trunc(iw/2)*2:trunc(ih/2)*2", # Ensure even dimensions
"-r",
str(fps),
],
)

Expand Down

0 comments on commit 3a03cee

Please sign in to comment.