View Source Membrane.FFmpegGenerator.VideoGenerator (Membrane FFmpeg Generator v0.1.0)
Module responsible for generating video files using FFmpeg.
Link to this section Summary
Functions
Generates video without audio with specified video format, duration, file format and additional options using FFmpeg. Audio format can be specified in options.
Generates video without audio with specified video format, duration, file format and additional options using FFmpeg.
Link to this section Functions
Link to this function
generate_video_with_audio(video_format, duration, file_format, options \\ [])
View SourceSpecs
generate_video_with_audio( Membrane.RawVideo.t(), Membrane.Time.t(), Membrane.FFmpegGenerator.Types.SupportedFileFormats.Video.codec_file_format_t() | Membrane.FFmpegGenerator.Types.SupportedFileFormats.Video.container_file_format_t(), Membrane.FFmpegGenerator.Types.Options.t() ) :: {:ok, String.t()} | {:error, String.t()}
Generates video without audio with specified video format, duration, file format and additional options using FFmpeg. Audio format can be specified in options.
Values
- video_format: specify generated video parameters
- duration: length of generated video
- file_format: format of generated file, e.x. :mp4, :h264, :mov, :raw, :mkv
- options: other optional arguments, e.x. output_path, audio_format
Link to this function
generate_video_without_audio(video_format, duration, file_format, options \\ [])
View SourceSpecs
generate_video_without_audio( Membrane.RawVideo.t(), Membrane.Time.t(), Membrane.FFmpegGenerator.Types.SupportedFileFormats.Video.codec_file_format_t() | Membrane.FFmpegGenerator.Types.SupportedFileFormats.Video.container_file_format_t(), Membrane.FFmpegGenerator.Types.Options.t() ) :: {:ok, String.t()} | {:error, String.t()}
Generates video without audio with specified video format, duration, file format and additional options using FFmpeg.
Values
- video_format: specify generated video parameters
- duration: length of generated video
- file_format: format of generated file, e.x. :mp4, :h264, :mov, :raw, :mkv
- options: other optional arguments, e.x. output_path
Link to this function
get_output_path(format, duration, file_format, has_audio?, options)
View SourceSpecs
get_output_path( Membrane.RawVideo.t(), Membrane.Time.t(), Membrane.FFmpegGenerator.Types.SupportedFileFormats.Video.codec_file_format_t() | Membrane.FFmpegGenerator.Types.SupportedFileFormats.Video.container_file_format_t(), boolean(), Membrane.FFmpegGenerator.Types.Options.t() ) :: {:ok, String.t()}