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 (6308)

  • ffmpeg : combine two or three audios into one by lowering the volume of the other

    15 juin 2016, par somya bhargava

    Want to combine some audio files eg :

    1) one long audio file which will act as a background audio
    2) some audio files which will be replaced at specific intervals
    like at 10 sec of the first one

    So final output required is
    audio-1 60 sec
    audio-2 starting from 10 sec to 20 sec with audio-1 at 0.1 volume

  • Append two videos without duplicating FFMPEG

    10 septembre 2021, par Hasindu Lanka

    Let's say we have 2 video files (X,Y) in the same format, codec and dimensions.

    


    X is a longer video with several gigabytes in size. Y is a short 10 second video. I want to append Y to the end of X without creating another copy of X (Because it's big in size)

    


    I have to repeat this process for hours with many 10 second videos arriving one after another.

    


    Currently, I'm concatenating files using ffmpeg.

    


    ffmpeg -f concat -safe 0 -i chunk.list -c copy final-video.mkv

    


    chunk.list contains file names of X and several 10 second videos. After this, X will be deleted and replaced by final-video.mkv. Then, repeat.

    


    But this needs twice the storage capacity and I/O operations. How to do this without creating duplicates ?

    


    It's okay to duplicate these 10 second videos. But duplicating that bigger file X really hurts performance.

    


    Additional info :

    


    All these videos will be encoded with H264, H265, VP8 or VP9 and contained in MKV or MP4 as they are codec copy friendly. Only one of these formats will be used.

    


    This is for a special case screen recorder that's supposed to run on cloud and preemptive remote desktops (Linux).
HTML/JS browser front-end captures the screen and sends to the back-end (Golang) as chunks through HTTP. Network route is undefined and unreliable as there can be firewalls/proxies between the front-end and the back-end. Therefore, we can't use connections like UDP. So the only option is to send video chunks using HTTP.

    


    It's FOSS on https://github.com/HasinduLanka/screencorder

    


  • FFMpeg command in android tutorial

    25 novembre 2013, par Azhagiri

    I want to write a android app that concats two videos

    i tried the following code

       InputStream in=null;
       OutputStream os=null;
       String appFileDirectory = getFilesDir().getPath();
       final String executableFilePath = appFileDirectory + "/ffmpeg";
       final String input ="concat:/mnt/sdcard/input1.mpg|/mnt/sdcrad/input2.mpg";
       File executable=new File(executableFilePath);
       try {
           in = getAssets().open("ffmpeg");
           os = new FileOutputStream(executable);
           int read = 0;
           byte[] bytes = new byte[1024];

           while ((read = in.read(bytes)) != -1) {
               os.write(bytes, 0, read);
           }


       } catch (IOException e) {
           // TODO Auto-generated catch block
           e.printStackTrace();
       }finally {
           if (in != null) {
               try {
                   in.close();
               } catch (IOException e) {
                   e.printStackTrace();
               }
           }
           if (os != null) {
               try {
                   // outputStream.flush();
                   os.close();
               } catch (IOException e) {
                   e.printStackTrace();
               }
           }
       }
       executable.setExecutable(true);
       Button b = (Button)findViewById(R.id.button);
       b.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View view) {
               try {
                   Process p = Runtime.getRuntime().exec(executableFilePath + "-i \""+ input + "\" -c copy /mnt/sdcrd/output.mpg");
               } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
               }
           }
       });

    }

    this code doesn't give any error or it is not crashing but nothing happens when i click the button. I created the ffmpeg build that is compatible with android. So can anyone help me out how to run the command from android java code.