Recherche avancée

Médias (0)

Mot : - Tags -/acrobat

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

Autres articles (77)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

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

  • Play mp3 data with audiotrack with ffmpeg

    1er février 2014, par Ichigo Kurosaki

    I am designing an android app where i receive live mp3 data as stream from Red5 server and i need to play it.

    I cant play it using media player class as i don't have any url for the stream, nor i cant use files. Another option is to use Audio track class, but requires PCM data only. So need to convert mp3 to pcm, so using ffmpeg.

    My code for conversion is

    AVCodec *codec;
    AVCodecContext *c= NULL;
    int out_size, len;
    uint8_t *outbuf;

    int iplen=(*env)->GetArrayLength(env, mp3buf);
    int16_t inbuf[AUDIO_INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
    AVPacket avpkt;
    av_init_packet(&avpkt);
    av_register_all();
    avcodec_register_all();

    codec = avcodec_find_decoder(CODEC_ID_MP3);
    if(!codec){
       __android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "Codec not found");
    }
    c = avcodec_alloc_context();
    outbuf = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
    avpkt.data = (*env)->GetByteArrayElements(env,mp3buf,NULL);

    avpkt.size = (*env)->GetArrayLength(env, mp3buf);
    out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
    int ao=avcodec_open(c, codec);
       if (ao < 0) {
           __android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "avcodec not open");
       }
       len = avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);

    The Problem is avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt); returns -1 always.

    Cant figure out whats wrong.

    Any help appreciated.

  • How to pass data cuvidParseVideoData

    28 avril 2022, par Serhan Erkovan

    I try to develop streaming program,I have 4k videos that 5 fps and 20 seconds, I encode frames with cuda encoder successfully, i send encoded data over rtp successfully but when i try to decode that data, i got 0 frame from cuvidParseVideoData. Should i do something before the cuvidParseVideoData for example use ffmpeg demuxer ?

    


    RecvDec.cpp

    


    Server* server = new Server(8890 + thread_no);
server->recv_packets();
totBuf* totBuf = server->getTotalBuf();
            if (totBuf->perBuf == nullptr) {
                
                std::cout << prompt << "perBuf null!" << std::endl;
                nVideoBytes = 1;
                continue;
            }

pVideo = new uint8_t[totBuf->totSize];
memcpy(pVideo, totBuf->perBuf->perBuf, totBuf->totSize);
nVideoBytes = totBuf->perBuf->size;
int nFrameReturned = 0;
nFrameReturned = dec.Decode(pVideo, nVideoBytes);




    


    NvDecoder.cpp

    


    int NvDecoder::Decode(const uint8_t *pData, int nSize, int nFlags, int64_t nTimestamp)
{
    m_nDecodedFrame = 0;
    m_nDecodedFrameReturned = 0;
    CUVIDSOURCEDATAPACKET packet = { 0 };
    packet.payload = pData;
    packet.payload_size = nSize;
    packet.flags = nFlags | CUVID_PKT_TIMESTAMP;
    packet.timestamp = nTimestamp;
    if (!pData || nSize == 0) {
        packet.flags |= CUVID_PKT_ENDOFSTREAM;
    }
    NVDEC_API_CALL(cuvidParseVideoData(m_hParser, &packet));
    m_cuvidStream = 0;

    return m_nDecodedFrame;
}



    


    Decode function always returns 0.
If i have to pass my datas from Ffmpeg demuxer, how can i pass type of uint8_t* data to demuxer ?
My data always starts with 0x00 0x00 0x00 0x01. This is start frame tag.

    


  • mpeg12dec : Export GOP timecodes as side data

    31 janvier 2016, par Derek Buitenhuis
    mpeg12dec : Export GOP timecodes as side data
    

    The codec context field was rightly deprecated, and the data
    may change per-frame.

    Signed-off-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>

    • [DH] libavcodec/mpeg12dec.c