Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (100)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (13451)

  • Why does avcodec_fill_audio_frame return -22 when only sample count is different ?

    24 juillet 2017, par N0un

    My problem is very fast to explain : I have to encode audio samples using FFmpeg (raw PCM to G.711 mu-law). This is the guilty part of my code (I put raw parameters in this example to be explicit) :

    AVFrame* frame = av_frame_alloc();
    frame->nb_samples = 8000;
    frame->format = AV_SAMPLE_FMT_S16;
    frame->channels = 1;
    frame->channel_layout = AV_CH_LAYOUT_MONO;
    frame->sample_rate = 8000;
    frame->quality = 1;

    int res = avcodec_fill_audio_frame(frame, 1, AV_SAMPLE_FMT_S16, /*my samples data*/, 16000, 0);

    // If res >= 0, continue with avcodec_encode_audio2

    And it works :) ... Well, I mean...

    When my input is 8000 audio samples (S16 format so 16000 bytes), it works. But when I have 6000 audio samples (still S16 format so 12000 bytes), it fails with a -22 (invalid parameters). Any idea ?

    PRECISION : This sample count is not dynamically changing. I have sessions with data always composed by 8000 sample (and it works), and other sessions with data always composed by 6000 sample (and it fails). Sample count and data size are the only parameters that are not the same between these sessions.

    EDIT : If I set or not the frame_size field in AVCodecContext, it returns to 0 after avcodec_open2 but the mu-law encoder selected has the AV_CODEC_CAP_VARIABLE_FRAME_SIZE capability so it sounds normal.

  • Sample code for rtp stream from FFMPEG

    9 mars 2015, par Yogesh Kulkarni

    I am searching sample code in c or cpp which will send rtp stream using ffmpeg library. Do anyone know where I will get it ?

  • Google Chrome dropping support for H.264, will support only open web codecs in the future

    11 janvier 2011, par Basil Gohar — Announcements, chrome, encumbrance, freedom, google, html5, mpeg-la, software patents, theora, vp8, webm

    In an understated announcement on the Chromium blog, going forward, Google Chrome will drop support for the encumbered H.264 video codec and will support only VP8 (through WebM) & Theora video natively. This is great news for the open web, … Read more (...)