Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (74)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

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

  • Android ffmpeg using

    6 juin 2012, par Vardan Gevorgyan

    I have successfully compiled ffmpeg for android.
    I have wrote simple application which just open mp4 file :

    int main(int argc, char * argv[])
    {
       av_register_all();

       __android_log_write(ANDROID_LOG_INFO, "NDK", "Opening file: /sdcard/test.mp4...");

       if (avformat_open_input(&pFormatCtx, "/sdcard/test.mp4", NULL, NULL) != 0) {
           __android_log_write(ANDROID_LOG_INFO, "NDK", "file not opened\n");
           return -1;
       }
       __android_log_write(ANDROID_LOG_INFO, "NDK", "file opened\n");
    }

    When I run this code the C code crashes here :

    06-06 18:22:42.629: I/DEBUG(31):          #00  pc 00159804  /data/data libffmpeg.so
    06-06 18:22:42.629: I/DEBUG(31):          #01  lr 809465dc  /data/data libffmpeg.so

    ndk-stack write :

    Stack frame #00  pc 00159804  /data/data/.../lib/libffmpeg.so: Routine av_opt_set_dict in libavutil/opt.c:552

    Which is av_opt_set_dict function :

    int av_opt_set_dict(void *obj, AVDictionary **options)
    {
       AVDictionaryEntry *t = NULL;
       AVDictionary    *tmp = NULL;
       int ret = 0;

       while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) {
           ret = av_set_string3(obj, t->key, t->value, 1, NULL);
           if (ret == AVERROR_OPTION_NOT_FOUND)
               av_dict_set(&tmp, t->key, t->value, 0);
           else if (ret < 0) {
               av_log(obj, AV_LOG_ERROR, "Error setting option %s to value %s.\n", t->key, t->value);
               break;
           }
           ret = 0;
       }
       av_dict_free(options);
       *options = tmp;
       return ret;
    }

    552 line is :

    while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) {

    This code working on my linux machine (of course with .so for linux, for android I use ndk built .so file), but not under android.

    Also, it's working on my rooted HTC Desire Z, but not on emulator or un-rooted device.

    Here I found the post that I need to change libavformat/file.c file_check function :

    static int file_check(URLContext *h, int mask)
    {
       struct stat st;
       int ret = stat(h->filename, &st);
       if (ret < 0)
           return AVERROR(errno);

       ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ  : 0;
       ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;

       return ret;
    }

    to

    static int file_check(URLContext *h, int mask)
    {
       struct stat st;
       int ret = stat(h->filename, &st);
       if (ret < 0)
           return AVERROR(errno);

       ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ  : 0;
       ret |= st.st_mode&S_IRGRP ? mask&AVIO_FLAG_READ  : 0;
       ret |= st.st_mode&S_IROTH ? mask&AVIO_FLAG_READ  : 0;
       ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;
       ret |= st.st_mode&S_IWGRP ? mask&AVIO_FLAG_WRITE  : 0;
       ret |= st.st_mode&S_IWOTH ? mask&AVIO_FLAG_WRITE  : 0;


       return ret;
    }

    but it wasn't help.

    Any suggestions ?

    Thanks

  • doc : chromaprint

    4 décembre 2018, par Gyan Doshi
    doc : chromaprint
    

    Add entry in external library list and add details to muxer entry.

    • [DH] doc/general.texi
    • [DH] doc/muxers.texi
  • doc : libgme

    4 décembre 2018, par Gyan Doshi
    doc : libgme
    

    Add entry in external library list and add details to demuxer entry.

    • [DH] doc/demuxers.texi
    • [DH] doc/general.texi