Recherche avancée

Médias (91)

Autres articles (56)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (10476)

  • 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

  • Convert from webm to gif using FFMPEG with minimal loss in quality

    27 novembre 2017, par Neo Herakles

    so I want to convert all my webm files to gif but the quality degraded incredibly, there’s some barely visible lines along the picture, tried using crf to improve it but it doesn’t, could you help me ? Here’s my code :

    @echo off
    setlocal
    for %%G in ("%~dp0\webm\*.webm") do (
       ffmpeg -i "%%G" -pix_fmt rgb24 -crf 17 "%%G.gif"
       )
    )
    endlocal
    pause

    Also, could you instruct me in a way in which I can remove the .webm from the output filename ? it outputs as "(file name).webm.gif"

  • Decrease size of video in android with minimal loss of quality

    26 mai 2023, par Koushik Roy

    I am recording video using camera intent and getting displaying it in a videiview. Now i want to upload it, But it is very big in size. I want to compress it using FFMPEG as I found the many article and in SO also, but i didn't find any clear article with codes.

    


    Can anyone help me with ffmpeg code ?
Is there any other way to do it in android ?
Thanks in advance.