Plugin Directory

Changeset 677036


Ignore:
Timestamp:
03/06/2013 07:24:42 PM (13 years ago)
Author:
cmstactics
Message:

Fixed dimensions issue, added defined tags check for encoding and tested compatibility with latest release of WP.

Location:
wp-video-posts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-video-posts/trunk/readme.txt

    r674426 r677036  
    44Tags: video converter, video plugin, ffmpeg, video post
    55Requires at least: 3.2.1
    6 Tested up to: 3.4.2
    7 Stable tag: 1.5.3
     6Tested up to: 3.5.1
     7Stable tag: 1.5.4
    88
    99Upload videos to create custom video posts. With FFMPEG installed, it encodes
     
    130130
    131131== 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
    132137= 1.5.3 =
    133138- 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  
    229229        $capture_image = $options['capture_image'];
    230230    $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';
    233240    $str = $ffmpeg_path."ffmpeg -y -i ".$source." ". $extra ." ".$target;
    234241    //wpvp_dump($str);
     
    278285
    279286    //wpvp_dump('convert width and height '.$width.' '.$height.'...');
     287    if($width!=''&&$width!=''){
     288        $dimensions = ' -s '.$width.'x'.$height.' ';
     289    } else {
     290        $dimensions = '';
     291    }
    280292   
    281         $extra = "-s ${width}x${height} -ar 44100 -b 384k -ac 2 ";
     293        $extra = $dimensions."-ar 44100 -b 384k -ac 2 ";
    282294
    283295    if ($encodeFormat=='mp4') {
     
    288300    //wpvp_dump($str);
    289301    exec($str);
     302    if(!file_exists($target)){
     303        exec($ffmpeg_path."ffmpeg -i ".$source.$dimensions." -acodec libfaac -vcodec libx264 ".$target);
     304    }
    290305
    291306    $prepare = "MP4Box -inter 100  ".$target;
  • wp-video-posts/trunk/wpvp.php

    r674426 r677036  
    44Plugin URI: http://cmstactics.com
    55Description: 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.3
     6Version: 1.5.4
    77Author: Alex Rayan, cmstactics
    88Author URI: http://cmstactics.com
Note: See TracChangeset for help on using the changeset viewer.