Skip to content

360video

Auto-generated documentation for musicalgestures._360video module.

Mg360Video

[find in source code]

class Mg360Video(MgVideo):
    def __init__(
        filename: str,
        projection: Union[str, Projection],
        camera: str = None,
        **kwargs,
    ):

Class for 360 videos.

See also

Mg360Video().convert_projection

[find in source code]

def convert_projection(
    target_projection: Union[Projection, str],
    options: Dict[str, str] = None,
    print_cmd: bool = False,
):

Convert the video to a different projection.

Arguments

  • target_projection Projection - Target projection. options (Dict[str, str], optional): Options for the conversion. Defaults to None.
  • print_cmd bool, optional - Print the ffmpeg command. Defaults to False.

See also

Projection

[find in source code]

class Projection(Enum):

same as https://ffmpeg.org/ffmpeg-filters.html#v360.