SilentVideo (silent_video v0.5.0)
Summary
Functions
Convert using high compatibility settings for mobile devices.
Alternate high compatibility settings for mobile devices.
Settings for tablets.
Settings for general web streaming.
Functions
Link to this function
convert_mobile(input_file_path, output_file_path, opts \\ [])
@spec convert_mobile( input_file_path :: binary(), output_file_path :: binary(), Keyword.t() ) :: :ok | {:error, {Collectable.t(), exit_status :: non_neg_integer()}}
Convert using high compatibility settings for 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 384_000.:framerate
- An integer framerate (frames per second). Defaults to 13.
Link to this function
convert_mobile_2(input_file_path, output_file_path, opts \\ [])
@spec convert_mobile_2( input_file_path :: binary(), output_file_path :: binary(), Keyword.t() ) :: :ok | {:error, {Collectable.t(), exit_status :: non_neg_integer()}}
Alternate high compatibility settings for 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
convert_tablet(input_file_path, output_file_path, opts \\ [])
@spec convert_tablet( input_file_path :: binary(), output_file_path :: binary(), Keyword.t() ) :: :ok | {:error, {Collectable.t(), exit_status :: non_neg_integer()}}
Settings for tablets.
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
convert_web(input_file_path, output_file_path, opts \\ [])
@spec convert_web( input_file_path :: binary(), output_file_path :: binary(), Keyword.t() ) :: :ok | {:error, {Collectable.t(), exit_status :: non_neg_integer()}}
Settings for general 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.