
Recherche avancée
Autres articles (85)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (11833)
-
Could not initialize class org.bytedeco.javacpp.avutil version 1.3.2
12 avril 2017, par DmitryI know that this problem has been described there, there, there, there and there. But I don’t understand solution, because I use JavaCV 1.3.2 that include (fixed ?) version of FFmpeg 3.0.2-1.2. I tried to use fixed version of FFmpeg 3.0.2-1.2 from issue, but I have old error :
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.bytedeco.javacpp.Loader.load(Loader.java:464)
at org.bytedeco.javacpp.Loader.load(Loader.java:409)
at org.bytedeco.javacpp.avformat$AVFormatContext.<clinit>(avformat.java:2719)
at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:391)
at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:385)
at Main.main(Main.java:12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
</clinit>My code :
public static void main(String[] args) throws FrameGrabber.Exception {
FrameGrabber frameGrabber = new FFmpegFrameGrabber("/1.mp4");
CanvasFrame canvasFrame = new CanvasFrame("Test");
frameGrabber.start();
for(int i = 0; icode> -
Calling pkill to pause a process with subprocess inside a class in python suspends the python script
31 mars 2017, par muammarI have a class that contains a "blocking method". Inside that method, I am listening to keys to perform some actions. The action in question is
pkill
. Below I am pasting it :def show_control(self, control):
"""docstring for control"""
if control == True:
from mkchromecast.getch import getch, pause
self.controls_msg()
try:
while(True):
key = getch()
if(key == 'p'):
if self.videoarg == True:
print('Pausing Casting Process...')
subprocess.call(['pkill', '-STOP', '-f', 'ffmpeg'])
...It turns out that the
ffmpeg
process is paused, but the python script gets suspended ?. I don’t understand why that is the case. If one creates the same function in a regular script (not inside a class to be clearer) this does not happen. I have tried usingmultithreading
andmultiprocessing
modules without success. What am I doing wrong ?. Thanks. -
Revision 104067 : ajout de class "champ" pour éviter certains chevauchements de blocs dans ...
24 avril 2017, par chankalan@… — Logajout de class "champ" pour éviter certains chevauchements de blocs dans certains cas : https://www.mail-archive.com/spip-zone@rezo.net/msg43339.html