Video Embed & Thumbnail Generator - Version 2.0.1

Version Description

  • February 21, 2012 =
  • Fixed check for FFMPEG again. Should be more universal.
Download this release

Release Info

Developer kylegilman
Plugin Icon 128x128 Video Embed & Thumbnail Generator
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0 to 2.0.1

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kyleg
4
  Tags: video, html5, shortcode, thumbnail, ffmpeg, embed, mobile, webm, ogg, h.264
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
- Stable tag: 2.0
8
 
9
  Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes.
10
 
@@ -101,6 +101,9 @@ Because I can't figure out how to do it. Windows works a little differently from
101
 
102
  == Changelog ==
103
 
 
 
 
104
  = 2.0 - February 20, 2012 =
105
  * Large rewrite to fix several security issues. Full server paths are no longer exposed in the Media Upload form, all AJAX calls are handled through wp_ajax, and nonces are checked.
106
  * Added video encoding progress bar on Linux servers.
4
  Tags: video, html5, shortcode, thumbnail, ffmpeg, embed, mobile, webm, ogg, h.264
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
+ Stable tag: 2.0.1
8
 
9
  Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes.
10
 
101
 
102
  == Changelog ==
103
 
104
+ = 2.0.1 - February 21, 2012 =
105
+ * Fixed check for FFMPEG again. Should be more universal.
106
+
107
  = 2.0 - February 20, 2012 =
108
  * Large rewrite to fix several security issues. Full server paths are no longer exposed in the Media Upload form, all AJAX calls are handled through wp_ajax, and nonces are checked.
109
  * Added video encoding progress bar on Linux servers.
video-embed-thumbnail-generator.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Video Embed & Thumbnail Generator
4
  Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
5
  Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes. <a href="options-general.php?page=video-embed-thumbnail-generator.php">Settings</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kylegilman@gmail.com&item_name=Video%20Embed%20And%20Thumbnail%20Generator%20Plugin%20Donation/">Donate</a>
6
- Version: 2.0
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
 
@@ -114,12 +114,9 @@ function kg_check_ffmpeg_exists() {
114
  $ffmpeg_exists = false;
115
  $output = array();
116
 
117
- if(function_exists('exec')) {
118
- exec(get_option('wp_FMP_ffmpeg').'/ffmpeg 2>&1', $output, $returnvalue);
119
- $exec_enabled = true;
120
- } //attempt to execute FFMPEG
121
 
122
- if ( $exec_enabled == true && strpos(end($output), 'even better') != false ) { //if FFMPEG executed
123
  update_option('wp_FMP_ffmpeg_exists', "true");
124
  $ffmpeg_exists = true;
125
  }
3
  Plugin Name: Video Embed & Thumbnail Generator
4
  Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
5
  Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes. <a href="options-general.php?page=video-embed-thumbnail-generator.php">Settings</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kylegilman@gmail.com&item_name=Video%20Embed%20And%20Thumbnail%20Generator%20Plugin%20Donation/">Donate</a>
6
+ Version: 2.0.1
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
 
114
  $ffmpeg_exists = false;
115
  $output = array();
116
 
117
+ if(function_exists('exec')) { $exec_enabled = true; }
 
 
 
118
 
119
+ if ( $exec_enabled == true && is_file(get_option('wp_FMP_ffmpeg').'/ffmpeg') ) { //if FFMPEG exists
120
  update_option('wp_FMP_ffmpeg_exists', "true");
121
  $ffmpeg_exists = true;
122
  }