Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (72)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (10857)

  • What is the best way to get duration of a video using ffprobe (ffmpeg) ?

    15 juin 2023, par promaxdev

    Most of the solutions to get duration revolves around parsing the output to get the duration. Even FFProbe official documentation here says that there is no duration stored for MKV, webm, etc.

    


    Take the below examples.

    


    ffprobe -v error -i <inputmkv> -show_entries stream=...,duration,.. -of default=noprint_wrappers=1&#xA;</inputmkv>

    &#xA;

    This gives me the below output. This is not having duration.

    &#xA;

    Image with Duration NA

    &#xA;

    But when I run the same command differently like below, I am getting this output but having duration. Just removed '-v error' part.

    &#xA;

    ffprobe -i <inputmkv> -show_entries stream=...duration,... -of default=noprint_wrappers=1 &#xA;</inputmkv>

    &#xA;

    enter image description here

    &#xA;

    If you notice the same command shows the duration in one place and not in another place.

    &#xA;

    So my question is, What is the best way to get duration in ffmpeg, especially for the video streams ?

    &#xA;

    Edit : I have already explored decoding using null mux option. But that is a costly operation and also need to parse the output.

    &#xA;

  • How to force AVCodecContext to release all references to any buffers

    17 septembre 2024, par imikbox

    I'm using FFMPEG to decode a video stream and I have implemented a custom functions for AVFrame memory allocation and de-allocation (by setting a custom function for codec_ctx->get_buffer2). So when an AVFrame requires new memory, I do the memory allocation and wrap an AvBufferRef around it using av_buffer_create. I also define my custom de-allocation function, so when the reference counted AvBufferRef is not required anymore, I do the memory clean up.&#xA;This way I can log precisely when memory gets allocated and when a buffer becomes free.

    &#xA;

    During video decoding I want to do a seek, for that I need to clear out all buffers from my AVCodecContext. I'm following the official documentation for that :

    &#xA;

      &#xA;
    • enter draining mode by sending NULL to the decoder
    • &#xA;

    • collect all frames from the decoder
    • &#xA;

    • flush AVCodecContext
    • &#xA;

    &#xA;

    This is the code for that :

    &#xA;

            avcodec_send_packet(codec_ctx, NULL);&#xA;        auto result = 0;&#xA;        while (result != AVERROR_EOF)&#xA;        {&#xA;            auto frame = av_frame_alloc();&#xA;            result = avcodec_receive_frame(codec_ctx, frame);&#xA;            av_frame_free(&amp;frame);&#xA;        }&#xA;        avcodec_flush_buffers(codec_ctx);&#xA;

    &#xA;

    However, I can see (due to my custom memory management) that not all frames are released.&#xA;Only when I close the codec context by calling avcodec_free_context, I see all frames getting released.

    &#xA;

    Any hints how I can completely release all resources in AVCodecContext (without closing it) ?

    &#xA;

  • Compiling FFmpeg with option —enable-libass on CentOS 5 32bit [closed]

    26 mai 2012, par whatUwant

    I have already installed libass and libass-devel

    yum install libass libass-devel
    ...
    Package libass-0.9.11-1.el5.rf.i386 already installed and latest version
    Package libass-devel-0.9.11-1.el5.rf.i386 already installed and latest version
    Nothing to do

    The source code of ffmpeg is from official git.
    I try to compile ffmpeg with the option —enable-libass. But it prompts "ERROR : libass not found" every time.

    ./configure --enable-version3 \
    --enable-libvorbis \
    --enable-libx264 \
    --enable-libxvid \
    --disable-ffplay \
    --enable-shared \
    --enable-libmp3lame \
    --enable-gpl \
    --enable-pthreads \
    --enable-postproc \
    --enable-x11grab \
    --enable-libgsm  \
    --enable-swscale \
    --enable-nonfree \
    --enable-avfilter \
    --enable-libass

    In config.log it says

    check_pkg_config libass ass/ass.h ass_library_init
    ERROR: libass not found

    I've checked

    /usr/local/include/ass/ass.h

    and

    /usr/include/ass/ass.h

    this ass.h does exist in both places.

    "pkg-config —cflags —libs libass" says

    Package enca was not found in the pkg-config search path.
    Perhaps you should add the directory containing `enca.pc&#39;
    to the PKG_CONFIG_PATH environment variable
    Package &#39;enca&#39;, required by &#39;libass&#39;, not found

    "yum install enca" says

    Package enca-1.10-1.el5.rf.i386 already installed and latest version