artellapipe.libs.ffmpeg.core.ffmpeglib module

Utility module that contains useful utilities and classes related with FFMpeg

artellapipe.libs.ffmpeg.core.ffmpeglib.create_video_from_list_of_files(list_of_files, output_file, framerate=24, video_codec='libx264', run_stream=True)
artellapipe.libs.ffmpeg.core.ffmpeglib.create_video_from_sequence_file(file_in_sequence, output_file, sequence_number_padding=2, framerate=24, video_codec='libx264', run_stream=True)
artellapipe.libs.ffmpeg.core.ffmpeglib.draw_text(input_file, text, x=0, y=0, font_color=None, font_file=None, font_size=16, escape_text=False)
artellapipe.libs.ffmpeg.core.ffmpeglib.draw_timestamp_on_video(video_file, text=None, x=0, y=0, font_color=None, font_file=None, font_size=16, escape_text=False, timecode='00:00:00:00', timecode_rate=24)
artellapipe.libs.ffmpeg.core.ffmpeglib.get_file_input(input_file, check_file_path=True, **kwargs)

Returns FFMpeg input of the given file :param input_file: str or ffmpeg.nodes.FilterableStream :return:

artellapipe.libs.ffmpeg.core.ffmpeglib.launch_stream(ffmpeg_stream, overwrite=True)

Executes all the FFMpeg operations of the given FFMpeg stream :param ffmpeg_stream: ffmpeg.nodes.Stream :param overwrite: bool

artellapipe.libs.ffmpeg.core.ffmpeglib.overlay_inputs(input_1, input_2, x=0, y=0)

Function that overlays input_1 on top of input_2 :param input_1: str or ffmpeg.nodes.FilterableStream :param input_2: str or ffmpeg.nodes.FilterableStream :param x: int :param y: int :return: ffmpeg.nodes.FilterableStream

artellapipe.libs.ffmpeg.core.ffmpeglib.run_multiples_outputs_at_once(outputs_to_run, max_operations=15)

Run all the given outputs at once :param outputs_to_run: list :param max_operations: int :return:

artellapipe.libs.ffmpeg.core.ffmpeglib.save_to_file(ffmpeg_stream, output_path, run_stream=False, overwrite=True)

Stores given FFMpeg stream object into given output path :param ffmpeg_stream: ffmpeg.nodes.Stream :param output_path: str :param run_stream: bool :param overwrite: bool

artellapipe.libs.ffmpeg.core.ffmpeglib.scale_video(video_file, new_width=None, new_height=None)