Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (94)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10070)

  • FFmpeg hangs on buffer fill c++

    2 mars 2021, par Derek Halden

    I'm processing a bunch of frames from an RTSP stream using ffmpeg. I end up doing a lot of processing on these frames, which means that I'm not always pulling in real-time. If the buffer gets full, the process hangs. I'm wondering if one of the following solutions is feasible/fixes the problem, and if so, how I would implement it using the ffmpeg libraries :

    



    1) Is there a way to clear the buffer if I ever reach a point where it's hanging ? (I can determine when it's hung, I just don't know what to do about it).

    



    2) Is there a way to make the buffer overwrite the old data, and just always read the most recent data ? It doesn't matter to me if I lose frames.

    



    3) I've already discovered that I can make the buffer arbtrarily large with : av_dict_set(&avd, "buffer_size", "655360", 0);. This could be a solution, but I don't know how large/small it needs to be, because I don't know how long the stream will post video for ?

    



    4) Is this just a bug that I need to bring up with the ffmpeg people ?

    



    5) Something else I haven't considered ?

    



    while(av_read_frame(context, &(packet)) >= 0 && fcount < fps*SECONDS) {
    clock_t start, end;
    int ret = avcodec_send_packet(codec_context, packet);
    if(!(packet->stream_index == video_stream_index)) {
      continue;
    }

    if (ret == AVERROR(EAGAIN) || ret == AVERROR(EINVAL)) {
      continue;
    } else if (ret < 0) {
      cerr << "Error while decoding frame " << fcount << endl;
      exit(1);
    }

    ret = avcodec_receive_frame(codec_context, frame);
    if (ret == AVERROR(EAGAIN) || ret == AVERROR(EINVAL)) {
      continue;
    } else if (ret < 0) {
      cerr << "Error while decoding frame " << fcount << endl;
      exit(1);
    }

    sws_scale(img_convert_ctx, frame->data, frame->linesize, 0,
              codec_context->height, picture_rgb->data, picture_rgb->linesize);

    if(!frame) {
      cerr << "Could not allocate video frame" << endl;
      exit(1);
    }

    if(codec_context == NULL) {
      cerr << "Cannot initialize the conversion context!" << endl;
      exit(1);
    }

    // Do something with the frame here

    fcount++;
    av_packet_unref(&(packet));

}


    



    I have added the code that causes the program to hang.

    


  • Malloc Check Failed when opening video stream

    30 août 2017, par donturner

    I’m writing a BlackBerry 10 application which decodes an H264 video stream (from a Parrot AR Drone) using ffmpeg and libx264. These libraries have both been compiled for BlackBerry QNX.

    Here’s my code :

    av_register_all();
    avcodec_register_all();
    avformat_network_init();

    printf("AV setup complete\n");

    const char* drone_addr = "http://192.168.1.1:5555";
    AVFormatContext* pFormatCtx = NULL;
    AVInputFormat* pInputFormat = av_find_input_format("H264");

    printf("Opening video feed from drone\n");

    //THIS LINE FAILS
    int result = avformat_open_input(&pFormatCtx, drone_addr, pInputFormat, NULL);

    The last line fails with the error :

    Malloc Check Failed: :../../dlist.c:1168

    How can I fix this error or debug it further ?

    Update : The error only occurs when I supply pInputFormat to avformat_open_input. If I supply NULL I don’t get an error. But for my app I must supply this parameter since it is not possible for ffmpeg to determine the video format from the feed alone.

  • Malloc Check Failed when opening video stream

    30 août 2017, par donturner

    I’m writing a BlackBerry 10 application which decodes an H264 video stream (from a Parrot AR Drone) using ffmpeg and libx264. These libraries have both been compiled for BlackBerry QNX.

    Here’s my code :

    av_register_all();
    avcodec_register_all();
    avformat_network_init();

    printf("AV setup complete\n");

    const char* drone_addr = "http://192.168.1.1:5555";
    AVFormatContext* pFormatCtx = NULL;
    AVInputFormat* pInputFormat = av_find_input_format("H264");

    printf("Opening video feed from drone\n");

    //THIS LINE FAILS
    int result = avformat_open_input(&pFormatCtx, drone_addr, pInputFormat, NULL);

    The last line fails with the error :

    Malloc Check Failed: :../../dlist.c:1168

    How can I fix this error or debug it further ?

    Update : The error only occurs when I supply pInputFormat to avformat_open_input. If I supply NULL I don’t get an error. But for my app I must supply this parameter since it is not possible for ffmpeg to determine the video format from the feed alone.