SilentVideo.Presets (silent_video v0.5.0)
Summary
Functions
A preset targeting Android and iOS devices.
Lower quality video targeting compatibility for older mobile devices.
Targeting tablet devices.
Video intended for web streaming.
Functions
Link to this function
mobile_1(input_file_path, output_file_path, opts \\ [])
@spec mobile_1(binary(), binary(), keyword()) :: :ok | {:error, {binary(), non_neg_integer()}}
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.
Link to this function
mobile_2(input_file_path, output_file_path, opts \\ [])
@spec mobile_2(binary(), binary(), keyword()) :: :ok | {:error, {binary(), non_neg_integer()}}
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.
Link to this function
tablet_1(input_file_path, output_file_path, opts \\ [])
@spec tablet_1(binary(), binary(), keyword()) :: :ok | {:error, {binary(), non_neg_integer()}}
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.
Link to this function
web_1(input_file_path, output_file_path, opts \\ [])
@spec web_1(binary(), binary(), keyword()) :: :ok | {:error, {binary(), non_neg_integer()}}
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.