You are here

public function PHPVideoToolkit::setVideoFrameRate in Video 7.2

Same name and namespace in other branches
  1. 7 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::setVideoFrameRate()

Sets the frame rate of the video

@access public

Parameters

string|integer $fps 1 being 1 frame per second, 1:2 being 0.5 frames per second:

Return value

boolean

1 call to PHPVideoToolkit::setVideoFrameRate()
PHPVideoToolkit::extractFrames in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Extracts frames from a video. (Note; If set to 1 and the duration set by $extract_begin_timecode and $extract_end_timecode is equal to 1 you get more than one frame. For example if you set $extract_begin_timecode='00:00:00' and…

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 1745
Libary to access FFmpeg

Class

PHPVideoToolkit

Code

public function setVideoFrameRate($fps) {
  return $this
    ->addCommand('-r', $fps);
}