Recherche avancée

Médias (91)

Autres articles (47)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang 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.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (7574)

  • How can I reset the path of FFMPEG in Java ?

    30 octobre 2018, par Figgyja

    I accidentally set the path for FFMPEG to a different folder, and I can’t change it back.

    I’m using Processing (the API and its IDE) and the user created Video Export library to capture and write an mp4 video file. The library required FFMPEG, so I downloaded and installed it. After I installed it, I ran the code, and the library called Java to request the path of FFMPEG. I wrongly set the path to a different folder, which I eventually deleted. I knew I set it to the wrong folder, and ran the code again to see if I could trigger the Java prompt again to reset the folder.


    The console response I received was : (I’m sure most of it doesn’t have to do with the actual issue. However, I wanted to show all of it in case it somehow does.)

    Oct 24, 2016 10:23:25 PM java.util.prefs.WindowsPreferences
    WARNING : Could not open/create prefs root node Software\JavaSoft\Prefs
    at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
    java.io.IOException : Cannot run program
    "C :...\Processing\Octree_Graphics\data\FFMPEG\ff-prompt.bat" :
    CreateProcess error=2, The system cannot find the file specified at
    java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at
    com.hamoid.VideoExport.startFfmpeg(Unknown Source) at
    com.hamoid.VideoExport.initialize(Unknown Source) at
    com.hamoid.VideoExport.saveFrame(Unknown Source) at
    Octree_Graphics.draw(Octree_Graphics.java:90) at
    processing.core.PApplet.handleDraw(PApplet.java:2399) at
    processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:731)
    at
    jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    at
    jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    at
    jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    at
    jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759) at
    com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
    at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
    at
    com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
    at java.util.TimerThread.mainLoop(Timer.java:555) at
    java.util.TimerThread.run(Timer.java:505) Caused by :
    java.io.IOException : CreateProcess error=2, The system cannot find the
    file specified at java.lang.ProcessImpl.create(Native Method) at
    java.lang.ProcessImpl.(ProcessImpl.java:386) at
    java.lang.ProcessImpl.start(ProcessImpl.java:137) at
    java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 17 more
    VideoExport error : Ffmpeg failed. Study
    C :...\Processing\Octree_Graphics\basic.mp4.txt for more details.


    I need to find a way to reset the path of FFMPEG that Java has. I have tried uninstalling and reinstalling the library, but I haven’t tried Java (I don’t want to mess with anything it has in its current state).

    P.S. The file listed at the end of the console response (basic.mp4.txt) was empty because it had not begun writing to the file yet.

  • How to reduce CPU usage on ffmpeg when recording screen (Mac)

    23 septembre 2018, par Gabrielle

    I am trying to record my screen using ffmpeg, but the CPU usage grows A LOT, it gets to 85% of CPU and 20 threads... after 1 hour recording it is impossible to use the computer.

    I’ve tried to set threads=2 to reduce the 20 (I can see the threads on the Activity Monitor) but it didn’t work at all..

    This is the command I am using :

    ffmpeg -threads 2 -f avfoundation -i 1 -capture_cursor 1 -capture_mouse_clicks 1 -video_size 2560x1600 -b:v 2M -maxrate 2M -bufsize 1.5M -tune zerolatency -crf 17 -preset ultrafast -pix_fmt yuv420p -qp 0 -r 20 video.mkv -y -an

    I’ve tried to use .mkv and .mov and there is not much of a difference, others shows a very poor quality, I’ve tried to increase crf, decrease b and maxrate.

    Any idea of how to reduce the CPU usage ? I am already with a terrible video quality (transitions are a mess) and on top of that, I have my computer very slow...

    I know that stack already has some answers to it, but (1) none of them solved/helped my issue ; (2) they are a little bit old, so, maybe new versions came with new solutions to it...

  • HTML5 mp4 video autoplay issue

    8 août 2018, par Fernando Guimarães

    I am doing a website that requires a 16s video to autoplay on the frontpage, pretty standard. But it has some issues, on firefox it tells me that the video could not be decoded, and on chrome autoplaying just works sometimes.

    The original video .mov (1Gbs) was converted with ffmpeg to .mp4 (30Mbs).

    ffmpeg -i 30389617-4k.mov out.mp4

    My HTML video code is the following :

    <video class="embed-responsive-item" src="assets/output.mp4" type="video/mp4" autoplay="autoplay" loop="loop"></video>

    And if helpful, my CSS :

    video {
       object-fit: fill;

       position: relative;
       z-index: 1;
       max-height: 100vh;
       width: 100%;
    }

    It’s a nodeJS project, the video is located inside /public/assets.
    Who can I fix this mess ? Is there any good practice I may be missing ?

    Regards