external.ffmpeg_widget#

FFMpeg control widget used to convert a source image sequence to a movie.

Classes:

FFMpegWidget(index[, parent])

Widget used to convert an image sequence to a video.

PresetComboBox([parent])

FFMpeg preset picker.

SizeComboBox([parent])

FFMpeg output size picker.

Functions:

close()

Closes the FFMpegWidget editor.

show(index)

Opens the FFMpegWidget editor.

Data:

SECTIONS

UI layout definition

class bookmarks.external.ffmpeg_widget.FFMpegWidget(index, parent=None)[source]#

Bases: BasePropertyEditor

Widget used to convert an image sequence to a video.

Methods:

init_data()

Initializes data.

oiio_process_frames(pbar)

Convert the source frames to jpeg images using OpenImageIO.

save_changes()

Saves changes.

sizeHint()

Returns a size hint.

init_data()[source]#

Initializes data.

oiio_process_frames(pbar)[source]#

Convert the source frames to jpeg images using OpenImageIO.

This allows us to feed more exotic sequences to FFMpeg, but the process comes with a significant performance cost.

Returns:

A tuple of jpeg file paths.

Return type:

tuple

save_changes()[source]#

Saves changes.

sizeHint()[source]#

Returns a size hint.

class bookmarks.external.ffmpeg_widget.PresetComboBox(parent=None)[source]#

Bases: QComboBox

FFMpeg preset picker.

Methods:

init_data()

Initializes data.

init_data()[source]#

Initializes data.

class bookmarks.external.ffmpeg_widget.SizeComboBox(parent=None)[source]#

Bases: QComboBox

FFMpeg output size picker.

Methods:

init_data()

Initializes data.

init_data()[source]#

Initializes data.

bookmarks.external.ffmpeg_widget.close()[source]#

Closes the FFMpegWidget editor.

bookmarks.external.ffmpeg_widget.show(index)[source]#

Opens the FFMpegWidget editor.

Parameters:

index (QModelIndex) – The source image sequence index.

Returns:

The FFMpegWidget instance.

Return type:

QWidget

bookmarks.external.ffmpeg_widget.SECTIONS = {0: {'color': PySide2.QtGui.QColor.fromRgbF(0.254902, 0.254902, 0.254902, 1.000000), 'groups': {0: {0: {'description': 'Select the preset to use.', 'key': 'ffmpeg_preset', 'name': 'Preset', 'placeholder': None, 'validator': None, 'widget': <class 'bookmarks.external.ffmpeg_widget.PresetComboBox'>}, 1: {'description': 'Set the output video size.', 'key': 'ffmpeg_size', 'name': 'Size', 'placeholder': None, 'validator': None, 'widget': <class 'bookmarks.external.ffmpeg_widget.SizeComboBox'>}, 2: {'description': 'Add an informative bar and a timecode.', 'key': 'ffmpeg_timecode', 'name': 'Timecode', 'placeholder': None, 'validator': None, 'widget': functools.partial(<class 'PySide2.QtWidgets.QCheckBox'>, 'Add Timecode')}}}, 'icon': 'convert', 'name': 'Convert Image Sequence to Video'}}#

UI layout definition