imageToVideo

fun Transformer.imageToVideo(input: File, output: File, durationMs: Long, frameRate: Int = 30, progressPollDelayMs: Long = TransformerKt.DEFAULT_PROGRESS_POLL_DELAY_MS, effectsBlock: EffectsBuilder.() -> Unit = {}): Flow<TransformerStatus>
fun Transformer.imageToVideo(input: Uri, output: File, durationMs: Long, frameRate: Int = 30, progressPollDelayMs: Long = TransformerKt.DEFAULT_PROGRESS_POLL_DELAY_MS, effectsBlock: EffectsBuilder.() -> Unit = {}): Flow<TransformerStatus>

Convert an image to a video.

Use effectsBlock to customize the effects for the final video.

Return

A Flow that emits TransformerStatus.

Parameters

input

The input image to transform.

output

The output file to write to.

durationMs

The duration of the final video.

frameRate

The frame rate of the final video.

progressPollDelayMs

The delay between polling for progress.

effectsBlock

A block to customize the effects for the final video.


suspend fun Transformer.imageToVideo(input: File, output: File, durationMs: Long, frameRate: Int = 30, progressPollDelayMs: Long = TransformerKt.DEFAULT_PROGRESS_POLL_DELAY_MS, effectsBlock: EffectsBuilder.() -> Unit = {}, onProgress: (Int) -> Unit = {}): TransformerStatus.Finished
suspend fun Transformer.imageToVideo(input: Uri, output: File, durationMs: Long, frameRate: Int = 30, progressPollDelayMs: Long = TransformerKt.DEFAULT_PROGRESS_POLL_DELAY_MS, effectsBlock: EffectsBuilder.() -> Unit = {}, onProgress: (Int) -> Unit = {}): TransformerStatus.Finished

Convert an image to a video in a coroutine.

Use effectsBlock to customize the effects for the final video.

Return

A TransformerStatus.Finished status.

Parameters

input

The input image to transform.

output

The output file to write to.

durationMs

The duration of the final video.

frameRate

The frame rate of the final video.

progressPollDelayMs

The delay between polling for progress.

effectsBlock

A block to customize the effects for the final video.

onProgress

The callback to use for progress updates.


fun Transformer.imageToVideo(input: File, output: File, request: TransformationRequest, durationMs: Long, frameRate: Int = 30, progressPollDelayMs: Long = TransformerKt.DEFAULT_PROGRESS_POLL_DELAY_MS, effectsBlock: EffectsBuilder.() -> Unit = {}): Flow<TransformerStatus>
fun Transformer.imageToVideo(input: Uri, output: File, request: TransformationRequest, durationMs: Long, frameRate: Int = 30, progressPollDelayMs: Long = TransformerKt.DEFAULT_PROGRESS_POLL_DELAY_MS, effectsBlock: EffectsBuilder.() -> Unit = {}): Flow<TransformerStatus>

Deprecated

Using TransformerRequest has been deprecated

Replace with

imageToVideo(input, output, durationMs, frameRate, progressPollDelayMs, effectsBlock)

Convert an image to a video.

Use effectsBlock to customize the effects for the final video.

Return

A Flow that emits TransformerStatus.

Parameters

input

The input image to transform.

output

The output file to write to.

request
durationMs

The duration of the final video.

frameRate

The frame rate of the final video.

progressPollDelayMs

The delay between polling for progress.

effectsBlock

A block to customize the effects for the final video.


suspend fun Transformer.imageToVideo(input: File, output: File, request: TransformationRequest, durationMs: Long, frameRate: Int = 30, progressPollDelayMs: Long = TransformerKt.DEFAULT_PROGRESS_POLL_DELAY_MS, effectsBlock: EffectsBuilder.() -> Unit = {}, onProgress: (Int) -> Unit = {}): TransformerStatus.Finished

Deprecated

Using TransformerRequest has been deprecated

Replace with

imageToVideo(input, output, durationMs, frameRate, progressPollDelayMs, effectsBlock, onProgress)

Convert an image to a video in a coroutine.

Use effectsBlock to customize the effects for the final video.

Return

A TransformerStatus.Finished status.

Parameters

input

The input image to transform.

output

The output file to write to.

request
durationMs

The duration of the final video.

frameRate

The frame rate of the final video.

progressPollDelayMs

The delay between polling for progress.

effectsBlock

A block to customize the effects for the final video.

onProgress

The callback to use for progress updates.


suspend fun Transformer.imageToVideo(input: Uri, output: File, request: TransformationRequest, durationMs: Long, frameRate: Int = 30, progressPollDelayMs: Long = TransformerKt.DEFAULT_PROGRESS_POLL_DELAY_MS, effectsBlock: EffectsBuilder.() -> Unit = {}, onProgress: (Int) -> Unit = {}): TransformerStatus.Finished

Deprecated

Using TransformerRequest has been deprecated

Replace with

start(input, output, progressPollDelayMs, onProgress)

Convert an image to a video in a coroutine.

Use effectsBlock to customize the effects for the final video.

Return

A TransformerStatus.Finished status.

Parameters

input

The input image to transform.

output

The output file to write to.

request
durationMs

The duration of the final video.

frameRate

The frame rate of the final video.

progressPollDelayMs

The delay between polling for progress.

effectsBlock

A block to customize the effects for the final video.

onProgress

The callback to use for progress updates.