Recherche avancée

Médias (91)

Autres articles (31)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce 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 (6661)

  • Revision 44277 : Un peu mieux ... On applique le trim directement dans le squelette ...

    11 juin 2018, par kent1@… — Log

    Un peu mieux ...
    On applique le trim directement dans le squelette avec la balise #FILTRE
    On recache le p à la suppression de la dernière note

  • running ffmpeg command in java Process hangs in waitFor()

    14 février 2021, par Mahesha M

    I'm running ffmpeg command to generate video for given images (img001.jpg, img002.jpg ...) it's creating slide.mp4, but it waits infinitely :

    



    public class Ffmpeg {&#xA;&#xA;public static void main(String[] args) throws IOException, InterruptedException {&#xA;    String path = "E:\\pics\\Santhosh\\FadeOut\\testing";       &#xA;    String cmd = "ffmpeg -r 1/5 -i img%03d.jpg -c:v libx264 -r 30 -y -pix_fmt yuv420p slide.mp4";&#xA;    runScript (path, cmd);&#xA;}&#xA;&#xA;private static boolean runScript(String path, String cmd) throws IOException, InterruptedException {       &#xA;    List<string> commands = new ArrayList<string>();&#xA;    commands.add("cmd");&#xA;    commands.add("/c");&#xA;    commands.add(cmd);&#xA;    ProcessBuilder pb = new ProcessBuilder(commands);&#xA;    pb.directory(new File(path));&#xA;    pb.redirectErrorStream(true);&#xA;    Process process = pb.start();   &#xA;    flushInputStreamReader(process);                &#xA;    int exitCode = process.waitFor();&#xA;    return exitCode == 0;&#xA;}    &#xA;}&#xA;&#xA;private static void flushInputStreamReader (Process process) throws IOException, InterruptedException {&#xA;            BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));&#xA;            String line=null;&#xA;            StringBuilder s = new StringBuilder();&#xA;            while((line=input.readLine()) != null) {            &#xA;                s.append(line);&#xA;            }&#xA;        }&#xA;</string></string>

    &#xA;&#xA;

    Any suggestions ?

    &#xA;&#xA;

    After writing the function flushInputStreamReader, its working

    &#xA;

  • running ffmpeg command in java Process hangs in waitFor()

    9 juin 2015, par Mahesha M

    I’m running ffmpeg command to generate video for given images (img001.jpg, img002.jpg ...) it’s creating slide.mp4, but it waits infinitely :

    public class Ffmpeg {

    public static void main(String[] args) throws IOException, InterruptedException {
       String path = "E:\\pics\\Santhosh\\FadeOut\\testing";      
       String cmd = "ffmpeg -r 1/5 -i img%03d.jpg -c:v libx264 -r 30 -y -pix_fmt yuv420p slide.mp4";
       runScript (path, cmd);
    }

    private static boolean runScript(String path, String cmd) throws IOException, InterruptedException {      
       List<string> commands = new ArrayList<string>();
       commands.add("cmd");
       commands.add("/c");
       commands.add(cmd);
       ProcessBuilder pb = new ProcessBuilder(commands);
       pb.directory(new File(path));
       pb.redirectErrorStream(true);
       Process process = pb.start();  
       flushInputStreamReader(process);                
       int exitCode = process.waitFor();
       return exitCode == 0;
    }    
    }

    private static void flushInputStreamReader (Process process) throws IOException, InterruptedException {
               BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
               String line=null;
               StringBuilder s = new StringBuilder();
               while((line=input.readLine()) != null) {            
                   s.append(line);
               }
           }
    </string></string>

    Any suggestions ?

    After writing the function flushInputStreamReader, its working