Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (60)

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

  • 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

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

Sur d’autres sites (7302)

  • Is it possible to establish youtube live stream with ffmgep from Android if video encoded on another device

    20 mai 2015, par Nick Kleban

    I have "Android Device" and some other "Device with camera". This device captures video, encodes it (h264) and sends it to my phone through UDP. On phone i’m receiving only AVFrame’s and it enough to decode and show this video on phone screen. But i can’t establish working video stream to youtube.

    The problem is that all examples does encoding and streaming on one device, so they have properly initialized AVStream and AVPaket. I have feeling that i’m missing something but i cant find what. I’ve passed all stages of creating broadcast, stream, initialization of AVFormatContext, and av_interleaved_write_frame returns 0. Seems like all ok.
    But on youtube i see short living indication of video stream quality, then it dissapears, and all the time there is no video.

    So the question is is it possible to establish video stream to Youtube live if you have only AVFrames that encoded on some other device, and you missing some context information ? If so - what i’m missing ?

    static AVFormatContext *fmt_context = NULL;
    static AVStream *video_stream;

    eLIVESTREAM_ERROR LIVESTREAM_Manager_Start(char* url) {
       eLIVESTREAM_ERROR error = LIVESTREAM_ERROR;
       av_register_all();
       avcodec_register_all();
       fmt_context = avformat_alloc_context();

       AVOutputFormat *ofmt = NULL;
       if (fmt_context != NULL) {
           ofmt = av_guess_format("flv", NULL, NULL);
           if (ofmt != NULL) {
               fmt_context->oformat = ofmt;

               video_stream = av_new_stream(fmt_context, 0);
               AVCodec *video_codec = avcodec_find_decoder(AV_CODEC_ID_H264);
               AVCodecContext *video_codec_ctx = video_stream->codec;
               video_codec_ctx->pix_fmt = PIX_FMT_YUV420P;
               video_codec_ctx->skip_frame = AVDISCARD_DEFAULT;
               video_codec_ctx->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK;
               video_codec_ctx->skip_loop_filter = AVDISCARD_DEFAULT;
               video_codec_ctx->workaround_bugs = FF_BUG_AUTODETECT;
               video_codec_ctx->codec_type = AVMEDIA_TYPE_VIDEO;
               video_codec_ctx->codec_id = AV_CODEC_ID_H264;
               video_codec_ctx->skip_idct = AVDISCARD_DEFAULT;
               video_codec_ctx->time_base.num = 1;
               video_codec_ctx->time_base.den = 30;
               video_codec_ctx->width = 640;
               video_codec_ctx->height = 386;

               if(fmt_context->oformat->flags & AVFMT_GLOBALHEADER)  
                  video_codec_ctx->flags |= CODEC_FLAG_GLOBAL_HEADER;

               int codec_open_rslt = avcodec_open2(video_codec_ctx, video_codec, NULL);
               if (codec_open_rslt < 0) {
                   error = LIVESTREAM_ERROR;
               }

               if (!(ofmt->flags & AVFMT_NOFILE)) {
                   int open_rslt = avio_open(&fmt_context->pb, url, URL_WRONLY);
                   if (open_rslt == 0) {
                       int wrt_header_rslt = avformat_write_header(fmt_context, NULL);
                       if (wrt_header_rslt == 0) {
                           error = LIVESTREAM_OK;
                       } else {
                           avio_close(fmt_context->pb);
                       }
                   }
               }
           }
       }
       if (error != LIVESTREAM_OK) {
           if (ofmt != NULL) {
               av_free(ofmt);
           }
           if (fmt_context != NULL) {
               av_free(fmt_context);
           }
       }
       return error;
    }

    eLIVESTREAM_ERROR LIVESTREAM_Manager_Send (uint8_t *data , int size) {
       eLIVESTREAM_ERROR error = LIVESTREAM_OK;
       if (fmt_context == NULL || size <= 0 || data == NULL) {
           error = LIVESTREAM_ERROR;
       }
       if (error == LIVESTREAM_OK) {
           AVPacket pkt;
           av_init_packet(&pkt);
           pkt.stream_index = video_stream->index;
           pkt.data = data;
           pkt.size = size;
           pkt.pts = AV_NOPTS_VALUE;
           pkt.dts = AV_NOPTS_VALUE;
           pkt.duration = 0;
           pkt.pos = -1;
           int write_rslt = av_interleaved_write_frame(fmt_context, &pkt);
           if (write_rslt != 0) {
               error = LIVESTREAM_ERROR;
           }
       }
       return error;
    }

    void LIVESTREAM_Manager_Finish () {
       av_write_trailer(fmt_context);
       avio_close(fmt_context->pb);
       av_free(fmt_context);
       fmt_context = NULL;
    }
  • lavf : deprecate compute_pkt_fields2

    7 octobre 2015, par Anton Khirnov
    lavf : deprecate compute_pkt_fields2
    

    All encoders set pts and dts properly now (and have been doing that for
    a while), so there is no good reason to do any timestamp guessing in the
    muxer.

    The newly added AVStreamInternal will be later used for storing all the
    private fields currently living in AVStream.

    • [DBH] libavformat/avformat.h
    • [DBH] libavformat/internal.h
    • [DBH] libavformat/mux.c
    • [DBH] libavformat/utils.c
    • [DBH] libavformat/version.h
  • Fatal signal 11 (SIGSEGV), code 1, fault addr 0x9 in tid 31051

    20 juillet 2021, par 林聖達

    I building project ,I able login my account and it is unable to living stream .
Camera is ok. When the program is execution to Ffmpeg_init() that will be error.
I get a few of question,

    



    Question1.
E/ACDB-LOADER : Error : ACDB AudProc vol returned = -19
Error : ACDB AFE returned = -19
I don't know this error what happened.

    



    Question2.
I use addr2line (NDK-TOOLTAIONS) to debug , I get some message.
pc 0050c99c /data/app/com.cmore.youtube-2/lib/arm/libffmpeg.so (avcodec_get_context_defaults3+56)
I didn't never modify this file.

    



    10-15 18:39:17.848 31051-31051/com.cmore.youtube A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x9 in tid 31051 (m.cmore.youtube)
10-15 18:39:17.898 430-430/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-15 18:39:17.898 430-430/? A/DEBUG: Build fingerprint: 'htc/htc_asia_tw/htc_a51dtul:6.0.1/MMB29M/738098.3:user/release-keys'
10-15 18:39:17.898 430-430/? A/DEBUG: Revision: '0'
10-15 18:39:17.898 430-430/? A/DEBUG: ABI: 'arm'
10-15 18:39:17.898 430-430/? A/DEBUG: pid: 31051, tid: 31051, name: m.cmore.youtube >>> com.cmore.youtube <<<
10-15 18:39:17.898 430-430/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x9
10-15 18:39:17.898 433-31603/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
10-15 18:39:17.898 433-31603/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
10-15 18:39:17.908 430-430/? A/DEBUG: r0 ab36b9a0 r1 00000000 r2 00000000 r3 d6a225c0
10-15 18:39:17.908 430-430/? A/DEBUG: r4 d6a35d18 r5 00000001 r6 ab36b6f0 r7 ab36aac0
10-15 18:39:17.908 430-430/? A/DEBUG: r8 ab36b9a0 r9 00000001 sl 12c590f0 fp 000001e0
10-15 18:39:17.908 430-430/? A/DEBUG: ip 00000000 sp ffcb4778 lr d6440980 pc d644099c cpsr 200f0010
10-15 18:39:17.918 430-430/? A/DEBUG: backtrace:
10-15 18:39:17.918 430-430/? A/DEBUG: #00 pc 0050c99c /data/app/com.cmore.youtube-2/lib/arm/libffmpeg.so (avcodec_get_context_defaults3+56)