Recherche avancée

Médias (91)

Autres articles (107)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie 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 (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (9630)

  • Running ffmpeg command using shell_exec in php as a background process in windows

    2 octobre 2014, par Vedant Terkar

    I’m trying to convert a video from .mp4 to .flv in php using :

    shell_exec("ffmpeg -i input.mp4 output.flv 1>output.txt 2>&1");

    Also I am taking output of entire process in output.txt file to use it in creation of progress bar in javascript(that’s not the problem here).

    The problem is :
    if video(input.mp4) size is>50Mb then it takes too long to complete shell_exec (>30secs). which hangs the UI unnecessarily.

    So what i want to know is :

    • Is there any way to make shell_exec work together with rest of the script ?

    • I need only to initiate ffmpeg.exe via php script and then php script can terminate.

    • Once the process is initiated javascript will start its magic(at client side).

    So I need to execute shell_exec async. with rest of the script. and once the process is initiated the script should inform client by simply echoing. It should not wait for ffmpeg.exe to complete its working. Is it possible ?

    I’ve seen several similar questions on SO, many of them describing the same problem

    ex :

    Run a ffmpeg process in the background

    Run PHP Task Asynchronously

    ffmpeg Progress Bar - Encoding Percentage in PHP

    Can ffmpeg show a progress bar ?

    etc.

    BUT

    They all were using linux OS’s or Using curl. I’m using windows 8 (wamp without curl and any other add-on except ffmpeg.exe).

    So Is it possible ? can experts here please help me one more time ?

    Thanks in advance.

  • how to enable libvorbis codec in ffmpeg windows ? and how convert from .mov to .webm

    22 juillet 2014, par Amey

    I am using ffmpeg-20140717-git-fa6716c-win64-shared latest one and they have mentioned
    — enable-libvirbose .

    but once I run the command to convert .mov to .webm then its saying unknown encoder libvorbis

    I am not able to enable libvorbis in ffmpeg windows.

    what command to enable any codec.

    and I am trying to convert .mov to .webm format with this command

    ffmpeg -i input.mov -codec:v libvpx -quality good -cpu-used 0 -b:v 225k -qmin 10 -qmax 42 -maxrate 300k -bufsize 1000k -threads 2 -vf scale=-1:560 -codec:a libvorbis -b:a 128k -pass 2 -f webm output.webm

    but its having an error of :

    Unable to parse option value "-1" as pixel format

    Error setting option pix_fmt to value -1

    and even in command I added some -pix_fmt value like

    1] -pix_fmt yuv420p
    2] -pix_fmt yuv422p
    and many more but still giving same error as I have mentioned...

    and my .mov file is very high HD file.

    please guide me what to write

    Thank You.

  • Tests : Fix newline expectation on Windows

    9 novembre 2016
    Tests : Fix newline expectation on Windows
    

    Closes #622