Recherche avancée

Médias (0)

Mot : - Tags -/gis

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

Autres articles (67)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (9953)

  • ffmpeg creating mpeg-dash chunk files too slowly resulting in 404 errors

    17 juillet 2021, par Danny

    I have a hardware encoder feeding FFmpeg to create a MPEG-DASH Low Latency stream. It works well for a while, but after letting FFmpeg run for a while and reloading the page there are many 404 errors.

    &#xA;

    When that happens, the dash.js player tries to fetch the segment file on the "live edge" but the file has not been created yet by FFmpeg. For example, after running for 20-30 minutes and loading the web page player, debug code in the web server shows :

    &#xA;

    2021-07-16 16:46:30.64 : GET REQUEST : /data/ott/chunk-stream0-00702.m4s&#xA;2021-07-16 16:46:30.67 : NOT FOUND. Latest files on filesystem:&#xA;    chunk-stream0-00699.m4s.tmp&#xA;    chunk-stream0-00698.m4s&#xA;    chunk-stream0-00697.m4s&#xA;    chunk-stream0-00696.m4s&#xA;    ...&#xA;

    &#xA;

    So you can see the browser requested chunk 702 but the latest on the server is (part of) 699. With 2 second chunks, that is 3-5 seconds of content not yet available.

    &#xA;

    To analyze, I modified FFmpeg's dashenc.c to add a timestamp every time a file is opened which displays like :

    &#xA;

    [dash @ 0x9b17c0] 21:48:52.935 1626443332.935  : dashenc_io_open() - opened /data/ott/chunk-stream0-00060.m4s.tmp&#xA;

    &#xA;

    And loaded the timestamps into Excel.

    &#xA;

    Despite a segment duration of 2.000 seconds, the average time between file opens is 2.011 seconds. Over two hours this accumulated to a 45 second difference between the calculated live edge and the latest file on the server.

    &#xA;

    The HW encoder is set to 25 fps and a GOP size of 5. I've confirmed both by analyzing the H.264 NALUs output by the HW encoder.

    &#xA;

    My Question : Is this a bug in FFmpeg or can I avoid this problem by adjusting the settings of either the HW encoder and/or FFmpeg options ?

    &#xA;

    REFERENCE

    &#xA;

    FFmpeg: Version 4.4 &#xA;Centos 8 &#xA;Apache 2.4.37&#xA;

    &#xA;

    FFmpeg command line (pipe is fed by process reading HW encoder)

    &#xA;

    ffmpeg -re -loglevel verbose -an -f h264 -i pipe:17 -c:v copy \&#xA;-f dash -dash_segment_type mp4 -b:v 1000000 -seg_duration 2.000000 \&#xA;-frag_type duration -frag_duration 0.200000 -target_latency 1 \&#xA;-window_size 10 -extra_window_size 5 -remove_at_exit 1 -streaming 1 \&#xA;-ldash 1 -use_template 1 -use_timeline 0 -write_prft 1 -avioflags direct \&#xA;-fflags &#x2B;nobuffer&#x2B;flush_packets -format_options movflags=&#x2B;cmaf \&#xA;-utc_timing_url /web/be/time.php /data/ott/master.mpd&#xA;

    &#xA;

    Modified dash_io_open() from dashenc.c

    &#xA;

    static int &#xA;dashenc_io_open(AVFormatContext *s, AVIOContext **pb, char *filename, AVDictionary **options)&#xA;{&#xA;    DASHContext *c = s->priv_data;&#xA;    int http_base_proto = filename ? ff_is_http_proto(filename) : 0;&#xA;    int err = AVERROR_MUXER_NOT_FOUND;&#xA;    if (!*pb || !http_base_proto || !c->http_persistent)&#xA;    {&#xA;        err = s->io_open(s, pb, filename, AVIO_FLAG_WRITE, options);&#xA;&#xA;        // My Debug&#xA;        {&#xA;            char buf[20], milli[60];&#xA;            struct timeb tp;&#xA;&#xA;            ftime(&amp;tp); // sec &#x2B; ms&#xA;            struct tm *tmInfo = localtime(&amp;tp.time);&#xA;&#xA;            // 2020-05-15 21:15:12.123&#xA;            strftime(buf, sizeof(buf), "%H:%M:%S", tmInfo);&#xA;            snprintf(milli, 59, "%s.%03d %d.%03d ", buf, tp.millitm, tp.time, tp.millitm);&#xA;&#xA;            av_log(s, AV_LOG_INFO, "%s : dashenc_io_open() - opened %s\n", milli, filename);&#xA;        }&#xA;    }&#xA;    return err;&#xA;}&#xA;

    &#xA;

  • mediastreamvalidator. How can I validate local files

    20 juin 2012, par Agzam

    1) Is there any way to check segmented HLS files if they compliant and correct ?

    I guess mediastreamvalidator from Apple's HTTP Live Streaming Tools should do that, but when I run it against local index.m3u8, it says "Did not receive playlist".

    2) Is there any way to do stream validation on Windows ?

    3) Initially my problem was to do segmenting on Windows, after a lot of hours of searching I've found out that latest ffmpeg can do that. I'm not sure though if it creates correct HLS videos, it doesn't create .m3u8 playlists, which is not a big deal I guess, as long those segments are correct and use Access Unit Delimiter NALs and etc.

  • why doesn't avformat_find_stream_info return with mp3 files

    18 avril 2014, par user1379811

    I have built and am using the latest build of lame, x264 and ffmpeg in my c++ project.

    If I call avformat_find_stream_info with an mp3 file it doesn't return but if I use a .mp4 file instead avformat_find_stream_info returns fine.

    I have tried different mp3 files and all give the same problem. They all seem to start with id3 if that has any effect ?

    I can't read more than 1 frame of data from the mp3 file with avformat_find_stream_info commented out so I'm thinking it's important.

    Can anyone offer a reason for avformat_find_stream_info not returning ? There seemed to be a patch for an endless loop but it seems thats already in utils.c.

    I have also tried to read and decode the mp3 files directly using fread but then I get a mp3 missing header error.

    Thanks.