You are here

function _video_render_get_size in Video 6.3

Same name and namespace in other branches
  1. 5 plugins/video_ffmpeg_helper/video_render.php \_video_render_get_size()
  2. 6 plugins/video_ffmpeg_helper/video_render.php \_video_render_get_size()
  3. 6.2 plugins/video_ffmpeg_helper/video_render.php \_video_render_get_size()

Calculate the converted video size basing on the width set on administration. Aspect ration is maintained.

2 calls to _video_render_get_size()
ffmpeg_auto_convert in plugins/ffmpeg.inc
Implementing hook_auto_convert();
zencoder_auto_convert in plugins/zencoder.inc
Implementing hook_auto_convert();

File

plugins/ffmpeg.inc, line 272
Provide a api for video conversion and auto thumbnailing using ffmpeg.

Code

function _video_render_get_size() {
  return variable_get('video_ffmpeg_width', 640) . 'x' . variable_get('video_ffmpeg_height', 480);
}