Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (88)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • La gestion des forums

    3 novembre 2011, par

    Si les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
    Accès à l’interface de modération des messages
    Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
    S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)

Sur d’autres sites (11511)

  • Decode Frame into a byte array to IplImage

    20 février 2015, par Ernesto Luis

    I have a .drv file with 4 channels of videos. I already remove the owner headers of each frame and I get a byte array that contains the frame bytes in Mpeg4 without any header. So what I need is decode this frame (byte array) using javaCv / ffmpeg to obtain a IplImage or .jpeg image.
    Here you have some code for ideas.

    public static void main(String[] args) throws IOException

       byte [] dvr1= new byte[8*1024];
       byte [] dvr;      
       try {  

          System.out.println("Leyendo...");    
          FileInputStream fileInput= new FileInputStream("D:\\muestra.drv");
          ByteArrayOutputStream baos= new ByteArrayOutputStream();

          if(fileInput!=null){
                BufferedInputStream bufferedInput = new BufferedInputStream(fileInput);

          // Streams y buffers de escritura.


           //Leer el fichero completo y ponerlo en memoria
                   int leidos = 0;
                    while((leidos= bufferedInput.read(dvr1))>=0){
                       baos.write(dvr1, 0, leidos);
                    }
                    //Pasar el contenido del fichero almacenado en memoria al arreglo de Bytes                        
                         dvr= baos.toByteArray();
                         baos.reset();
                         baos.close();
                         int lon= dvr.length;  


                     //Buscar el comienzo del header
                         int offset=0;
                         while(offset=dvr.length)
                                 break;
                         }

                         byte[] head= Arrays.copyOfRange(dvr, offset, offset+32);
                         offset+=32;
                             BasicHeader bHeader= new BasicHeader(head);
                             ExtraHeader xHeader= new ExtraHeader(head);
                             offset+=xHeader.SuperExtraSize;
                             PESHeader pesHeader= new PESHeader(Arrays.copyOfRange(dvr, offset,offset+32));
                             offset+=32;
                             byte[]frame;  

                             if(offset+bHeader.Size/ Here is the problem
                                     DecodeFrame(frame);                            

                         }                

        //  System.out.println("No se encontro el archivo");
       } catch (java.lang.Exception e) {
           // TODO: handle exception
            System.out.println(e.getMessage());
       }
  • Anomalie #3389 : SVP (?) télécharge les zip 2 fois

    17 février 2015, par marcimat ☺☮☯♫

    Les logs me disent qu’ils appellent 2 fois lance-requête. J’ai mis un spip_log de tous les paramètres de lance_requête. On voit bien le HEAD, puis le GET.

    ...
    Feb 17 10:40:25 127.0.0.1 (pid 7274) plugins-dist/svp/inc/svp_actionner.php:L137:log()::Pri:info : Faire do_geton avec Porte Plume Equation
    Feb 17 10:40:25 127.0.0.1 (pid 7274) plugins-dist/svp/inc/svp_actionner.php:L137:log()::Pri:info : Recuperer l’archive : porteplume_equation.zip
    Feb 17 10:40:25 127.0.0.1 (pid 7274) plugins-dist/svp/action/teleporter.php:L29:action_teleporter_composant_dist()::Pri:info : http,http://files.spip.org/spip-zone/porteplume_equation.zip,../plugins/auto/pp_latex/v0.3.3
    Feb 17 10:40:25 127.0.0.1 (pid 7274) ecrire/inc/flock.php:L524:sous_repertoire()::Pri:info : creation ../plugins/auto/pp_latex/
    

    Feb 17 10:40:25 127.0.0.1 (pid 7274) ecrire/inc/distant.php:L1074:lance_requete()::Pri:info : HEAD, http, , files.spip.org, /spip-zone/porteplume_equation.zip, 80, , , , , HTTP/1.0,
    Feb 17 10:40:25 127.0.0.1 (pid 7274) ecrire/inc/distant.php:L1128:lance_requete()::Pri:info : Recuperer /spip-zone/porteplume_equation.zip sur files.spip.org:80 par Resource id #24

    Feb 17 10:40:25 127.0.0.1 (pid 7274) ecrire/inc/distant.php:L1074:lance_requete()::Pri:info : GET, http, , files.spip.org, /spip-zone/porteplume_equation.zip, 80, , 1, , , HTTP/1.0,
    Feb 17 10:40:25 127.0.0.1 (pid 7274) ecrire/inc/distant.php:L1128:lance_requete()::Pri:info : Recuperer /spip-zone/porteplume_equation.zip sur files.spip.org:80 par Resource id #28

    Feb 17 10:40:26 127.0.0.1 (pid 7274) ecrire/inc/distant.php:L94:copie_locale()::Pri:info : copie_locale : recuperation http://files.spip.org/spip-zone/porteplume_equation.zip sur ../tmp/cache/chargeur/v0.3.3-f76fd71c-porteplume_equation.zip taille 203163 OK
    Feb 17 10:40:26 127.0.0.1 (pid 7274) plugins-dist/svp/teleporter/http_deballe_zip.php:L130:teleporter_http_charger_zip()::Pri:info : charger_decompresser OK pour paquet : ../tmp/cache/chargeur/v0.3.3-f76fd71c-porteplume_equation.zip
    Feb 17 10:40:26 127.0.0.1 (pid 7274) plugins-dist/svp/inc/svp_actionner.php:L137:log()::Pri:info : Demande d’activation de : auto/pp_latex/v0.3.3
    ...

  • Problems accessing codecs with ggplot and gganimate

    19 décembre 2016, par noLongerRandom

    Using gganimate. Can’t figure out how to properly access functionality of ffmpeg, specifically I want to change the codec I’m using in the video file I’m outputting.

    # load packages
    library(ggplot)
    library(animation)
    library(gganimate)

    # Here's my data.frame
    myDf <- data.frame(
       year = c(1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014),
       bottom50 = c(0.195, 0.191, 0.187, 0.192, 0.196, 0.205, 0.207, 0.210, 0.209, 0.204, 0.203, 0.204, 0.205, 0.203, 0.202, 0.200, 0.200, 0.201, 0.199, 0.195, 0.190, 0.183, 0.179, 0.179, 0.177, 0.172, 0.169, 0.169, 0.168, 0.166, 0.158, 0.159, 0.158, 0.154, 0.151, 0.148, 0.149, 0.148, 0.146, 0.149, 0.148, 0.145, 0.142, 0.138, 0.135, 0.137, 0.137, 0.136, 0.130, 0.127, 0.123, 0.127, 0.125), top1 = c(0.126, 0.127, 0.129, 0.128, 0.126, 0.123, 0.122, 0.115, 0.110, 0.111, 0.111, 0.109, 0.106, 0.105, 0.105, 0.107, 0.108, 0.111, 0.107, 0.110, 0.112, 0.115, 0.125, 0.125, 0.122, 0.133, 0.149, 0.145, 0.145, 0.139, 0.150, 0.146, 0.147, 0.153, 0.160, 0.166, 0.169, 0.177, 0.183, 0.173, 0.171, 0.172, 0.183, 0.194, 0.201, 0.199, 0.195, 0.185, 0.198, 0.196, 0.208, 0.196, 0.202)
    )

    #Basic plot
    p <- ggplot(myDf, aes(x = year, y = bottom50, frame = year)) +
       geom_line(color = "dodgerblue") +
       geom_line(aes(y = top1), color = "darkred")

    The non-animated version gets me what I want :

    enter image description here

    And I get an animation version output to video with :

    gganimate(p, interval = .1, title_frame = FALSE, "income.mp4")

    That’s fine, but I want to change some the output parameters, specifically : alter the dimensions, the frame rate, and use a different codec.

    # change some of the options
    ani.options(ani.height = 1080, ani.width = 1920,
               interval = 0.04166667, other.opts = "-vcodec qtrle -f mov")
    # re-animate
    gganimate(p, title_frame = FALSE, "income.mov")

    That gives me the following error :

    Error in animation_saver(saver, filename) :
     Don't know how to save animation of type mov

    I’m using ’.mov’ as my file extension because I’m trying to change to the Animation codec (so it’s no longer a .mp4 wrapper). I’ve got ffmpeg installed, so this is probably a syntax issue. But the documentation isn’t very clear here ; gganimate doesn’t have any documentation on changing codecs (or outputting any video besides an mp4), and the animation package is light on specifics as well.