Recherche avancée

Médias (91)

Autres articles (57)

  • 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" (...)

  • 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.

Sur d’autres sites (6518)

  • decode FLAC file with avcodec_decode_audio4 not work well

    12 novembre 2015, par chaoqi

    I use FFmpeg to decode my flac file and write it to pcm file, then use GoldenWave to play it with pcm signed 16bit, little endian, mono and the total play time is ok.

    I doubt i write the 2 channel file in one place, but i don’t know how to get every signal channel and write it to pcm file.

    any help ? thank you.

    while (av_read_frame(fmt_ctx, &pkt) >= 0) {
               AVPacket orig_pkt = pkt;
               do {
                   ret = decode_packet(&got_frame, 0);
                   if (ret < 0)
                       break;
                   pkt.data += ret;
                   pkt.size -= ret;
               } while (pkt.size > 0);
               av_free_packet(&orig_pkt);
           }

           pkt.data = NULL;
           pkt.size = 0;
           do {
               decode_packet(&got_frame, 1);
               LOG("flush cached frames");
           } while (got_frame);



    static int decode_packet(int *got_frame, int cached)
    {
       int ret = 0;
       int decoded = pkt.size;

       *got_frame = 0;

       if (pkt.stream_index == audio_stream_idx) {
           ret = avcodec_decode_audio4(audio_dec_ctx, frame, got_frame, &pkt);
           if (ret < 0) {
               LOG("Error decoding audio frame (%s)\n", av_err2str(ret));
               return ret;
           }

           decoded = FFMIN(ret, pkt.size);

           if (*got_frame) {
               size_t unpadded_linesize = frame->nb_samples * av_get_bytes_per_sample(audio_dec_ctx->sample_fmt);
               //decode packet  nb_samples:4608, xx:2, unpadded_linesize: 9216
               LOG("decode packet  nb_samples:%d, xx:%d, unpadded_linesize: %d",
                       frame->nb_samples, av_get_bytes_per_sample(audio_dec_ctx->sample_fmt), unpadded_linesize);
               fwrite(frame->extended_data[0], 1, unpadded_linesize, audio_dst_file);

               //int nb_sample = frame->nb_samples;

               //fwrite(frame->extended_data[0], 1, nb_sample, audio_dst_file);
               //fwrite(frame->extended_data[0] + nb_sample, 1, nb_sample, audio_dst_file);

           }
       }

       if (*got_frame && api_mode == API_MODE_NEW_API_REF_COUNT)
           av_frame_unref(frame);

       return decoded;
    }
  • Aforge FFMpeg DLL Location Issue

    4 novembre 2013, par Sam35

    I'm using AForge FFMPEG libraries for video compression in .Net.Currently I've put the ffmpeg & Aforge libraries in the location which the application(.exe) exists.

    I need to put these libraries in a common place.i've tried to put these libraries inside system32 folder. It is not working.

    Is there any ways to put the Aforge & FFMpeg Libraries in a common place other than application(.exe) directory ?

  • C++/CLI — 0xc000007b (INVALID_IMAGE_FORMAT) with /clr option on

    9 mars 2015, par OverMachoGrande

    I’m trying to build a C++/CLI executable to which I statically link ffmpeg (libavcodec, libavformat, libavutil & swscale). It works fine if I build it normally (without /clr, so no CLR support), it works. However, when I add CLR support, it won’t start up with a 0xc000007b. A "Hello World" C++/CLI app runs fine, though.

    Supposedly the same thing happens with Boost::Threads, but since ffmpeg is pure C, I doubt it’s using Boost.

    My config :

    • Visual Studio 2008 Professional SP1
    • Windows XP Pro SP3 (x86)
    • .NET Framework 3.5 SP1

    Thanks,
    Robert