Fixing the way we apply for the filter.
This commit is contained in:
		
					parent
					
						
							
								223118db4e
							
						
					
				
			
			
				commit
				
					
						c7df2b17e6
					
				
			
		
					 2 changed files with 17 additions and 13 deletions
				
			
		|  | @ -12,6 +12,8 @@ | |||
| namespace FFMpeg\Filters\Video; | ||||
| 
 | ||||
| use FFMpeg\Exception\InvalidArgumentException; | ||||
| use FFMpeg\Media\Video; | ||||
| use FFMpeg\Format\VideoInterface; | ||||
| 
 | ||||
| class ExtractMultipleFramesFilter implements VideoFilterInterface | ||||
| { | ||||
|  |  | |||
|  | @ -57,6 +57,21 @@ class VideoFilters extends AudioFilters | |||
|         return $this; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Extract multiple frames from the video | ||||
|      * | ||||
|      * @param string $frameRate | ||||
|      * @param string  $destinationFolder | ||||
|      * | ||||
|      * @return $this | ||||
|      */ | ||||
|     public function extractMultipleFrames($frameRate = ExtractMultipleFramesFilter::FRAMERATE_EVERY_2SEC, $destinationFolder = __DIR__) | ||||
|     { | ||||
|         $this->media->addFilter(new ExtractMultipleFramesFilter($frameRate, $destinationFolder)); | ||||
| 
 | ||||
|         return $this; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Synchronizes audio and video. | ||||
|      * | ||||
|  | @ -132,17 +147,4 @@ class VideoFilters extends AudioFilters | |||
| 
 | ||||
|         return $this; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * @param string $frameRate | ||||
|      * @param string  $destinationFolder | ||||
|      * | ||||
|      * @return $this | ||||
|      */ | ||||
|     public function extractMultipleFrames($frameRate = ExtractMultipleFramesFilter::FRAMERATE_EVERY_2SEC, $destinationFolder = __DIR__) | ||||
|     { | ||||
|         $this->frame->addFilter(new ExtractMultipleFramesFilter($frameRate, $destinationFolder)); | ||||
| 
 | ||||
|         return $this; | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue