Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (46)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (9528)

  • FFMPEG MemoryAccessException on cleanup

    16 décembre 2015, par Casey Price

    I’ve written an application that records from various USB webcams using ffmpeg, however if I unplug a camera while ffmpeg is in the middle of recording I get memory access exceptions when running the following cleanup code.

    if (packet.data != 0)
       av_packet_unref(&packet);

    if (frame != 0)
       av_frame_free(&frame);


    if (ifmt_ctx != NULL)
    {
       for (i = 0; i < ifmt_ctx->nb_streams; i++) {
           avcodec_close(ifmt_ctx->streams[i]->codec);
           if (ofmt_ctx && ofmt_ctx->nb_streams > i && ofmt_ctx->streams[i] && ofmt_ctx->streams[i]->codec)
               avcodec_close(ofmt_ctx->streams[i]->codec);
           if (filter_ctx && filter_ctx[i].filter_graph)
               avfilter_graph_free(&filter_ctx[i].filter_graph);
       }
    }

    if (filter_ctx != NULL && filter_ctx->buffersink_ctx != NULL && filter_ctx->buffersrc_ctx != NULL && filter_ctx->filter_graph != NULL)
       av_freep(&filter_ctx);

    if (ifmt_ctx != 0)
       avformat_close_input(&ifmt_ctx);

    if (ofmt_ctx && ofmt_ctx->oformat != NULL && !(ofmt_ctx->oformat->flags & AVFMT_NOFILE))
       avio_closep(&ofmt_ctx->pb);

    if (ofmt_ctx != 0 && ofmt_ctx->oformat != 0)
       avformat_free_context(ofmt_ctx);

    Specifically it crashes on

    if (filter_ctx != NULL && filter_ctx->buffersink_ctx != NULL && filter_ctx->buffersrc_ctx != NULL && filter_ctx->filter_graph != NULL)
           av_freep(&filter_ctx);

    With a Null Reference exception on the if check sometimes. Other times the code runs fine and doesn’t crash. I’ve also tried

    if (filter_ctx)
       av_free(filter_ctx);

    But this gives me a MemoryAccessException instead of a null reference, I’m guessing something on another thread is changing my data while cleaning up, however all of my variables are are not shared with any other thread.

    Does anyone know whats going on ?

  • ffmpeg record screen file formats

    3 avril 2020, par New_Dev

    Good day,
I'm currently writing a bash script which records the screen under certain conditions. The problem is that only avi works as a file extension for recording the screen. This script is going to be used on an Raspberry Pi and currently I get on a decent virtual machine only 10-20 fps (goal would be around 30 fps). I think .avi is not suited for my project. But .mpeg and .mp4 are not working for recording. I tried recording with .avi and then converting it in .mp4, but I have limited memory and .avi ist just too big in size. I use currently the following command :

    



    ffmpeg -f x11grab -y -r 30 -s 960x750 -i :0.0+0,100 -vcodec huffyuv ./Videos/out_$now.avi
//$now is the current date and time


    



    So I wanted to know if I need some special packages from ffmpeg to record with for example .mp4 or if there are other file formats available for ffmpeg screen recording.

    



    Edit :
I found that the codec libx264 for mp4 works, but the fps drop until they hit5 fps, which is definetly too low. The recorded video appeared like being a fast forward version of the recorded screen.

    



    With mpeg4 for mpeg I reached over 30 fps, but the video qualitywas very bad.

    



    It appears that even my big avi-files look like being played fast forward. Is there something I do wrong ?

    



    Is there a good middle way, where I get a decend video quality, good fps (20+) and a file which isn't too big ?

    



    Edit 2 :
I tried recording it with .avi and converting it afterwards. Just converting with ffmpeg -i test.avi -c:a aac -b:a 128k -c:v libx264 -crf 23 output.mp4 
resulted in the same framedrops as if I was recording with .mp4. But when I cut a littlebit of the beginning of the video and named the outputfile .mp4, the size became much smaller. But when I started the cutting at 0:00:00 (so tried just converting), it just changed the file format without converting it (so the size stayed the same). Any ideas ?

    


  • x264 Building error - Android

    21 avril 2016, par Jay Parikh

    I am using this repository to build ffmpeg static library which includes x264,libpng and others, please
    visit this link https://github.com/writingminds/ffmpeg-android

    i am using windows 7 as host and ubuntu 15.10 (_64) as guest os using VMware Workstation 12
    and
    Android-ndk-r11b-linux-x86_64

    i do have Prebuilt libraries , but now i want it without PIE support

    i am getting this error in config.log in x264 folder while building
    through

    ./android_build.sh

    here is the log :

    x264 configure script
    Command line options: "--cross-prefix=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/arm-linux
    /mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-gcc

    checking whether /mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-gcc

    --sysroot=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/sysroot works... no

    Failed commandline was:

    --sysroot=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/sysroot conftest.c  -Wall -I. -I$(SRCPATH) --sysroot=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/sysroot    --sysroot=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/sysroot -lm -o conftest

    /mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: fatal error:

    conftest: Input/output error

    Failed program was:

    int main (void) {  return 0; }

    DIED: No working C compiler found.

    ushare is my shared folder between windows and ubuntu

    I have spend almost a week ,trying to solve every error i get.
    these errors are like never ending , 1 solution give 10 more errors
    i have researched a LOT for this library

    thanks a lot in advance.

    Also i thought that x264 library might have poroblem ,so i tried to disable it
    but next library "libpng" also had Same log Error

    i think problem is in Input/output error (obviously)
    this line in log kind of confuses me (those /../../)

    /mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld : fatal error :

    its like two folder overlaping address...

    thanks a lot in advance.
    please don’t go harsh on me ,its my first time,all thanks to this thing...