def split_recording(self, output, splitter_port=1, **options):
    '\n        Continue the recording in the specified output; close existing output.\n\n        When called, the video encoder will wait for the next appropriate\n        split point (an inline SPS header), then will cease writing to the\n        current output (and close it, if it was specified as a filename), and\n        continue writing to the newly specified *output*.\n\n        The *output* parameter is treated as in the :meth:`start_recording`\n        method (it can be a string, a file-like object, or a writeable\n        buffer object).\n\n        The *motion_output* parameter can be used to redirect the output of the\n        motion vector data in the same fashion as *output*. If *motion_output*\n        is ``None`` (the default) then motion vector data will not be\n        redirected and will continue being written to the output specified by\n        the *motion_output* parameter given to :meth:`start_recording`.\n        Alternatively, if you only wish to redirect motion vector data, you can\n        set *output* to ``None`` and given a new value for *motion_output*.\n\n        The *splitter_port* parameter specifies which port of the video\n        splitter the encoder you wish to change outputs is attached to. This\n        defaults to ``1`` and most users will have no need to specify anything\n        different. Valid values are between ``0`` and ``3`` inclusive.\n\n        Note that unlike :meth:`start_recording`, you cannot specify format or\n        other options as these cannot be changed in the middle of recording.\n        Only the new *output* (and *motion_output*) can be specified.\n        Furthermore, the format of the recording is currently limited to H264,\n        and *inline_headers* must be ``True`` when :meth:`start_recording` is\n        called (this is the default).\n\n        .. versionchanged:: 1.3\n            The *splitter_port* parameter was added\n\n        .. versionchanged:: 1.5\n            The *motion_output* parameter was added\n\n        .. versionchanged:: 1.11\n            Support for buffer outputs was added.\n        '
    try:
        with self._encoders_lock:
            encoder = self._encoders[splitter_port]
    except KeyError:
        raise PiCameraNotRecording(('There is no recording in progress on port %d' % splitter_port))
    else:
        encoder.split(output, options.get('motion_output'))
Continue the recording in the specified output; close existing output.

When called, the video encoder will wait for the next appropriate
split point (an inline SPS header), then will cease writing to the
current output (and close it, if it was specified as a filename), and
continue writing to the newly specified *output*.

The *output* parameter is treated as in the :meth:`start_recording`
method (it can be a string, a file-like object, or a writeable
buffer object).

The *motion_output* parameter can be used to redirect the output of the
motion vector data in the same fashion as *output*. If *motion_output*
is ``None`` (the default) then motion vector data will not be
redirected and will continue being written to the output specified by
the *motion_output* parameter given to :meth:`start_recording`.
Alternatively, if you only wish to redirect motion vector data, you can
set *output* to ``None`` and given a new value for *motion_output*.

The *splitter_port* parameter specifies which port of the video
splitter the encoder you wish to change outputs is attached to. This
defaults to ``1`` and most users will have no need to specify anything
different. Valid values are between ``0`` and ``3`` inclusive.

Note that unlike :meth:`start_recording`, you cannot specify format or
other options as these cannot be changed in the middle of recording.
Only the new *output* (and *motion_output*) can be specified.
Furthermore, the format of the recording is currently limited to H264,
and *inline_headers* must be ``True`` when :meth:`start_recording` is
called (this is the default).

.. versionchanged:: 1.3
    The *splitter_port* parameter was added

.. versionchanged:: 1.5
    The *motion_output* parameter was added

.. versionchanged:: 1.11
    Support for buffer outputs was added.
def split_recording(self, output, splitter_port=1, **options):
    '\n        Continue the recording in the specified output; close existing output.\n\n        When called, the video encoder will wait for the next appropriate\n        split point (an inline SPS header), then will cease writing to the\n        current output (and close it, if it was specified as a filename), and\n        continue writing to the newly specified *output*.\n\n        The *output* parameter is treated as in the :meth:`start_recording`\n        method (it can be a string, a file-like object, or a writeable\n        buffer object).\n\n        The *motion_output* parameter can be used to redirect the output of the\n        motion vector data in the same fashion as *output*. If *motion_output*\n        is ``None`` (the default) then motion vector data will not be\n        redirected and will continue being written to the output specified by\n        the *motion_output* parameter given to :meth:`start_recording`.\n        Alternatively, if you only wish to redirect motion vector data, you can\n        set *output* to ``None`` and given a new value for *motion_output*.\n\n        The *splitter_port* parameter specifies which port of the video\n        splitter the encoder you wish to change outputs is attached to. This\n        defaults to ``1`` and most users will have no need to specify anything\n        different. Valid values are between ``0`` and ``3`` inclusive.\n\n        Note that unlike :meth:`start_recording`, you cannot specify format or\n        other options as these cannot be changed in the middle of recording.\n        Only the new *output* (and *motion_output*) can be specified.\n        Furthermore, the format of the recording is currently limited to H264,\n        and *inline_headers* must be ``True`` when :meth:`start_recording` is\n        called (this is the default).\n\n        .. versionchanged:: 1.3\n            The *splitter_port* parameter was added\n\n        .. versionchanged:: 1.5\n            The *motion_output* parameter was added\n\n        .. versionchanged:: 1.11\n            Support for buffer outputs was added.\n        '
    try:
        with self._encoders_lock:
            encoder = self._encoders[splitter_port]
    except KeyError:
        raise PiCameraNotRecording(('There is no recording in progress on port %d' % splitter_port))
    else:
        encoder.split(output, options.get('motion_output'))