Recherche avancée

Médias (1)

Mot : - Tags -/berlin

Autres articles (70)

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

  • 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" ;

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10928)

  • rtmppkt : Repeat the full 32 bit timestamp for chunking continuation packets

    14 janvier 2015, par Martin Storsjö
    rtmppkt : Repeat the full 32 bit timestamp for chunking continuation packets
    

    This fixes sending chunked packets (packets larger than the output
    chunk size, which often can be e.g. 4096 bytes) with a timestamp delta
    (or absolute timstamp, if it’s a timestamp step backwards, or the
    first packet of the stream) larger than 0xffffffff.

    The RTMP spec explicitly says (in section 5.3.1.3.) that packets of
    type 3 (continuation packets) should include this field, if the
    previous non-continuation packet had it included.

    The receiving code handles these packets correctly.

    Pointed out by Cheolho Park.

    CC : libav-stable@libav.org
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavformat/rtmppkt.c
  • What is the full code to execute a ffmpeg command in java [on hold]

    16 janvier 2015, par user2303069

    I did the following and only got 0kb output file :
    File encodingFile = new File("c :\ffmpeg\bin\output.mp4") ;
    encodingFile.createNewFile() ;

                       Process process = new ProcessBuilder("c:\\ffmpeg\\bin\\ffmpeg.exe", "-i", "c:\\ffmpeg\\bin\\input.mp4",
                               "-y", "-s", "1440" + "x" + "-1", "-vcodec", "libx264", "c:\\ffmpeg\\bin\\outfile.mp4").start();

                       is = process.getInputStream();

                       byte[] resultBuff = new byte[0];
                       byte[] buff = new byte[1024];
                       int k = -1;
                       while((k = is.read(buff, 0, buff.length)) > -1) {
                           byte[] tbuff = new byte[resultBuff.length + k]; // temp buffer size = bytes already read + bytes last read
                           System.arraycopy(resultBuff, 0, tbuff, 0, resultBuff.length); // copy previous bytes
                           System.arraycopy(buff, 0, tbuff, resultBuff.length, k);  // copy current lot
                           resultBuff = tbuff; // call the temp buffer as your result buff
                       }
                       fos=new FileOutputStream(encodingFile);
                       fos.write(resultBuff, 0,resultBuff.length );
                       gui.textArea1.append("\n"+resultBuff.length + " bytes read.");
                       //return resultBuff;
                       try {
                           // if you want to wait for the process to finish
                           process.waitFor();
                            gui.textArea1.append("\n+++++++Finished while converting!++++++++\n");
                       } catch (InterruptedException ex) {
                            gui.textArea1.append("\nInterruptedException: "+ex.getMessage());
                       }

                   }catch(IOException ex){
                       gui.textArea1.append("\nIOException converting: "+ex.getMessage());
                   }finally{
                       try{
                           if(is!=null){
                               is.close();
                           }
                           if(fos!=null){
                               fos.close();
                           }
                       }catch(IOException ioe){
                           gui.textArea1.append("\nClosing streams while converting:"+ioe.getMessage());
                       }
                   }

    My question is how to get back a converted file using ffmpeg in java. So far I got empty files. It’s like nothing happens during the converting process. I got the code from web(here) and modified it according to my desire so can you just tell me how to do this correctly ? Thanks a lot.

  • hevc : pass the full HEVCNAL struct to decode_nal_unit

    25 janvier 2015, par Hendrik Leppkes
    hevc : pass the full HEVCNAL struct to decode_nal_unit
    

    This enables decode_nal_unit to access additional fields added in
    subsequent commits.

    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DBH] libavcodec/hevc.c