Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (65)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (12221)

  • avformat_open_input fails only with a custom IO context

    19 janvier 2017, par Tim

    Running into an odd issue with avformat_open_input, it is failing with :

    Invalid data found when processing input

    But this only happens when I attempt to read the file using a custom AVIOContext.

    My custom code is as follows (error checking omitted for clarity) :

    auto fmtCtx = avformat_alloc_context();
    auto ioBufferSize = 32768;
    auto ioBuffer = (unsigned char *)av_malloc(ioBufferSize);
    auto ioCtx = avio_alloc_context(ioBuffer,
                                   ioBufferSize,
                                   0,
                                   reinterpret_cast<void>(this),
                                   &amp;imageIORead,
                                   NULL,
                                   &amp;imageIOSeek));

    fmtCtx -> pb = ioCtx;
    fmtCtx -> flags |= AVFMT_FLAG_CUSTOM_IO;

    int err = avformat_open_input(&amp;fmtCtx, NULL, NULL, NULL);
    </void>

    imageIOSeek is never called, but properly handles the whence parameter including the AVSEEK_SIZE option. My file data is already loaded in memory, so imageIORead is trivial (returning 0 at EOF) :

    int imageIORead(void *opaque, uint8_t *buf, int buf_size) {
       Image *d = (Image *)buf;
       int rc = std::min(buf_size, static_cast<int>(d->data.size() - d->pos));

       memcpy(buf, d->data.data() + d->pos, rc);
       d->pos += rc;
       return rc;
    }
    </int>

    The data being read is loaded from a file on disk :

    /tmp/25.jpeg

    The following code is able to open and extract the image correctly :

    auto fmtCtx = avformat_alloc_context();
    int err = avformat_open_input(&amp;fmtCtx, "/tmp/25.jpeg", NULL, NULL);

    The project is using a minified version of libavformat including only the formats we need. I don’t believe this is the cause of the problem since the file can be open and handled properly when the path is specified. I haven’t seen any configure options specifically targeting support for custom IO contexts.

    This is the image in question : 25.jpeg

  • g2meet : use av_ceil_log2 instead of a custom function

    1er juillet 2015, par Janne Grunau
    g2meet : use av_ceil_log2 instead of a custom function
    
    • [DH] libavcodec/g2meet.c
  • aacdec : Use avpriv_report_missing_feature() instead of custom logging.

    22 octobre 2013, par Alex Converse
    aacdec : Use avpriv_report_missing_feature() instead of custom logging.
    
    • [DH] libavcodec/aacdec.c