Viewing 1 replies (of 1 total)
  • Plugin Author AlexRayan

    (@alexrayan)

    Hi Sheratonwalls,

    Please, make sure the ffmpeg path is specified in the options settings page:
    Settings -> WP Video Posts -> General (tab)
    If it is and the path is correct (you are able to run ffmpeg command with this path specified from the shell), please try to substitute these lines of code in /classes/wpvp-helper-class.php (line 8).
    From:

    public function wpvp_command_exists_check($command){
           $command = escapeshellarg($command);
           $exists = exec($command." -h",$out);
           return sizeof($out);
    }

    To:

    public function wpvp_command_exists_check($command){
            $command = escapeshellarg($command);
    	$options = $this->wpvp_get_full_options();
    	$ffmpeg_path = $options['ffmpeg_path'];
    	$exists = shell_exec($ffmpeg_path.'ffmpeg -version');
    	if(!empty($exists)){
    		$result = 1;
    	} else {
    		$result = 0;
    	}
           	return sizeof($exists);
    }

    If this doesn’t help, send me an email with credentials to the website and I will help you ( alex AT alexiz.com).

    Best regards,
    Alex

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Video Posts can't find FFMPEG’ is closed to new replies.