Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (36)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

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

  • OMXCodec die when start decoding

    24 mars 2017, par peter zhu

    I’d like to retrieve frames from video file.

    My code followed the article Use Android Hardware Decoder with OMXCodec in NDK, and also referred the code of AwesomePlayer.cpp(AOSP) and libstagefright.cpp(ffmpeg). But it still hangs whenever OMXCodec start decoding. I have no idea what the problem is.

    I’d grateful for any help.

    the code :

    int main(int argc, char *argv[])
    {
       OMXClient mClient;
       status_t ret = mClient.connect();
       LOGD("connect status is %d\n", ret);

       sp<datasource> mDs = DataSource::CreateFromURI("file:///sdcard/display/lwtwjod.mp4");
       off64_t size = 0;
       ret = mDs->getSize(&amp;size);
       LOGD("getSize[ret=%d]: %lld\n", ret, size);

       sp<mediaextractor> mMe = MediaExtractor::Create(mDs);
       size_t tracksNum = mMe->countTracks();
       LOGD("%u tracks\n", tracksNum);

       sp<mediasource> mMs;

       bool hasVideo = false;
       for(size_t i = 0; i != mMe->countTracks(); i++){
       sp<metadata> mMd_track = mMe->getTrackMetaData(i);
           const char *_mime;
       mMd_track->findCString(kKeyMIMEType, &amp;_mime);
           LOGD("the mime is %s\n", _mime);
           String8 mime = String8(_mime);

           if (!strncasecmp(mime.string(), "video/", 6)) {
           LOGD("find video track!\n");
           hasVideo = true;
           mMs = mMe->getTrack(i);
           int wid, hei;
           mMd_track->findInt32(kKeyWidth, &amp;wid);
           mMd_track->findInt32(kKeyHeight, &amp;hei);
           LOGD("width: %d, height: %d\n", wid, hei);
           break;
       }
       }

       if(hasVideo){
       sp<mediasource> decoder =
           OMXCodec::Create(mClient.interface(), mMs->getFormat(),
                    false, mMs,
                    NULL, OMXCodec::kClientNeedsFramebuffer);
       LOGD("start decoding..\n");
       ret = decoder->start(); // hangs here
       LOGD("decoding return: %d\n", ret);

       for(;;){
           MediaBuffer *buffer;
           buffer = NULL;
           ret = decoder->read(&amp;buffer);
           LOGD("read decoded buffer result: %d\n", ret);
           break;
       }
       }    
    }  
    </mediasource></metadata></mediasource></mediaextractor></datasource>

    The logcat output :

    I/OMXClient( 5470): Using client-side OMX mux.
    D/NativeCodec( 5470): connect status is 0
    D/NativeCodec( 5470): getSize[ret=0]: 165748860
    D/NativeCodec( 5470): 2 tracks
    D/NativeCodec( 5470): the mime is video/avc
    D/NativeCodec( 5470): find video track!
    D/OMXCodec( 5470): Successfully allocated OMX node 'OMX.qcom.video.decoder.avc'
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] AVC profile = 100 (High), level = 31
    E/OMX-VDEC-1080P(  197):
    E/OMX-VDEC-1080P(  197):  No color conversion required
    E/OMX-VDEC-1080P(  197):
    E/OMX-VDEC-1080P(  197):  No color conversion required
    E/OMX-VDEC-1080P(  197):
    E/OMX-VDEC-1080P(  197):  No color conversion required
    E/OMX-VDEC-1080P(  197):
    E/OMX-VDEC-1080P(  197):  No color conversion required
    E/OMX-VDEC-1080P(  197):
    E/OMX-VDEC-1080P(  197):  No color conversion required
    E/OMX-VDEC-1080P(  197):
    E/OMX-VDEC-1080P(  197):  No color conversion required
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] video dimensions are 1280 x 720
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] Crop rect is 1280 x 720 @ (0, 0)
    D/NativeCodec( 5470): start decoding..
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocating 2 buffers of size 2097152 on input port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8e39390 on input port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8e393e0 on input port
    E/OMX-VDEC-1080P(  197):
    E/OMX-VDEC-1080P(  197):  No color conversion required
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocating 15 buffers of size 1433600 on output port
    E/OMX-VDEC-1080P(  197): GET_MV_BUFFER_SIZE returned: Size: 245760 and alignment: 8192
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9b08 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9b58 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9ba8 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9bf8 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9c48 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9c98 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9ce8 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9d38 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9d88 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9dd8 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9e28 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9e78 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9ec8 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9f18 on output port
    I/OMXCodec( 5470): [OMX.qcom.video.decoder.avc] allocated buffer 0xb8eb9f68 on output port
    E/OMXNodeInstance(  197): !!! Observer died. Quickly, do something, ... anything...
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9f68 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9f18 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9ec8 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9e78 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9e28 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9dd8 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9d88 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9d38 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9ce8 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9c98 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9c48 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9bf8 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9ba8 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9b58 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8eb9b08 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8e393e0 successful
    I/OMXNodeInstance(  197): OMX_FreeBuffer for buffer header 0xb8e39390 successful
    E/OMX-VDEC-1080P(  197):
    E/OMX-VDEC-1080P(  197):  Error in ioctl read next msg
    E/        (  197):
    E/        (  197):  Destroy C2D instance
    E/        (  197):
    E/        (  197):  Destroy C2D instance
  • avfilter/showvolume : move width test for draw volume to the start of the loop

    31 mars 2018, par Martin Vignali
    avfilter/showvolume : move width test for draw volume to the start of the loop
    
    • [DH] libavfilter/avf_showvolume.c
  • avfilter/af_afftdn : stop producing small impulsive noise at start of output

    14 mars 2022, par Paul B Mahol
    avfilter/af_afftdn : stop producing small impulsive noise at start of output
    
    • [DH] libavfilter/af_afftdn.c