Recherche avancée

Médias (0)

Mot : - Tags -/images

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (78)

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

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

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

Sur d’autres sites (8270)

  • Evolution #2173 : Date de création / publication

    22 septembre 2017, par Julien -

    Ci-dessous, ce que j’ai utilisé sur des objets éditoriaux maison et pour lesquelles j’ai les colonnes suivantes :

    • date_crea (création)
    • date_fpubli (1ere publication)

    Pipeline "pre_insertion" :

    // Fixer la date de création sur certains objets.
    $objets_date_crea = [’spip_butternuts’, ’spip_potimarrons’, ’spip_citrouilles’] ;
    if (in_array($flux[’args’][’table’], $objets_date_crea)) 
        $flux[’data’][’date_crea’] = date(’Y-m-d H-i-s’) ;
    
    

    Pipeline "post_edition" :

    // Changement de statut
    if ($flux[’args’][’action’] == ’instituer’) 
    

    // Fixer la date de premiere publication sur certains objets.
    $objets_date_fpubli = [’spip_butternuts’, ’spip_potimarrons’, ’spip_citrouilles’] ;
    if (in_array($flux[’args’][’table’], $objets_date_fpubli))

    // Si l’objet passe en statut publié.
    if ($flux[’data’][’statut’] == ’publie’ and $flux[’args’][’statut_ancien’] != ’publie’)

    // La date de première publication est-elle déjà fixée ?
    $table = $flux[’args’][’table’] ;
    $primary = id_table_objet($table) ;
    $id_objet = intval($flux[’args’][’id_objet’]) ;

    $notFixed = sql_countsel($table, "$primary = $id_objet and date_fpubli like ’0000-00-00%’") ;
    // Si non, on la fixe.
    if ($notFixed)
    $flux[’data’][’date_fpubli’] = $flux[’data’][’date’] ;

    $data = array(’date_fpubli’ => $flux[’data’][’date_fpubli’]) ;
    sql_updateq($table, $data, "$primary=$id_objet") ;



  • Anomalie #4549 (En cours) : Accessibilité du date picker

    13 septembre 2020, par nicod _

    Je ré-ouvre le ticket pour la notion de format attendu.

    On peut utiliser cette syntaxe pour préciser aux lecteurs d’écran le format de la date, sans qu’il n’apparaisse sur écran :

    <span class="CodeRay"><span class="tag">span> <span class="attribute-name">for</span>=<span class="string"><span class="delimiter">"</span><span class="content">champ_date</span><span class="delimiter">"</span></span><span class="tag">></span>Date<span class="tag"></span>
    <span class="tag">span> <span class="attribute-name">hidden</span> <span class="attribute-name">id</span>=<span class="string"><span class="delimiter">"</span><span class="content">date_desc</span><span class="delimiter">"</span></span><span class="tag">></span>Saisir une date sous la forme jj/mm/aaaa<span class="tag"></span>
    <span class="tag">span> <span class="attribute-name">type</span>=<span class="string"><span class="delimiter">"</span><span class="content">text</span><span class="delimiter">"</span></span> <span class="attribute-name">id</span>=<span class="string"><span class="delimiter">"</span><span class="content">champ_date</span><span class="delimiter">"</span></span> <span class="attribute-name">name</span>=<span class="string"><span class="delimiter">"</span><span class="content">date</span><span class="delimiter">"</span></span> <span class="attribute-name">aria-describedby</span>=<span class="string"><span class="delimiter">"</span><span class="content">date_desc</span><span class="delimiter">"</span></span><span class="tag">></span>
    </span></span></span></span>

    A faire dans le plugin saisies également.

  • FFMPEG Stream series of pictures over network

    11 septembre 2015, par Commodore63

    I would like to generate video frames on one computer and stream them to another computer to be manipulated and displayed. I want to do this programatically, because the source images are generated from a 3rd party c++ library and on the receiving end I want to manipulate the images before displaying them. I have been pulling my hair out trying FFMPEG. I got the encoding example to work, but am not sure what to do after that. I have just about googled everything i could think of but cannot figure out which FFMPEG library/function to call once I have a stuffed AVPacket. It seems that I need to use either the AVIO or AVFormat or the muxer but it is not clear how to initialize and get them working. I would appreciate any help you could offer.

    To provide some context I have the example ’decoding_encoding.c’ which is provided with ffmpeg working. Here is the spot that I am struggling with :

           /* encode the image */
           ret = avcodec_encode_video2(c, &amp;pkt, frame, &amp;got_output);
           if (ret &lt; 0) {
               fprintf(stderr, "Error encoding frame\n");
               exit(1);
           }

           if (got_output) {
               printf("Write frame %3d (size=%5d)\n", i, pkt.size);
               fwrite(pkt.data, 1, pkt.size, f);

               //
               // instead of writing to a file, i want to stream to a network
               // What do I need to do with pkt to do that?
               //
               av_free_packet(&amp;pkt);
           }

    Most documentation (and the Dranger tutorial) focus on reading and writing files. I do not need to use a file. I want to stream video over a network. It seems like I need AVFormat and AVio but I jsut can’t figure out how they fit together.