Version Description
- October 7, 2013 =
- Fixed bug that was setting the global $content_width to 2048 on every page.
Download this release
Release Info
Developer | kylegilman |
Plugin | Video Embed & Thumbnail Generator |
Version | 4.2.2 |
Comparing to | |
See all releases |
Code changes from version 4.2.1 to 4.2.2
- readme.txt +7 -3
- video-embed-thumbnail-generator.php +7 -3
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kyleg
|
|
4 |
Tags: video, video player, video gallery, html5, shortcode, thumbnail, poster, ffmpeg, libav, embed, mobile, webm, ogg, h.264, h264, responsive, mp4
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.7
|
7 |
-
Stable tag: 4.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -22,7 +22,7 @@ You can also use the plugin to create a popup video gallery. The shortcode uses
|
|
22 |
|
23 |
If your video can be played natively in your browser, or if you have FFMPEG or LIBAV installed on your server, you can generate thumbnails from your video. Using either the "Generate" or "Randomize" buttons will create an array to choose from. The "Generate" button will always generate thumbnails from the same frames of your video, evenly spaced. If you don't like them, you can randomize the results with the "Randomize" button. If you want to see the first frame of the video, check the "Force 1st Frame Thumbnail" button. After creating an array of thumbnails you can save them all using the "Save all thumbnails" button.
|
24 |
|
25 |
-
If you know which frame you want to use, click "Choose from video
|
26 |
|
27 |
After you select a thumbnail it will be registered in the Wordpress Media Library and added to the video's attachments. Unused thumbnails will be deleted.
|
28 |
|
@@ -101,7 +101,7 @@ width="720" height="404"]http://www.kylegilman.net/wp-content/uploads/2006/09/Re
|
|
101 |
* `gallery_order="ASC/DESC"` sort order
|
102 |
* `gallery_id="241"` post ID to display a gallery made up of videos associated with a different post
|
103 |
|
104 |
-
I'm not really a software developer. I'm just a film editor with some time on his hands who wanted to post video for clients and wasn't happy with the current state of any available software. But I want to really make this thing work, so please help me out by posting your feedback
|
105 |
|
106 |
== Installation ==
|
107 |
|
@@ -153,7 +153,11 @@ Enter the username & password in the plugin settings "FFMPEG Settings" tab, or u
|
|
153 |
|
154 |
== Changelog ==
|
155 |
|
|
|
|
|
|
|
156 |
= 4.2.1 - October 6, 2013 =
|
|
|
157 |
* Rounded offset values when generating thumbnails with FFMPEG and LIBAV for backwards compatibility with older versions of FFMPEG.
|
158 |
* Added check to ensure server supports ImageMagick or GD libraries necessary to save thumbnails created in the browser.
|
159 |
* Added check to avoid saving thumbnails twice.
|
4 |
Tags: video, video player, video gallery, html5, shortcode, thumbnail, poster, ffmpeg, libav, embed, mobile, webm, ogg, h.264, h264, responsive, mp4
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.7
|
7 |
+
Stable tag: 4.2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
22 |
|
23 |
If your video can be played natively in your browser, or if you have FFMPEG or LIBAV installed on your server, you can generate thumbnails from your video. Using either the "Generate" or "Randomize" buttons will create an array to choose from. The "Generate" button will always generate thumbnails from the same frames of your video, evenly spaced. If you don't like them, you can randomize the results with the "Randomize" button. If you want to see the first frame of the video, check the "Force 1st Frame Thumbnail" button. After creating an array of thumbnails you can save them all using the "Save all thumbnails" button.
|
24 |
|
25 |
+
If you know which frame you want to use, click "Choose from video..." to select it from the video. This will only work for videos that can be played natively in your browser. If you want really fine control you can enter timecode in the "Thumbnail timecode" field. Use `mm:ss` format. You can use decimals to approximate frames. For example, `23.5` will generate a thumbnail halfway between the 23rd and 24th seconds in the video. `02:23.25` would be one quarter of the way between the 143rd and 144th seconds. You can generate as many or as few as you need (up to 99 at a time).
|
26 |
|
27 |
After you select a thumbnail it will be registered in the Wordpress Media Library and added to the video's attachments. Unused thumbnails will be deleted.
|
28 |
|
101 |
* `gallery_order="ASC/DESC"` sort order
|
102 |
* `gallery_id="241"` post ID to display a gallery made up of videos associated with a different post
|
103 |
|
104 |
+
I'm not really a software developer. I'm just a film editor with some time on his hands who wanted to post video for clients and wasn't happy with the current state of any available software. But I want to really make this thing work, so please help me out by posting your feedback on <a href="https://github.com/kylegilman/video-embed-thumbnail-generator/issues?state=open">Github</a>.
|
105 |
|
106 |
== Installation ==
|
107 |
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
= 4.2.2 - October 7, 2013 =
|
157 |
+
* Fixed bug that was setting the global $content_width to 2048 on every page.
|
158 |
+
|
159 |
= 4.2.1 - October 6, 2013 =
|
160 |
+
* Featured images are now set for the post currently being edited, which does not have to be the video's parent.
|
161 |
* Rounded offset values when generating thumbnails with FFMPEG and LIBAV for backwards compatibility with older versions of FFMPEG.
|
162 |
* Added check to ensure server supports ImageMagick or GD libraries necessary to save thumbnails created in the browser.
|
163 |
* Added check to avoid saving thumbnails twice.
|
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 or LIBAV for encoding. <a href="options-general.php?page=video-embed-thumbnail-generator/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: 4.2.
|
7 |
Author: Kyle Gilman
|
8 |
Author URI: http://www.kylegilman.net/
|
9 |
|
@@ -47,7 +47,7 @@ function kgvid_default_options_fn() {
|
|
47 |
$upload_capable = kgvid_upload_capable();
|
48 |
|
49 |
$options = array(
|
50 |
-
"version"=>4.
|
51 |
"embed_method"=>"Video.js",
|
52 |
"template"=>false,
|
53 |
"template_gentle"=>"on",
|
@@ -3310,7 +3310,7 @@ function kgvid_video_attachment_template() {
|
|
3310 |
global $post;
|
3311 |
global $wp_query;
|
3312 |
global $content_width;
|
3313 |
-
|
3314 |
$options = get_option('kgvid_video_embed_options');
|
3315 |
|
3316 |
$kgvid_video_embed = array ( 'enable' => 'false' ); //turned off by default
|
@@ -3322,6 +3322,9 @@ function kgvid_video_attachment_template() {
|
|
3322 |
|
3323 |
if ( array_key_exists('enable', $kgvid_video_embed) && $kgvid_video_embed['enable'] == 'true' && (strpos($post->post_mime_type,"video") !== false || array_key_exists('sample', $kgvid_video_embed)) ) {
|
3324 |
|
|
|
|
|
|
|
3325 |
remove_action('wp_head', '_admin_bar_bump_cb'); //don't show the WordPress admin bar if you're logged in
|
3326 |
add_filter( 'show_admin_bar', '__return_false' );
|
3327 |
|
@@ -3339,6 +3342,7 @@ function kgvid_video_attachment_template() {
|
|
3339 |
echo (do_shortcode( $shortcode ));
|
3340 |
echo (wp_footer());
|
3341 |
echo '</body></html>';
|
|
|
3342 |
exit;
|
3343 |
}
|
3344 |
}
|
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 or LIBAV for encoding. <a href="options-general.php?page=video-embed-thumbnail-generator/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: 4.2.2
|
7 |
Author: Kyle Gilman
|
8 |
Author URI: http://www.kylegilman.net/
|
9 |
|
47 |
$upload_capable = kgvid_upload_capable();
|
48 |
|
49 |
$options = array(
|
50 |
+
"version"=>4.22,
|
51 |
"embed_method"=>"Video.js",
|
52 |
"template"=>false,
|
53 |
"template_gentle"=>"on",
|
3310 |
global $post;
|
3311 |
global $wp_query;
|
3312 |
global $content_width;
|
3313 |
+
|
3314 |
$options = get_option('kgvid_video_embed_options');
|
3315 |
|
3316 |
$kgvid_video_embed = array ( 'enable' => 'false' ); //turned off by default
|
3322 |
|
3323 |
if ( array_key_exists('enable', $kgvid_video_embed) && $kgvid_video_embed['enable'] == 'true' && (strpos($post->post_mime_type,"video") !== false || array_key_exists('sample', $kgvid_video_embed)) ) {
|
3324 |
|
3325 |
+
$content_width_save = $content_width;
|
3326 |
+
$content_width = 2048;
|
3327 |
+
|
3328 |
remove_action('wp_head', '_admin_bar_bump_cb'); //don't show the WordPress admin bar if you're logged in
|
3329 |
add_filter( 'show_admin_bar', '__return_false' );
|
3330 |
|
3342 |
echo (do_shortcode( $shortcode ));
|
3343 |
echo (wp_footer());
|
3344 |
echo '</body></html>';
|
3345 |
+
$content_width = $content_width_save; //reset $content_width
|
3346 |
exit;
|
3347 |
}
|
3348 |
}
|