Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (69)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12374)

  • Does not compile ffmpeg [duplicate]

    4 avril 2018, par Megafox

    This question already has an answer here :

    Translated.

    I have a problem. When I try to compile a file in which h files ffmpeg are connected using gcc, I get an error that in the code ffmpeg is incorrectly written include, and it means that the file is in the current directory, although it should be in the next directory. How to fix it ?

    Includes in my C file :

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

    Error :

    D:\gcc\bin>gcc -o a a.c -lavutil -lavformat -lavcodec -lz -
    lavutil -lm
    In file included from a.c:3:0: libavcodec/avcodec.h:31:33:
    fatal error: libavutil/samplefmt.h: No such file or directory
    #include "libavutil/samplefmt.h"
    ^
    compilation terminated.

    My answer :

    I was able to solve the problem only by fixing the source code. First I added the libavutil/avconfig.h file with the contents :

     #ifndef AVUTIL_AVCONFIG_H
     #define AVUTIL_AVCONFIG_H
     #define AV_HAVE_BIGENDIAN 0
     #define AV_HAVE_FAST_UNALIGNED 0
     #endif

    Then if I saw an error where the directory and the file (libavutil/avutil) participate, I added "../" there, since this is the case where the directory is located next to the one where the file that caused the error is (../libavutil/avutil.h). In another case, if this file should be inside (only if the directory name matches the current one (libavutil/avutil.h)), you can either just leave the file name (avutil.h), or also add "../", the difference will not be. Such operations need to be repeated about 20 times until errors in all header files disappear. After that, you can safely compile ffmpeg without special knowledge and patches. Code for avconfig.h found on the Chinese site.

  • Failed to build gem native extension while installing rmovie gem

    12 janvier 2013, par Dmitry

    I am trying to install rmovie gem on Ubuntu Desktop 12.04 LTS. ffmpeg is installed but I'm getting this error :

    $ gem install rmovie
    Building native extensions.  This could take a while...
    ERROR:  Error installing rmovie:
       ERROR: Failed to build gem native extension.

           /home/ror_dev/.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb
    gcc -c -fpic -g  qp_movie.c -o qp_movie.o
    In file included from qp_movie.c:4:0:
    qp_util.h:4:28: fatal error: ffmpeg/avcodec.h: No such file or directory
    compilation terminated.
    make: *** [qp_movie.o] Error 1
    checking for avcodec_init() in -lavcodec... yes
    checking for av_register_all() in -lavformat... yes
    checking for quadrupel_init() in -lquadrupel... no
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of
    necessary libraries and/or headers.  Check the mkmf.log file for more
    details.  You may need configuration options.

    Provided configuration options:
       --with-opt-dir
       --with-opt-include
       --without-opt-include=${opt-dir}/include
       --with-opt-lib
       --without-opt-lib=${opt-dir}/lib
       --with-make-prog
       --without-make-prog
       --srcdir=.
       --curdir
       --ruby=/home/ror_dev/.rvm/rubies/ruby-1.9.3-p362/bin/ruby
       --with-ffmpeg-dir
       --without-ffmpeg-dir
       --with-ffmpeg-include
       --without-ffmpeg-include=${ffmpeg-dir}/include
       --with-ffmpeg-lib
       --without-ffmpeg-lib=${ffmpeg-dir}/lib
       --with-quadrupel-dir
       --without-quadrupel-dir
       --with-quadrupel-include
       --without-quadrupel-include=${quadrupel-dir}/include
       --with-quadrupel-lib
       --without-quadrupel-lib=${quadrupel-dir}/lib
       --with-avcodeclib
       --without-avcodeclib
       --with-avformatlib
       --without-avformatlib
       --with-quadrupellib
       --without-quadrupellib
    extconf failed: need quadrupel library

    First attempt was to relocate avcodec to where installer is searching for it. No success. Next - correcting paths in quadrupel files to point it to where avcodec is located. No success.

    What is this quadrupel thing and how to force it to work ?

    Or maybe there is some replacement for rmovie ?

  • How can combine two separate scripts being piped together to make one script instead of two ?

    27 mars 2016, par user556068

    For the past couple hours I’ve been banging my head against the wall trying to figure out something I thought would be simple. Maybe it is but it’s beyond me at the moment. So I have now two scripts. Originallly they were part of the same but I could never make it work how it should. So the first part uses curl to download a file from a site. Then using grep and sedto filter out the text I need which is then put into a plain text file as a long list of website urls ; one per line. The last part of the 1st script calls on youtube -dl to read the batch file in order to obtain the web addresses where the actual content is located. I hope that makes sense.

    youtube-dl reads the batch file and outputs a new list urls into the terminal. This second list is not saved to file because it doesn’t need to be. These urls change from day to day or hour to hour. Using the read command, these urls are then passed to ffmpeg using a predetermined set of arguments for the input and output. Ffmpeg is executed on every url it receives and runs quietly in the background.

    The first paragraph describes script1.sh and paragraph 2 obviously describes script2.sh. When I pipe them together like script1.sh | script2.sh it works better than I ever thought possible. Maybe i’m nitpicking at this point but the idea is to have 1 unified script. For the moment I have simplified it by adding an alias to my .bash_profile.

    Here are the last two commands of script1.

    sed 's/\"\,/\//g' > "$HOME/file2.txt";
    cat $HOME/file2.txt | youtube-dl --ignore-config -iga -

    The trailing - allows youtube-dl to read from stdin.

    The second part of the script ; what I’m calling script2 at this point begins with

    while read -r input
    do
    ffmpeg [arg] [input] [arg2] [output]

    What am i not seeing that is causing the script to hang when the two halves are combined yet work perfectly if one is piped into the other ?