Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (54)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (8692)

  • Why does ffmpeg cmake external project is not working

    24 mars 2019, par bottega

    I’m trying to compile ffmpeg with h264 support as an external cmake project. But after compile it, I’m getting libavcodec reference errors.

    The compile problem is occurring on Ubuntu 18.04 machine. I have installed all dependencies for ffmpeg and also libx264-dev.

    Cmake external project

    set( proj ffmpeg )
    set( SHARED_FFMPEG )


    set(BASIC
           --extra-ldflags=-L/usr/local/lib
           --extra-cflags=-I/usr/local/include
           --enable-gpl
           --enable-libx264)


    option( FFMPEG_GPL "Use a GPL version of FFMPEG" OFF )

    set(FFMPEG_INSTALL_DIR  ${CMAKE_BINARY_DIR}/INSTALL )

    ExternalProject_Add(${proj}
           # Set up dirs
           SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}
           INSTALL_DIR ${FFMPEG_INSTALL_DIR}
           # get the project
           GIT_REPOSITORY "https://github.com/FFmpeg/FFmpeg.git"
           GIT_TAG "n3.2.13"

           # Build the project
           BUILD_IN_SOURCE 1

           # Configure step
           # DO STH FOR THE ARCHITECTURE...
           CONFIGURE_COMMAND /configure --prefix=${FFMPEG_INSTALL_DIR} ${SHARED_FFMPEG} ${FFMPEG_GPL_FLAG} ${BASIC}

           #  BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} -j${NProcessors}
           )

    # define the library suffix
    if( SUPER_SHARED_LIBS )
       if( APPLE )
           set(LIBRARY_SUFFIX .dylib)
       else( APPLE )
           set(LIBRARY_SUFFIX .so)
       endif( APPLE )
    else( SUPER_SHARED_LIBS )
       set(LIBRARY_SUFFIX .a)
    endif( SUPER_SHARED_LIBS )

    # ADD DIRECTORIES FOR DEPENDENCIES IN Main/CMakeLists.txt
    set( FFMPEG_LIBRARYS libavcodec.a
           libavformat.a
           libavutil.a
           libswscale.a
           )

    include_directories(${FFMPEG_INSTALL_DIR}/include)

    set(FFMPEG_LIBRARY_DIRS ${FFMPEG_INSTALL_DIR}/lib/)
    link_directories(${FFMPEG_LIBRARY_DIRS})

    C++ Where I used the library

    extern "C" {
    #include
    #include
    #include

    #include "libavcodec/avcodec.h"
    #include "libavformat/avformat.h"
    #include "libavutil/mathematics.h"
    #include "libswscale/swscale.h"

    #define INBUF_SIZE 4096
    #define AUDIO_INBUF_SIZE 20480
    #define AUDIO_REFILL_THRESH 4096
    }

    ...

    fReceiveBuffer = new u_int8_t[DUMMY_SINK_RECEIVE_BUFFER_SIZE];
       fReceiveBufferAV = new u_int8_t[DUMMY_SINK_RECEIVE_BUFFER_SIZE+4];
       fReceiveBufferAV[0] = 0;
       fReceiveBufferAV[1] = 0;
       fReceiveBufferAV[2] = 0;
       fReceiveBufferAV[3] = 1;


       av_init_packet(&avpkt);
       avpkt.flags |= AV_PKT_FLAG_KEY;
       avpkt.pts = avpkt.dts = 0;

       av_init_packet(&avpkt);
       avpkt.flags |= AV_PKT_FLAG_KEY;
       avpkt.pts = avpkt.dts = 0;

       /* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */
       memset(inbuf + INBUF_SIZE, 0, FF_INPUT_BUFFER_PADDING_SIZE);

       //codec = avcodec_find_decoder(CODEC_ID_MPEG1VIDEO);
       codec = avcodec_find_decoder(AV_CODEC_ID_H264);

    ...

    Error :

    [100%] Linking CXX executable ../../bin/awesom-o
    /home/tiburcio/CLionProjects/awesom-o/cmake-build-debug/INSTALL/lib/libavcodec.a(libx264.o): In function `X264_frame':
    /home/tiburcio/CLionProjects/awesom-o/cmake-build-debug/ffmpeg/libavcodec/libx264.c:280: undefined reference to `x264_picture_init'
    /home/tiburcio/CLionProjects/awesom-o/cmake-build-debug/INSTALL/lib/libavcodec.a(libx264.o): In function `reconfig_encoder':
    /home/tiburcio/CLionProjects/awesom-o/cmake-build-debug/ffmpeg/libavcodec/libx264.c:266: undefined reference to `x264_encoder_reconfig'
    /home/tiburcio/CLionProjects/awesom-o/cmake-build-debug/INSTALL/lib/libavcodec.a(libx264.o): In function `X264_frame':
    /home/tiburcio/CLionProjects/awesom-o/cmake-build-debug/ffmpeg/libavcodec/libx264.c:340: undefined reference to `x264_encoder_encode'
  • Screenshot of video file in Electron Angular project without ffmpeg

    15 juin 2022, par Gary Klasen

    Within my Electron Angular project, I want to preview a video file which is stored locally on Windows / MacOS within a frame, like this :

    


    enter image description here

    


    On the left side, currently, there is a placeholder image. But i want to have a snapshot out of the video, it is not important at which position of the video this is taken.

    


    Our attempt at the moment is to use fluent-ffmpeg library from npm :

    


    var ffmpeg = require('fluent-ffmpeg');

let command = new ffmpeg({source: "MY_VIDEO_PATH"}).inputOptions('-protocol_whitelist file,http,https,tcp,tls,crypto')

command.takeScreenshots({
    count: 1,
    timemarks: ['5%'],
    filename: "MY_FILENAME"
}, "DESTINATION_FOLDER_PATH_FOR_THUMB");


    


    It takes the screen after 5% of the video would have been played. However, this requires ffmpeg executable to be present, which actually costs more space for the application as we want to use.

    


    So : Can i pick out a screenshot out of a video file without using additional executables like ffmpeg ? If there are some suitable npm libaries, this would be also fine, as they are a lot smaller.

    


  • MAINTAINERS : Split project server admin list

    6 août 2022, par Michael Niedermayer
    MAINTAINERS : Split project server admin list
    

    This updates the list closer to reality.
    Iam not a professional server admin, iam happy to help maintain the box as i have
    done in the past. But iam not qualified nor volunteering to fix sudden problems
    nor do i do major upgrades (i lack the experience to recover the box remotely if
    something goes wrong) and also iam not maintaining backups ATM (our backup system
    had a RAID-5 failure, raz is working on setting a new one up)

    Maybe this should be signaled in a different way than spliting the lines but ATM
    people ping me if something is wrong and what i do is mainly mail/ping raz
    and try to find another root admin so raz is not the only active & professional
    admin on the team. It would be more efficient if people contact raz and others
    directly instead of depending on my waking up and forwarding a "ffmpeg.org" is down note

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] MAINTAINERS