Recherche avancée

Médias (91)

Autres articles (111)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (10259)

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

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

    10 mars 2019, 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.

  • Is it possible to encrypt the entirety of a video by encrypting specific frames ?

    1er février 2015, par Fjotten

    I would have thought that if I encrypted all I-frames, the rest of the video would be encrypted because B- and P-frames are both derived from I-frames. Having done a little bit of testing - randomizing each pixel of an I-frame - it does not seem that this is possible, so I wonder if it is even possible ? To encrypt the entire video do I have to explicitly encrypt every frame ?