original_string: public function watermarkVideo($src, $dest)
      {
          $ffmpeg = FFMpeg::create();
          $video  = $ffmpeg->open($src);
  
          if(!config('thumbnail.watermark.video.enabled')) 
              throw new Exception("Configure watermark path in env file");
              
          // $video->filters()->resize($dimension, $mode, $useStandards);
          $video
              ->filters()
              ->watermark(config('thumbnail.watermark.video.path'), array(
                  'position' => 'relative',
                  'bottom' => 50,
                  'right' => 50,
              ));
  
  
          $video
              ->save(new Video\WebM(), $dest);        
  
          if($video) return true;
          else return false;
      }
code: public function watermarkVideo($src, $dest)
      {
          $ffmpeg = FFMpeg::create();
          $video  = $ffmpeg->open($src);
  
          if(!config('thumbnail.watermark.video.enabled')) 
              throw new Exception("Configure watermark path in env file");
              
          // $video->filters()->resize($dimension, $mode, $useStandards);
          $video
              ->filters()
              ->watermark(config('thumbnail.watermark.video.path'), array(
                  'position' => 'relative',
                  'bottom' => 50,
                  'right' => 50,
              ));
  
  
          $video
              ->save(new Video\WebM(), $dest);        
  
          if($video) return true;
          else return false;
      }
code_tokens: public function watermarkVideo ( $ src , $ dest ) { $ ffmpeg = FFMpeg :: create ( ) ; $ video = $ ffmpeg -> open ( $ src ) ; if ( ! config ( 'thumbnail.watermark.video.enabled' ) ) throw new Exception ( "Configure watermark path in env file" ) ; // $video->filters()->resize($dimension, $mode, $useStandards); $ video -> filters ( ) -> watermark ( config ( 'thumbnail.watermark.video.path' ) , array ( 'position' => 'relative' , 'bottom' => 50 , 'right' => 50 , ) ) ; $ video -> save ( new Video \ WebM ( ) , $ dest ) ; if ( $ video ) return true ; else return false ; }
docstring: Insert watermark on the given video
  
  
  
  @access public
  @param  src        Video resource source path
  @param  dest       Video resource destination path
  @return boolean
  
  @since   Method available since Release 1.4.4
  @version 1.4.4
  @author  lakshmajim <lakshmajee88@gmail.com>
docstring_tokens: Insert watermark on the given video