View Source Elph.MediaProcessing (elph v0.9.1)

The MediaProcessing context. Holds functions for automated editing of media files on the disk. This wraps ffmpeg into easy to access standardized function calls.

Link to this section Summary

Link to this section Functions

Link to this function

create_default(path, output_path)

View Source
Link to this function

create_poster_from_video(path, output_path)

View Source
Link to this function

create_thumbnail_from_image(path, output_path)

View Source
Link to this function

enqueue_background_conversion(fun)

View Source
Link to this function

get_extension_mime(extension)

View Source
Link to this function

get_file_hash(path, opts \\ [])

View Source

Returns the hash of the file as base64. By default it's a full :sha with length 40. You can change the :hash or the :length via opts

Link to this function

get_magic_number_mime(path)

View Source
Link to this function

get_media_type_for_mime(mime)

View Source