silent_video v0.1.1 SilentVideo.Presets

Summary

Functions

A preset targeting Android and iOS devices

Lower quality video targeting compatibility for older mobile devices

Video intended for web streaming

Functions

mobile_1(input_file_path, output_file_path, opts \\ [])

A preset targeting Android and iOS devices.

Explicitly specifies a lot of options to pin down behavior, although it may or may not be safer to omit some of these and use a predefined FFmpeg profile instead.

Options:

  • :width - An integer width for the output video. Defaults to input width.
  • :height - An integer height for the output video. Defaults to input height.
  • :max_width - An integer maximum width for the output video.
  • :max_height - An integer maximum height for the output video.
  • :bitrate - An integer bitrate for the output video. Defaults to 384_000.
  • :framerate - An integer framerate (frames per second). Defaults to 13.
mobile_2(input_file_path, output_file_path, opts \\ [])

Lower quality video targeting compatibility for older mobile devices.

Options:

  • :width - An integer width for the output video. Defaults to input width.
  • :height - An integer height for the output video. Defaults to input height.
  • :max_width - An integer maximum width for the output video.
  • :max_height - An integer maximum height for the output video.
  • :bitrate - An integer bitrate for the output video. Defaults to 250_000.
  • :framerate - An integer framerate (frames per second). Defaults to input framerate.
tablet_1(input_file_path, output_file_path, opts \\ [])

Targeting tablet devices.

Options:

  • :width - An integer width for the output video. Defaults to input width.
  • :height - An integer height for the output video. Defaults to input height.
  • :max_width - An integer maximum width for the output video.
  • :max_height - An integer maximum height for the output video.
  • :bitrate - An integer bitrate for the output video. Defaults to 400_000.
  • :framerate - An integer framerate (frames per second). Defaults to input framerate.
web_1(input_file_path, output_file_path, opts \\ [])

Video intended for web streaming.

Options:

  • :width - An integer width for the output video. Defaults to input width.
  • :height - An integer height for the output video. Defaults to input height.
  • :max_width - An integer maximum width for the output video.
  • :max_height - An integer maximum height for the output video.
  • :bitrate - An integer bitrate for the output video. Defaults to 500_000.
  • :framerate - An integer framerate (frames per second). Defaults to input framerate.