Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (107)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (10555)

  • Revision 7ab9a9587b : Remove Wextra warnings from vp9_sad.c As a side-effect, the max_sad check is re

    13 mai 2014, par Deb Mukherjee

    Changed Paths :
     Modify /test/sad_test.cc


     Modify /vp8/common/rtcd_defs.pl


     Modify /vp8/common/sad_c.c


     Modify /vp8/common/variance.h


     Modify /vp8/encoder/mcomp.c


     Modify /vp8/encoder/rdopt.c


     Modify /vp9/common/vp9_rtcd_defs.pl


     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_mbgraph.c


     Modify /vp9/encoder/vp9_mcomp.c


     Modify /vp9/encoder/vp9_rdopt.c


     Modify /vp9/encoder/vp9_sad.c


     Modify /vp9/encoder/vp9_variance.h



    Remove Wextra warnings from vp9_sad.c

    As a side-effect, the max_sad check is removed from the
    C-implementation of VP8, for consistency with VP9, and to
    ensure that the SAD tests common to VP8/VP9 pass.
    That will make the VP8 C implementation of sad a little slower
    but given that is rarely used in practice, the impact will be
    minimal.

    Change-Id : I7f43089fdea047fbf1862e40c21e4715c30f07ca

  • 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;