Recherche avancée

Médias (91)

Autres articles (68)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5553)

  • rtmp Videos encoded with FFmpeg play too fast

    30 janvier 2016, par 江嘉荣

    play back too fast and loading Every once in a while

    here is the code ... please help...

    pFormatCtx = avformat_alloc_context();

    out_filename = "rtmp://192.168.1.105:1935/jc";

    avformat_alloc_output_context2(&pFormatCtx, ofmt, "flv", out_filename);    

    ofmt = pFormatCtx->oformat;

    if (avio_open(&pFormatCtx->pb,out_filename, AVIO_FLAG_WRITE) < 0){
       printf("Failed to open output file! \n");
       return -1;
    }

    video_st = avformat_new_stream(pFormatCtx, 0);
    video_st->time_base.num = 1;
    video_st->time_base.den = 30;


    br = 400 * 1000;
    pCodecCtx = video_st->codec;
    pCodecCtx->codec_id = AV_CODEC_ID_H264;
    pCodecCtx->codec_type = AVMEDIA_TYPE_VIDEO;
    pCodecCtx->pix_fmt = PIX_FMT_YUV420P;

    pCodecCtx->gop_size = 12;
    pCodecCtx->max_qdiff = 4;

    pCodecCtx->qmin = 0;
    pCodecCtx->qmax = 51;

    pCodecCtx->bit_rate = br;
    pCodecCtx->rc_min_rate =br;
    pCodecCtx->rc_max_rate = br;
    pCodecCtx->bit_rate_tolerance = br;
    pCodecCtx->rc_buffer_size=br;

    pCodecCtx->rc_initial_buffer_occupancy = pCodecCtx->rc_buffer_size*3/4;

    pCodecCtx->time_base.num = 1;
    pCodecCtx->time_base.den = 30;

    start_time = 0;

    pCodecCtx->max_b_frames = 3;

    AVDictionary *param = 0;

    if(pCodecCtx->codec_id == AV_CODEC_ID_H264) {

       av_dict_set(&param, "preset", "ultrafast", 0);
       av_dict_set(&param, "tune", "zerolatency", 0);
       av_dict_set(&param, "max_delay", "500", 0);
    }

    av_dump_format(pFormatCtx, 0, out_filename, AVIO_FLAG_WRITE);

    pCodec = avcodec_find_encoder(AV_CODEC_ID_H264);

    avformat_write_header(pFormatCtx, NULL);

    y_size = pCodecCtx->width * pCodecCtx->height;

    return 0;

    get pFrame

       pFrame->width = encoder_h264_frame_width;
       pFrame->height = encoder_h264_frame_height;
       pFrame->format = PIX_FMT_YUV420P;

    I don’t know if it’s right way to set the pFrame->pts here...

       pFrame->pts = av_rescale_q(framecnt, pCodecCtx->time_base, video_st-    >codec->time_base);
       avpicture_fill((AVPicture *)pFrame, picture_buf, pCodecCtx->pix_fmt, pCodecCtx->width,    pCodecCtx->height);
       pkt.data = NULL;
       pkt.size = 0;

       int got_picture = 0;

       int ret = avcodec_encode_video2(pCodecCtx, &pkt, pFrame, &got_picture);
       framecnt++;
       if(ret < 0) {
       }
       if (got_picture=) {
           pkt.stream_index = video_st->index;

    is it right ?

           pkt.pts = av_rescale_q(pkt.pts, video_st->codec->time_base, video_st->time_base);
           pkt.dts = av_rescale_q(pkt.dts, video_st->codec->time_base, video_st->time_base);

           ret = av_interleaved_write_frame(pFormatCtx, &pkt);

       }
       av_frame_free(&pFrame);
       av_free_packet(&pkt);
       free(yuv420_data);

    This problem has troubled me for a lot of days....

  • Can't link FFmpeg in Visual Studio 2013

    22 février 2016, par Sir DrinksCoffeeALot

    I’m struggling with this for past 3-4 days with barely any progress. I’ve downloaded "dev" and "shared" archives and extracted them. "Dev" archive has .lib and .h files and "Shared" has .dll files needed for running app. These are the steps that i’ve done linking-wise :

    Project -> Properties -> Configuration Properties -> VC++ Directories -> Include Directories -> ...\ dev\ include

    Project -> Properties -> Configuration Properties -> VC++ Directories -> Library Directories -> ...\ dev\ lib

    Project -> Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories -> ...\ dev\ include

    Project -> Properties -> Configuration Properties -> Linker -> General -> Additional Library Directories -> ...\ dev\ lib

    Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies -> avcodec.lib ... swscale.lib

    And when i try to build it i get following error :

    Error 1 error LNK2019: unresolved external symbol _avcodec_register_all referenced in function _main...

    I have no idea why,somehow .lib are not getting linked or something or i’ve done something wrong. It’s getting really frustrating and ffmpeg is crucial in project that i’m working on, basicly i can’t do anything without it. So please if someone could point me in right direction i would aprreciate it very much.

    This is the example that im trying to build.

    #include
    extern "C"
    {

    #include "libavcodec\avcodec.h"
    }


    #pragma comment(lib, "avcodec.lib")

    int main()
    {
       printf("Trying avcodec_register_all... ");
       avcodec_register_all();
       printf("Done.\n");
       return 0;
    }

    Thank you in advance.

  • FFMpeg mux mp4 format result in streams not in file

    5 mars 2016, par M.Taha

    I am new to ffmpeg, i have spend more than 10 days on finding any way to do muxing in mp4 format with audio and vedio in streams buffer not in file.
    What i want is to mux mp4 format audio & vedio in a streams.

    I am able to do muxing mp4 format in file. But not able to get mux mp4 format in streams buffer.

    Till now i have tried this :
    avio_alloc_context(avio_ctx_buffer, avio_ctx_buffer_size, 1, &bd, NULL, &write_packet, NULL) ;
    By calling this avio_alloc_context and passing reference of write_packet function. I am able to get call write_packet. But when i write the data coming in write_packet in a file, and making mp4 file with that. The resultant mp4 file is not working. There is no vedio or audio information available by watching this file in Media Info.
    The header is written , then loop is written and finally trailer is written, but not getting success in running final file.

    Is there any good way to do mux in mp4 format in streams, so please tell me.

    Kindly help to me to do this.

    Thanks in advance.