Version Description
- January 6, 2021 =
- Fixed bug in testing FFMPEG execution.
Download this release
Release Info
Developer | kylegilman |
Plugin | Video Embed & Thumbnail Generator |
Version | 4.6.27 |
Comparing to | |
See all releases |
Code changes from version 4.6.26 to 4.6.27
- readme.txt +4 -1
- video-embed-thumbnail-generator.php +4 -4
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: video, video player, video gallery, video thumbnail, ffmpeg, resolution
|
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6.0
|
8 |
-
Stable tag: 4.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -250,6 +250,9 @@ Enter the username & password in the plugin settings "FFMPEG Settings" tab, or u
|
|
250 |
|
251 |
== Changelog ==
|
252 |
|
|
|
|
|
|
|
253 |
= 4.6.26 - December 28, 2020 =
|
254 |
* Added option to disable shortcode URL rewriting if WordPress doesn't know your videos are hosted on a CDN.
|
255 |
* Added playsinline attribute to Video.js videos to allow iPhones to play videos inline on web pages.
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6.0
|
8 |
+
Stable tag: 4.6.27
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
250 |
|
251 |
== Changelog ==
|
252 |
|
253 |
+
= 4.6.27 - January 6, 2021 =
|
254 |
+
* Fixed bug in testing FFMPEG execution.
|
255 |
+
|
256 |
= 4.6.26 - December 28, 2020 =
|
257 |
* Added option to disable shortcode URL rewriting if WordPress doesn't know your videos are hosted on a CDN.
|
258 |
* Added playsinline attribute to Video.js videos to allow iPhones to play videos inline on web pages.
|
video-embed-thumbnail-generator.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Video Embed & Thumbnail Generator
|
4 |
Plugin URI: https://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 or LIBAV for encoding.
|
6 |
-
Version: 4.6.
|
7 |
Author: Kyle Gilman
|
8 |
Author URI: https://www.kylegilman.net/
|
9 |
Text Domain: video-embed-thumbnail-generator
|
@@ -60,7 +60,7 @@ function kgvid_default_options_fn() {
|
|
60 |
$edit_others_capable = kgvid_check_if_capable('edit_others_posts');
|
61 |
|
62 |
$options = array(
|
63 |
-
"version" => '4.6.
|
64 |
"embed_method" => "Video.js",
|
65 |
"jw_player_id" => "",
|
66 |
"template" => false,
|
@@ -1137,7 +1137,7 @@ function kgvid_check_ffmpeg_exists($options, $save) {
|
|
1137 |
$exec_enabled = true;
|
1138 |
$test_path = rtrim($options['app_path'], '/');
|
1139 |
$old_locale = kgvid_set_locale(plugin_dir_path(__FILE__).'images/sample-video-h264.mp4'); //fixes UTF-8 encoding problems
|
1140 |
-
$cmd = escapeshellcmd($test_path.'/'.$options['video_app'].' -i "'.plugin_dir_path(__FILE__).'images/sample-video-h264.mp4" -vframes 1 -f mjpeg "'.$uploads['path'].'/ffmpeg_exists_test.jpg').'
|
1141 |
exec ( $cmd, $output, $returnvalue );
|
1142 |
$restore_locale = setlocale(LC_CTYPE, $old_locale);
|
1143 |
}
|
@@ -1150,7 +1150,7 @@ function kgvid_check_ffmpeg_exists($options, $save) {
|
|
1150 |
if ( !file_exists($uploads['path'].'/ffmpeg_exists_test.jpg') ) { //if FFMPEG has not executed successfully
|
1151 |
$test_path = substr($test_path, 0, -strlen($options['video_app'])-1 );
|
1152 |
$old_locale = kgvid_set_locale(plugin_dir_path(__FILE__).'images/sample-video-h264.mp4'); //fixes UTF-8 encoding problems
|
1153 |
-
$cmd = escapeshellcmd($test_path.'/'.$options['video_app'].' -i "'.plugin_dir_path(__FILE__).'images/sample-video-h264.mp4" -vframes 1 -f mjpeg '.$uploads['path'].'/ffmpeg_exists_test.jpg');
|
1154 |
exec ( $cmd );
|
1155 |
$restore_locale = setlocale(LC_CTYPE, $old_locale);
|
1156 |
}
|
3 |
Plugin Name: Video Embed & Thumbnail Generator
|
4 |
Plugin URI: https://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 or LIBAV for encoding.
|
6 |
+
Version: 4.6.27
|
7 |
Author: Kyle Gilman
|
8 |
Author URI: https://www.kylegilman.net/
|
9 |
Text Domain: video-embed-thumbnail-generator
|
60 |
$edit_others_capable = kgvid_check_if_capable('edit_others_posts');
|
61 |
|
62 |
$options = array(
|
63 |
+
"version" => '4.6.27',
|
64 |
"embed_method" => "Video.js",
|
65 |
"jw_player_id" => "",
|
66 |
"template" => false,
|
1137 |
$exec_enabled = true;
|
1138 |
$test_path = rtrim($options['app_path'], '/');
|
1139 |
$old_locale = kgvid_set_locale(plugin_dir_path(__FILE__).'images/sample-video-h264.mp4'); //fixes UTF-8 encoding problems
|
1140 |
+
$cmd = escapeshellcmd($test_path.'/'.$options['video_app'].' -i "'.plugin_dir_path(__FILE__).'images/sample-video-h264.mp4" -vframes 1 -f mjpeg "'.$uploads['path'].'/ffmpeg_exists_test.jpg"').' 2>&1';
|
1141 |
exec ( $cmd, $output, $returnvalue );
|
1142 |
$restore_locale = setlocale(LC_CTYPE, $old_locale);
|
1143 |
}
|
1150 |
if ( !file_exists($uploads['path'].'/ffmpeg_exists_test.jpg') ) { //if FFMPEG has not executed successfully
|
1151 |
$test_path = substr($test_path, 0, -strlen($options['video_app'])-1 );
|
1152 |
$old_locale = kgvid_set_locale(plugin_dir_path(__FILE__).'images/sample-video-h264.mp4'); //fixes UTF-8 encoding problems
|
1153 |
+
$cmd = escapeshellcmd($test_path.'/'.$options['video_app'].' -i "'.plugin_dir_path(__FILE__).'images/sample-video-h264.mp4" -vframes 1 -f mjpeg "'.$uploads['path'].'/ffmpeg_exists_test.jpg"');
|
1154 |
exec ( $cmd );
|
1155 |
$restore_locale = setlocale(LC_CTYPE, $old_locale);
|
1156 |
}
|