Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (91)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (13951)

  • avcodec/asvenc : Don't waste bits encoding non-visible part

    22 mai, par Andreas Rheinhardt
    avcodec/asvenc : Don't waste bits encoding non-visible part
    

    Up until now, the encoder replicated all the border pixels
    for incomplete 16x16 macroblocks. In case the available width
    or height is <= 8, some of the luma blocks of the MB
    do not correspond to actual input, so that we should encode
    them using the least amount of bits. Zeroing the block coefficients
    (as this commit does) achieves this, replicating the pixels
    and performing an FDCT does not.

    This commit also removes the frame copying code for insufficiently
    aligned dimensions.

    The vsynth3-asv[12] FATE tests use a 34x34 input file and are
    therefore affected by this. As the ref updates show, the size
    and checksum of the encoded changes, yet the decoded output
    stays the same.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/asvenc.c
    • [DH] tests/ref/vsynth/vsynth3-asv1
    • [DH] tests/ref/vsynth/vsynth3-asv2
  • Hit noise when playing part of wave file with ALSA PCM interface

    11 décembre 2024, par wangt13

    I am working a WAVE file playing with ALSA PCM interface in Linux, and I heard noise when I played the file quickly and partially.

    &#xA;

    Here is my playing function.

    &#xA;

    static int playback_function(uint8_t *pcm_buf, int pcm_frames)&#xA;{&#xA;    int  rc;&#xA;    uint8_t *buf;&#xA;    int frame_size, sent;&#xA;    int periodsize;&#xA;    int left;&#xA;&#xA;    frame_size = chan * av_get_bytes_per_sample(AV_SAMPLE_FMT_S16);&#xA;    periodsize = sys_periodsize; // 320 in my system&#xA;    buf = pcm_buf;&#xA;    left = pcm_frames;&#xA;    sent = 0;&#xA;&#xA;    while (left > 0) {&#xA;        sent = (left > periodsize) ? periodsize : left;&#xA;        rc = snd_pcm_writei(pcm_handle, buf, sent);&#xA;        printf("rc: %d, sent: %d\n", rc, sent);&#xA;        if (rc == -EAGAIN || (rc >= 0 &amp;&amp; (size_t)rc &lt; sent)) {&#xA;            snd_pcm_wait(pcm_handle, 10);&#xA;        } else if (rc == -EPIPE) {&#xA;            snd_pcm_recover(pcm_handle, rc, 0);&#xA;        } else if (rc &lt; 0) {&#xA;            break;&#xA;        }&#xA;        if (rc > 0) {&#xA;            left -= rc;&#xA;            buf &#x2B;= rc * frame_size;&#xA;        }&#xA;    }&#xA;    return rc;&#xA;}&#xA;

    &#xA;

    The pcm_buf and pcm_frames are got from swr_convert() in libswresample, in my case, the pcm_frames is 1187.

    &#xA;

    By adding printf("rc: %d, sent: %d\n", rc, sent);, I got following logs.

    &#xA;

    rc: 320, sent: 320&#xA;rc: 87, sent: 87&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 87, sent: 87&#xA;rc: 320, sent: 320&#xA;rc: 320, sent: 320&#xA;rc: 103, sent: 103&#xA;

    &#xA;

    With above function, sometimes I can hear noise when playing the WAVE file quickly and repeatly.
    &#xA;So, how can I improve the WAVE playing without the noise ??

    &#xA;

    I changed the above function by using filling 0 to the end of data buffer (to enforce silence).

    &#xA;

    static int playback_test(uint8_t *pcm_buf, int pcm_frames)&#xA;{&#xA;    uint8_t *buf;&#xA;    int trd;&#xA;    int rc;&#xA;    int left;&#xA;    int frame_size, sent;&#xA;    int periodsize;&#xA;    int aligned = 0;&#xA;&#xA;    frame_size = chan * av_get_bytes_per_sample(AV_SAMPLE_FMT_S16);&#xA;    periodsize = sys_periodsize; // 320 in my system&#xA;&#xA;    buf = pcm_buf;&#xA;    left = pcm_frames;&#xA;    aligned = (left/periodsize &#x2B; 1) * periodsize;&#xA;    memset(buf &#x2B; left * frame_size, 0, (aligned - left) * frame_size);&#xA;    sent = 0;&#xA;///left = periodsize; // &lt;== This causes more noise!!&#xA;&#xA;    while (left > 0) {&#xA;        sent = (left > periodsize) ? periodsize : left;&#xA;        rc = snd_pcm_writei(pcm_handle, buf, sent);&#xA;        printf("rc: %d, sent: %d\n", rc, sent);&#xA;        if (rc == -EAGAIN || (rc >= 0 &amp;&amp; (size_t)rc &lt; sent)) {&#xA;            snd_pcm_wait(pcm_handle, 10);&#xA;        } else if (rc == -EPIPE) {&#xA;            snd_pcm_recover(pcm_handle, rc, 0);&#xA;        } else if (rc &lt; 0) {&#xA;            break;&#xA;        }&#xA;        if (rc > 0) {&#xA;            left -= rc;&#xA;            buf &#x2B;= rc * frame_size;&#xA;        }&#xA;    }&#xA;    return rc;&#xA;}&#xA;

    &#xA;

    There is NO improvement as of the noise.

    &#xA;

  • jpeg2000dec : fix tile-part header state reset

    24 octobre 2024, par Pierre-Anthony Lemieux
    jpeg2000dec : fix tile-part header state reset
    

    Fixes https://trac.ffmpeg.org/ticket/11266

    • [DH] libavcodec/jpeg2000dec.c
    • [DH] libavcodec/jpeg2000dec.h