Hi ,

is it possible to set a FIX resolution or at least a FIXED WIDTH for submitted video's...
otherwise if somebody sets 2000*2000 for a video that isn't that size, my whole layout is scewed...

this would make video module perfect for me!
thanks

Comments

fax8’s picture

Title: Fix resolution possible? » Allow setting of a default video resolution
Version: 4.7.x-1.x-dev » master

You should be able to set a default file size at this lines:

function video_submit(&$node) {
  _video_db_preprocess($node); //Make changes to data before updating DB.
}

Simply transform that to

function video_submit(&$node) {
  _video_db_preprocess($node); //Make changes to data before updating DB.
  $node->videox = 640;
  $node->videoy = 480;
}

and you will get a video of resolution 640x480 by default.

This is probably a needed feature we need to implement in the next video module for drupal 5.
Obviosly this should be a configurable setting. Anyone able to create pathes is welcome.

Fabio

jorre’s picture

thanks a lot, this sure helps out...

maybe you could also tell me where to cumtomize the "submit video" screen, so I can hide the X & Y parameter form fields?

it's definitely an awesome module, and I'm sure it will be a release to look forward to in the 5.0!

fax8’s picture

try deleting those line:


$form['video']['videox'] = array(
    '#type' => 'textfield',
    '#title' => t('Video Size Width (x)'),
    '#required' => TRUE,
    '#length' => 4,
    '#maxlength' => 4,
    '#default_value' => $node->videox,
    '#description' => t('Horizontal video pixel size.'));
  $form['video']['videoy'] = array(
    '#type' => 'textfield',
    '#title' => t('Video Size Height (y)'),
    '#required' => TRUE,
    '#length' => 4,
    '#maxlength' => 4,
    '#default_value' => $node->videoy,
    '#description' => t('Vertical video pixel size.'));

Fabio

fax8’s picture

Status: Active » Fixed

default video size will be in place on the upcoming rewrite.

Fabio

rimma’s picture

I try to use video module. above-mentioned featured is really important for me to control the users' configuration.
waiting for next version.

manuj_78’s picture

Status: Fixed » Active

Setting it as active
I think the issues should be closed once the rewrite has been committed and tested by users.
This should go for all the issues under Video which have been marked as fixed just becasue a rewrite has been written. Without testing by users no issue should be marked as fixed

hypertext200’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.