Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (105)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

Sur d’autres sites (11294)

  • c# NReco.VideoConverter Ubuntu 16.04

    19 septembre 2018, par Neyt Chi

    I’m trying to use the functionality of the NReso library. VideoConverter. The program is launched from Ubuntu OS 16.04 in the MonoDevelopment environment. The operating system is 64 charging. I installed the application FFMpeg and it works fine.
    And I have a problem that does not make a lot of sense. I’m trying to use code NReso.VideoConveter from the site official site https://www.nrecosite.com/video_converter_net.aspx :

    try
    {
        string [] paths = {"1.mp4",
        "1.mp4",
        "1.mp4"};
        ConcatSettings concatSettings = new ConcatSettings ();
        concatSettings.ConcatAudioStream = false;
        concatSettings.ConcatVideoStream = true;
        FFMpegConverter ffMpegConvert = new FFMpegConverter ();
        Console.WriteLine ("Converting ... \ r \ n");
        ffMpegConvert.ConcatMedia (paths, "3.mp4", Format.mp4, concatSettings);
        Console.WriteLine ("Complete!");
    }
    catch (Exception e)
    {
    Console.WriteLine (e.Message);
    }

    The code produces an error of type

    "ApplicationName = ’/ home / neytchi / Projects / testVE / testVE /
    bin / Debug / ffmpeg.exe’, CommandLine = ’- y -loglevel info -i
    "1.mp4" -i "1.mp4" -i "1. mp4 "-f mp4 -filter_complex" concat = n = 3 :
    v = 1 [v] "-map" [v] "" 3.mp4 "’, CurrentDirectory =’ / home / neytchi
    / Projects / testVE / testVE / bin / Debug ’, Native error = Access
    denied" or so "Unhandled Exception : Systems
    .ComponentModel.Win32Exception"

    I can not understand the cause of problem, but I’m assuming that the library starts the process as 32-bit, when everything else is 64-bit.
    Any ideas ? Perhaps someone met with a similar on Ubuntu.

  • 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'
    to the PKG_CONFIG_PATH environment variable
    Package 'enca', required by 'libass', not found

    "yum install enca" says

    Package enca-1.10-1.el5.rf.i386 already installed and latest version
  • 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.
This way I can log precisely when memory gets allocated and when a buffer becomes free.

    


    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 :

    


      

    • enter draining mode by sending NULL to the decoder
    • 


    • collect all frames from the decoder
    • 


    • flush AVCodecContext
    • 


    


    This is the code for that :

    


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


    


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

    


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