Creation of the method to add the filter
This commit is contained in:
		
					parent
					
						
							
								d83c7e271f
							
						
					
				
			
			
				commit
				
					
						b3155f9622
					
				
			
		
					 1 changed files with 15 additions and 0 deletions
				
			
		|  | @ -36,4 +36,19 @@ class FrameFilters | ||||||
| 
 | 
 | ||||||
|         return $this; |         return $this; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * Fixes the display ratio of the output frame. | ||||||
|  |      * | ||||||
|  |      * In case the sample ratio and display ratio are different, image may be | ||||||
|  |      * anamorphozed. This filter fixes this by specifying the output size. | ||||||
|  |      * | ||||||
|  |      * @return FrameFilters | ||||||
|  |      */ | ||||||
|  |     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