5.3.4.103. Function video_writer_alloc_init

5.3.4.103.1. Function Documentation

video_writer_t *video_writer_alloc_init(const char *path, const size_t start, const size_t n_ffmpeg_threads, const size_t img_height, const size_t img_width, const enum pixfmt_e pixfmt)

Allocation and initialization of inner data required for a video writer.

Parameters
  • path – Path to the video or images.

  • start – Start frame number (first frame is frame 0).

  • n_ffmpeg_threads – Number of threads used in FFMPEG to encode the video sequence (0 means FFMPEG will decide).

  • img_height – Images height.

  • img_width – Images width.

  • pixfmt – Pixels format (grayscale or RGB).

Returns

The allocated data.