Changeset 677036
- Timestamp:
- 03/06/2013 07:24:42 PM (13 years ago)
- Location:
- wp-video-posts/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
wpvp-functions.php (modified) (3 diffs)
-
wpvp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-video-posts/trunk/readme.txt
r674426 r677036 4 4 Tags: video converter, video plugin, ffmpeg, video post 5 5 Requires at least: 3.2.1 6 Tested up to: 3. 4.27 Stable tag: 1.5. 36 Tested up to: 3.5.1 7 Stable tag: 1.5.4 8 8 9 9 Upload videos to create custom video posts. With FFMPEG installed, it encodes … … 130 130 131 131 == Changelog == 132 = 1.5.4 = 133 - Fixed issue with dimensions in the plugin configurations for height and width. 134 - Added a check to the encoded file to determine what tags was used. 135 - Tested with the latest version of Wordpress to ensure compatibility. 136 132 137 = 1.5.3 = 133 138 - Removed a couple of flags in the FFMPEG command due to a number of people's FFMPEG installation not being configured to support these parameters. -
wp-video-posts/trunk/wpvp-functions.php
r674426 r677036 229 229 $capture_image = $options['capture_image']; 230 230 $ffmpeg_path = $options['ffmpeg_path']; 231 232 $extra = '-vframes 1 -s '.$width.'x'.$height.' -ss '.$capture_image.' -f image2'; 231 if($width!=''&&$width!=''){ 232 $dimensions = ' -s '.$width.'x'.$height; 233 } else { 234 $dimensions = ''; 235 } 236 if($capture_image=='') 237 $capture_image = 5; 238 239 $extra = '-vframes 1 '.$dimensions.' -ss '.$capture_image.' -f image2'; 233 240 $str = $ffmpeg_path."ffmpeg -y -i ".$source." ". $extra ." ".$target; 234 241 //wpvp_dump($str); … … 278 285 279 286 //wpvp_dump('convert width and height '.$width.' '.$height.'...'); 287 if($width!=''&&$width!=''){ 288 $dimensions = ' -s '.$width.'x'.$height.' '; 289 } else { 290 $dimensions = ''; 291 } 280 292 281 $extra = "-s ${width}x${height}-ar 44100 -b 384k -ac 2 ";293 $extra = $dimensions."-ar 44100 -b 384k -ac 2 "; 282 294 283 295 if ($encodeFormat=='mp4') { … … 288 300 //wpvp_dump($str); 289 301 exec($str); 302 if(!file_exists($target)){ 303 exec($ffmpeg_path."ffmpeg -i ".$source.$dimensions." -acodec libfaac -vcodec libx264 ".$target); 304 } 290 305 291 306 $prepare = "MP4Box -inter 100 ".$target; -
wp-video-posts/trunk/wpvp.php
r674426 r677036 4 4 Plugin URI: http://cmstactics.com 5 5 Description: WP Video Posts creates a custom post for uploaded videos. You can upload videos of different formats (FLV, F4V, MP4, AVI, MOV, 3GP and WMV) and the plugin will convert it to MP4 and play it using Flowplayer. 6 Version: 1.5. 36 Version: 1.5.4 7 7 Author: Alex Rayan, cmstactics 8 8 Author URI: http://cmstactics.com
Note: See TracChangeset
for help on using the changeset viewer.