
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (89)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (9640)
-
php and ffmpeg from command line in windows - not working, nothing returns
24 août 2015, par user3725395I’m trying to execute ffmpeg within a website and it never output’s a file, nothing return’s, I have tried it with parameters -version and that works fine.
I can copy and paste the main command into dos and it also works fine.I’m stuck, I have tried many things including shell_exec but to no avail, nothing comes back other than array(0) int(0). help ?
//$cmd = 'C:\ffmpeg.exe ffmpeg -version';
$cmd = "C:\ffmpeg.exe -i C:\1.mp3 -i C:\2.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 C:\out.mp3";
echo exec($cmd, $o, $v);
var_dump($o);
var_dump($v); -
JavaCV - How to handle cases where FFmpegFrameFilter.pull() returns null
20 juin 2018, par Gensoukyou1337Currently I have the basic workflow of pulling frames from one video using
FFmpegFrameGrabber
, filtering them using anFFmpegFrameFilter
, and recording them in anFFmpegFrameRecorder
, as follows :framesLen = vCap.getLengthInFrames();
try {
Frame f;
for(int i = 0; i < framesLen; i++) {
f = vCap.grab();
if(f != null) {
vFilter.push(f);
Frame filtered;// = vFilter.pull();
vRec.setFrameNumber(i);
while((filtered = vFilter.pull()) != null) {
Log.i("ffmpeg_recorder", "processing frame "+i +" "+f+" "+filtered);
vRec.record(filtered);
}
i++;
}
}
} catch (FFmpegFrameGrabber.Exception e) {
exception = e;
} catch (FFmpegFrameRecorder.Exception e) {
exception = e;
} catch (FFmpegFrameFilter.Exception e) {
exception = e;
}
try {
vCap.flush();
vCap.release();
vRec.stop();
vRec.release();
} catch (FFmpegFrameGrabber.Exception e) {
exception = e;
} catch (FFmpegFrameRecorder.Exception e) {
exception = e;
}
if (exception != null) {
Log.e("ffmpeg_exception", exception.getMessage()+"");
return null;
} else {
return outFile+"";
}My current problem is that sometimes
FFmpegFrameFilter.pull()
would return null in that loop, ending withvRec
recording a null frame, causing the final video to get stuck for a few seconds in the same frame.What’s happening in the
FFmpegFrameFilter
when itspull()
returns null ? Is it the case when I try topull()
when it hasn’t finished processing the current frame ? If that’s so, should I just put an emptywhile
loop like this ?...
while((filtered = vFilter.pull()) == null) {/*block until it's NOT null*/}
vRec.record(filtered);
...EDIT :
OK, my proposed solution above doesn’t work - it just goes into an infinite loop. Though I really don’t want to skip those frames.
-
arm : Consistently use proper interworking function returns
3 octobre 2024, par Martin Storsjöarm : Consistently use proper interworking function returns
Use "bx lr", or "pop lr", which do proper mode switching
between thumb and arm modes. A plain "mov pc, lr" does not switch
from thumb mode to arm mode (while in arm mode, it does switch
mode for a thumb caller).This is normally not an issue, as CONFIG_THUMB only is enabled if
the C compiler defaults to thumb ; but stick to patterns that can
do mode switching if needed, for consistency.Signed-off-by : Martin Storsjö <martin@martin.st>