Recherche avancée

Médias (91)

Autres articles (48)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

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

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (8136)

  • retriving video details with ffprobe in php

    16 mai 2023, par Roohbakhsh Masoud

    i'm using this command for retrieve video information in ubuntu terminal :

    



    ffprobe -show_streams sample.mp4


    



    this command show all information about video in terminal, but when i use this command in php and use exec function to retrieve result , return

    



    string(0) ""
{}


    



    how i can retrieve result in php ?

    



    my code :

    



        public function information($ffmpeg,$file)
    {
      $info = exec("$ffmpeg -show_streams $file");
      return $info;
    }


    


  • retriving video details with ffprobe in php

    15 juillet 2014, par Roohbakhsh Masoud

    i’m using this command for retrieve video information in ubuntu terminal :

    ffprobe -show_streams sample.mp4

    this command show all information about video in terminal, but when i use this command in php and use exec function to retrieve result , return

    string(0) ""
    {}

    how i can retrieve result in php ?

    my code :

       public function information($ffmpeg,$file)
       {
         $info = exec("$ffmpeg -show_streams $file");
         return $info;
       }
  • FFMPEG Drag and Drop sh file

    29 avril 2021, par WFCDefi

    On Windows I have a simple batch file which I drop video files onto to convert to webms, it saves a lot of time as I prefer to just use the same configuration and don't care much about the names.

    


    @echo off 
echo. 
ffmpeg -i %1 -c:v libvpx-vp9 -quality good -cpu-used 2 -b:v 5000k -qmin 15 -qmax 45 -maxrate 500k -bufsize 1500k -framerate 60 -threads 8 -vf scale=-1:1080 -c:a libvorbis -b:a 192k -f webm %1.webm 
pause


    


    I know the .bat file won't really work in Linux (I'm on pop os so pretty much Ubuntu) so with the other lines removed and the %1 changed to $1 it works. It won't do anything if I try dragging and dropping a video file onto it though.

    


    I can type sudo then drag and drop the .sh file followed by a video into a terminal and press enter and it will have the same effect as dragging a video file onto a bat file in Windows.

    


    Is there a way to recreate dragging and dropping a file directly onto another and it executing in Linux or is the terminal the only way ?