Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (31)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (6016)

  • 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) ?

    


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