Changeset 53763 in spip-zone


Ignore:
Timestamp:
Oct 27, 2011, 9:10:48 AM (9 years ago)
Author:
kent1@…
Message:

un peu mieux au niveau du fps...

Si dans la conf pas de fps spécifié on prend celui de la source mais si on ne le connait pas ... on force à 24... tant pis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/spipmotion/inc/encodage.php

    r53762 r53763  
    349349                $vcodec .= lire_config("spipmotion/vcodec_$extension_attente") ? "--vcodec ".lire_config("spipmotion/vcodec_$extension_attente") :'';
    350350
    351                 $fps_conf = (intval(lire_config("spipmotion/fps_$extension_attente","30")) > 0) ? lire_config("spipmotion/fps_$extension_attente","30") : 24;
     351                $fps_conf = (intval(lire_config("spipmotion/fps_$extension_attente","30")) > 0) ? lire_config("spipmotion/fps_$extension_attente","30") : ((intval($source['framerate']) > 0) ? intval($source['framerate']) : 24);
    352352                if(intval($source['framerate']) && (intval($source['framerate']) < $fps_conf)){
    353353                        $fps_num = $source['framerate'];
Note: See TracChangeset for help on using the changeset viewer.