def write_chunk(self, output_chunk, input_slice):
    'Write from an input slice in the adapter to an output chunk.\n\n        Parameters\n        ----------\n        output_chunk: GulpChunk\n           The chunk to write to\n        input_slice: slice\n           The slice to use from the adapter.\n\n        '
    with output_chunk.open('wb'):
        for video in self.adapter.iter_data(input_slice):
            id_ = video['id']
            meta_data = video['meta']
            frames = video['frames']
            if (len(frames) > 0):
                output_chunk.append(id_, meta_data, frames, self.adapter.jpeg_encode_quality())
            else:
                print('Failed to write video with id: {}; no frames'.format(id_))
Write from an input slice in the adapter to an output chunk.

Parameters
----------
output_chunk: GulpChunk
   The chunk to write to
input_slice: slice
   The slice to use from the adapter.
def write_chunk(self, output_chunk, input_slice):
    'Write from an input slice in the adapter to an output chunk.\n\n        Parameters\n        ----------\n        output_chunk: GulpChunk\n           The chunk to write to\n        input_slice: slice\n           The slice to use from the adapter.\n\n        '
    with output_chunk.open('wb'):
        for video in self.adapter.iter_data(input_slice):
            id_ = video['id']
            meta_data = video['meta']
            frames = video['frames']
            if (len(frames) > 0):
                output_chunk.append(id_, meta_data, frames, self.adapter.jpeg_encode_quality())
            else:
                print('Failed to write video with id: {}; no frames'.format(id_))