Recherche avancée

Médias (91)

Autres articles (98)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (9059)

  • Building ffmpeg libraries for third party usage

    23 mars 2023, par mikeProgrammer

    I am trying to create bindings for FFmpeg in Elixir programming language and would love to handle FFmpeg binaries for users of my library.

    


    The whole flow is as follows :

    


      

    1. Write some function definition in Elixir
    2. 


    3. Implement it in in C using ffmpeg libs
    4. 


    5. Compile C code as shared library
    6. 


    7. When running application, Erlang Virtual Machine will load my dynamic library
    8. 


    


    The question is how to compile and include ffmpeg libs in my shared lib so that users of my Elixir lib don't have to install any native dependencies.

    


    Here is what I was trying :

    


      

    1. Compile ffmpeg libs as shared ones. When my Elixir lib is compiling, it downloads precompiled ffmpeg archive, extracts its content and links to it when compiling native functions. I realized that this still won't work as ffmpeg shared libs depend on other shared libs that user has to install on their own.

      


    2. 


    3. Compile ffmpeg libs as static ones and include them in my native shared library using —whole-archive linker option. Here I am getting

      


    4. 


    


    /usr/bin/ld : ffmpeg_build/lib/libavcodec.a(vp9lpf_16bpp.o) : warning : relocation against ff_pw_1' in read-only section .text'
/usr/bin/ld : ffmpeg_build/lib/libavcodec.a(cavsdsp.o) : relocation R_X86_64_PC32 against symbol `ff_pw_5' can not be used when making a shared object ; recompile with -fPIC
/usr/bin/ld : final link failed : bad value
collect2 : error : ld returned 1 exit status

    


    The command I am using

    


    cc -fPIC -I/home/michal/.asdf/installs/erlang/25.1/erts-13.1/include -Iffmpeg_build/include -Ic_src/xav -shared -DXAV_DEBUG=1 c_src/xav/xav_nif.c c_src/xav/reader.c c_src/xav/utils.c -o /home/michal/Repos/xav/_build/test/lib/xav/priv/libxav.so -Lffmpeg_build/lib -Wl,--whole-archive -lavcodec -lswscale -lavutil -lavformat -Wl,--no-whole-archive


    


    FFmpeg configuration

    


    ./configure \
--prefix="$PWD/ffmpeg_build" \
--extra-cflags="-fPIC -I$PWD/ffmpeg_build/include" \
--extra-ldflags="-L$PWD/ffmpeg_build/lib" \
--enable-pic
--disable-programs


    


    Does anything that I am trying to do make sense to you ?

    


    When I am installing ffmpeg-libs package on Fedora, it depends on other shared libs that are automatically downlaoded but what I would love to achieve is to provide self-contained ffmpeg build that can be used in other shared libraries.

    


  • fftools/sync_queue : document overall design

    13 avril 2022, par Anton Khirnov
    fftools/sync_queue : document overall design
    
    • [DH] fftools/sync_queue.c
    • [DH] fftools/sync_queue.h
  • Building ffplay from FFMPEG on ubuntu [duplicate]

    21 avril 2023, par lokit khemka

    I am trying to ffplay.c source file from the FFMPEG source code on Ubuntu 22.04 running on WSL Windows 10. I have installed all the library files, probably. I am using the command
gcc -o ffplay ffplay.c -I/home/lokit/ffmpeg/ffmpeg -I/usr/include/SDL2 -lavformat -lavcodec -lavutil -lswresample -lz -lm $(pkg-config --cflags --libs sdl2)

    


    However, I seem to get the many undefined references : ffplay.c:(.text+0x51c5): undefined reference to 'avfilter_inout_alloc'

    


    I think the compiler is unable to the library files. They are in the folder /usr/lib/x86_64-linux-gnu. What do I do so that the compiler can find the library files ? I am very new to linux and C programming in general. Any help will be greatly appreciated.