Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (67)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

Sur d’autres sites (12429)

  • Opus strict flag

    1er novembre 2018, par KoLiBer

    I’m working on library that uses libavcodec library.

    I try to encode audio frames using opus codec but after avcodec_open2(...) i get this log

    [opus @ 0x2335f30] The encoder 'opus' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

    also when trying to av_fill_audio_frame(..) i get this error

    Invalid argument

    My code :

    #include <libavcodec></libavcodec>avcodec.h>
    #include "libavutil/opt.h"
    #include <libavformat></libavformat>avformat.h>
    AVFrame *audio_frame = NULL;
    AVPacket *audio_packet = NULL;
    AVCodecContext *audio_encoder_codec_context = NULL;
    AVCodec *audio_encoder_codec = NULL;

    void init(){
       audio_frame = av_frame_alloc();
       audio_packet = av_packet_alloc();
       audio_encoder_codec = avcodec_find_encoder(AV_CODEC_ID_OPUS);
       audio_encoder_codec_context = avcodec_alloc_context3(audio_encoder_codec);
       audio_encoder_codec_context->time_base = (AVRational){1,25};
       audio_encoder_codec_context->sample_rate = audio_sample_rate;
       audio_encoder_codec_context->sample_fmt = (enum AVSampleFormat) audio_sample_format == 0 ? AV_SAMPLE_FMT_U8 : AV_SAMPLE_FMT_S16;
       audio_encoder_codec_context->channels = 1;
       audio_encoder_codec_context->channel_layout = AV_CH_LAYOUT_MONO;
       audio_encoder_codec_context->codec_type = AVMEDIA_TYPE_AUDIO;
       audio_encoder_codec_context->extradata = NULL;
       avcodec_open2(audio_encoder_codec_context,audio_encoder_codec,NULL);
       audio_frame_size = av_samples_get_buffer_size(
               NULL,
               audio_encoder_codec_context->channels,
               audio_sample_rate,
               audio_encoder_codec_context->sample_fmt,
               1
       );
       audio_frame_buffer = (uint8_t*) av_malloc((audio_frame_size)*sizeof(uint8_t));
    }

    void encode(uint8_t *frame,int frame_size,uint8_t **packet, int *packet_size){
       memcpy(audio_frame_buffer, frame, (size_t) frame_size);
       av_init_packet(audio_packet);
       int isFin = 0;
       int r = avcodec_fill_audio_frame(audio_frame,audio_encoder_codec_context->channels,audio_encoder_codec_context->sample_fmt,audio_frame_buffer,audio_frame_size,0);
       printf("ERROR = %s",av_err2str(r));
       avcodec_encode_audio2(audio_encoder_codec_context,audio_packet,audio_frame,&amp;isFin);
       *packet = audio_packet->data;
       *packet_size = audio_packet->size;
    }

    int main(){
       init();
       uint8_t *packet = NULL;
       int size = 0;
       encode(".....",44100,packet,size);

    }
  • opus : Do not call vector_fmul_scalar on zero samples

    28 octobre 2015, par Kieran Kunhya
    opus : Do not call vector_fmul_scalar on zero samples
    

    The x86 variant of this function crashes in that specific case.

    CC : libav-devel@libav.org

    • [DH] libavcodec/opusdec.c
  • opus/matroska : Adding support for DiscardPadding in muxer

    30 août 2013, par Vignesh Venkatasubramanian
    opus/matroska : Adding support for DiscardPadding in muxer
    

    Support for end trimming Opus in Matroska is implemented by using
    the DiscardPadding container element in the Block data. The last
    chunk is stored as a Block instead of SimpleBlock and the
    trimming information is stored and used to discard samples that
    were padded by the Opus codec. This patch adds support for muxing
    DiscardPadding element into the container with appropriate value.
    Matroska spec for the DiscardPadding element can be found here :
    http://matroska.org/technical/specs/index.html#DiscardPadding

    Signed-off-by : Vignesh Venkatasubramanian <vigneshv@google.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/matroska.h
    • [DH] libavformat/matroskaenc.c