vkf_viewer_record_start Interface

interface


Called by

interface~~vkf_viewer_record_start~~CalledByGraph interface~vkf_viewer_record_start vkf_viewer_record_start proc~start_recording WindowProxy%start_recording proc~start_recording->interface~vkf_viewer_record_start

public function vkf_viewer_record_start(viewer, ffmpeg, ffmpeg_len, output, output_len, fps) bind(C, name="vkf_viewer_record_start")

Arguments

Type IntentOptional Attributes Name
type(c_ptr), value :: viewer

viewer handle (vkf_viewer_create)

character(kind=c_char, len=1), intent(in), dimension(*) :: ffmpeg

the ffmpeg command (quoted if need be)

integer(kind=c_int), value :: ffmpeg_len

the length of ffmpeg

character(kind=c_char, len=1), intent(in), dimension(*) :: output

ffmpeg's output options and file

integer(kind=c_int), value :: output_len

the length of output

real(kind=c_double), value :: fps

frames per second of the video

Return Value integer(kind=c_int)

Description

Start recording the frames drawn to a video of fps frames per second: piped as raw video to ffmpeg (the program), encoded with output (ffmpeg's output options, then the file, quoted). Returns 0, or -1 if already recording.