Recherche avancée

Médias (91)

Autres articles (51)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

Sur d’autres sites (5634)

  • avcodec/proresenc_aw : use for frame flag in the header the same value than the offic...

    8 octobre 2018, par Martin Vignali
    avcodec/proresenc_aw : use for frame flag in the header the same value than the official encoder
    
    • [DH] libavcodec/proresenc_anatoliy.c
    • [DH] tests/ref/vsynth/vsynth1-prores
    • [DH] tests/ref/vsynth/vsynth2-prores
    • [DH] tests/ref/vsynth/vsynth3-prores
    • [DH] tests/ref/vsynth/vsynth_lena-prores
  • How to make audio sound better ? (C + FFMpeg audio generation example)

    21 février 2017, par Rella

    So I found this great C FFMpeg official example which I simplified :

    #include
    #include
    #include

    #ifdef HAVE_AV_CONFIG_H
    #undef HAVE_AV_CONFIG_H
    #endif

    #include "libavcodec/avcodec.h"
    #include "libavutil/mathematics.h"

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

    /*
    * Audio encoding example
    */
    static void audio_encode_example(const char *filename)
    {
       AVCodec *codec;
       AVCodecContext *c= NULL;
       int frame_size, i, j, out_size, outbuf_size;
       FILE *f;
       short *samples;
       float t, tincr;
       uint8_t *outbuf;

       printf("Audio encoding\n");

       /* find the MP2 encoder */
       codec = avcodec_find_encoder(CODEC_ID_MP2);
       if (!codec) {
           fprintf(stderr, "codec not found\n");
           exit(1);
       }

       c= avcodec_alloc_context();

       /* put sample parameters */
       c->bit_rate = 64000;
       c->sample_rate = 44100;
       c->channels = 2;

       /* open it */
       if (avcodec_open(c, codec) < 0) {
           fprintf(stderr, "could not open codec\n");
           exit(1);
       }

       /* the codec gives us the frame size, in samples */
       frame_size = c->frame_size;
       samples = malloc(frame_size * 2 * c->channels);
       outbuf_size = 10000;
       outbuf = malloc(outbuf_size);

       f = fopen(filename, "wb");
       if (!f) {
           fprintf(stderr, "could not open %s\n", filename);
           exit(1);
       }

       /* encode a single tone sound */
       t = 0;
       tincr = 2 * M_PI * 440.0 / c->sample_rate;
       for(i=0;i<200;i++) {
           for(j=0;j* encode the samples */
           out_size = avcodec_encode_audio(c, outbuf, outbuf_size, samples);
           fwrite(outbuf, 1, out_size, f);
       }
       fclose(f);
       free(outbuf);
       free(samples);

       avcodec_close(c);
       av_free(c);
    }

    int main(int argc, char **argv)
    {

       /* must be called before using avcodec lib */
       avcodec_init();

       /* register all the codecs */
       avcodec_register_all();

       audio_encode_example("test.mp2");

       return 0;
    }

    How should it sound like ? May be I don’t get something but it sounds awful =( how to make audio generation sound better/ more interesting/ melodical in a wary shourt way (no special functions just how to change this code to make it sound better) ?

  • I can't install ffmpegs (dependencies) - error with doxygen [mac 10.12.6 Sierra]

    12 septembre 2022, par Lo-Fi Junky

    It installed about 70% of the dependencies it needed to get ffmpegs going, but it got stuck at installing 'doxygen'.

    


    This is the error I got :

    


    ==> Installing dependencies for ffmpeg: doxygen, little-cms2, openjpeg, opus, rust, libgit2, cargo-c, rav1e, flac, libsndfile, libsamplerate, rubberband, sdl2, swig, llvm, snappy, speex, srt, leptonica, libb2, lz4, libarchive, tesseract, theora, x264, x265, xvid, docbook, boost, source-highlight, asciidoc, docbook-xsl, libyaml, ruby, asciidoctor, gnu-getopt, xmlto, libsodium, zeromq and zimg&#xA;==> Installing ffmpeg dependency: doxygen&#xA;==> cmake ..&#xA;==> make&#xA;Last 15 lines from /Users/macbook/Library/Logs/Homebrew/doxygen/02.make:&#xA;In file included from /tmp/doxygen-20220723-61533-5m5mdv/doxygen-1.9.4/src/outputlist.h:25:&#xA;/tmp/doxygen-20220723-61533-5m5mdv/doxygen-1.9.4/src/searchindex.h:29:10: fatal error: &#x27;variant&#x27; file not found&#xA;#include <variant>&#xA;         ^~~~~~~~~&#xA;1 error generated.&#xA;make[2]: *** [src/CMakeFiles/doxymain.dir/__/generated_src/code.cpp.o] Error 1&#xA;make[1]: *** [src/CMakeFiles/doxymain.dir/all] Error 2&#xA;make[1]: *** Waiting for unfinished jobs....&#xA;[ 46%] Linking CXX static library ../lib/libvhdlparser.a&#xA;cd /tmp/doxygen-20220723-61533-5m5mdv/doxygen-1.9.4/build/vhdlparser &amp;&amp; /usr/local/Cellar/cmake/3.23.2/bin/cmake -P CMakeFiles/vhdlparser.dir/cmake_clean_target.cmake&#xA;cd /tmp/doxygen-20220723-61533-5m5mdv/doxygen-1.9.4/build/vhdlparser &amp;&amp; /usr/local/Cellar/cmake/3.23.2/bin/cmake -E cmake_link_script CMakeFiles/vhdlparser.dir/link.txt --verbose=1&#xA;/usr/bin/ar qc ../lib/libvhdlparser.a CMakeFiles/vhdlparser.dir/CharStream.cc.o CMakeFiles/vhdlparser.dir/ParseException.cc.o CMakeFiles/vhdlparser.dir/Token.cc.o CMakeFiles/vhdlparser.dir/TokenMgrError.cc.o CMakeFiles/vhdlparser.dir/__/generated_src/VhdlParser_adj.cc.o CMakeFiles/vhdlparser.dir/VhdlParserTokenManager.cc.o&#xA;/usr/bin/ranlib ../lib/libvhdlparser.a&#xA;[ 46%] Built target vhdlparser&#xA;make: *** [all] Error 2&#xA;&#xA;Do not report this issue to Homebrew/brew or Homebrew/core!&#xA;&#xA;&#xA;Error: You are using macOS 10.12.&#xA;We (and Apple) do not provide support for this old version.&#xA;You will encounter build failures with some formulae.&#xA;Please create pull requests instead of asking for help on Homebrew&#x27;s GitHub,&#xA;Twitter or any other official channels. You are responsible for resolving&#xA;any issues you experience while you are running this&#xA;old version.&#xA;</variant>

    &#xA;

    Can someone please help me am not sure what it is, that I am supposed to do.

    &#xA;