Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (69)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9916)

  • libFLAC/md5.c : Minor formatting fixes

    6 juillet 2015, par Erik de Castro Lopo
    libFLAC/md5.c : Minor formatting fixes
    

    Patch-from : lvqcl <lvqcl.mail@gmail.com>

    • [DH] src/libFLAC/md5.c
  • Suppress MSVS warnings when compiling for x86-64.

    10 avril 2014, par Erik de Castro Lopo
    Suppress MSVS warnings when compiling for x86-64.
    

    Patch-from : lvqcl <lvqcl.mail@gmail.com>

    • [DH] src/libFLAC/lpc.c
  • ffmpeg AVStream::codecpar is null

    12 décembre 2022, par RuiChen0101

    I'm trying to make a simple audio decoder by using libav, and I encounter a problem.&#xA;I cannot get AVCodecParameters from AVStream, codepar always is null.

    &#xA;

    here is my code.

    &#xA;

    #include &#xA;#include &#xA;#include &#xA;#include &#xA;&#xA;extern "C" {&#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;#include <libavutil></libavutil>channel_layout.h>&#xA;#include <libswresample></libswresample>swresample.h>&#xA;}&#xA;&#xA;int main(int argc, char** argv) {&#xA;  if (argc != 2) {&#xA;    fprintf(stderr, "usage: %s input_file > output_file\n", argv[0]);&#xA;    exit(1);&#xA;  }&#xA;&#xA;  const int out_channels = 2, out_samples = 512, sample_rate = 44100;&#xA;&#xA;  int max_buffer_size;&#xA;&#xA;  // register supported formats and codecs&#xA;  av_register_all();&#xA;&#xA;  // allocate empty format context&#xA;  // provides methods for reading input packets&#xA;  AVFormatContext* fmt_ctx = avformat_alloc_context();&#xA;&#xA;  // determine input file type and initialize format context&#xA;  if (avformat_open_input(&amp;fmt_ctx, argv[1], NULL, NULL) != 0) {&#xA;      fprintf(stderr, "error: avformat_open_input()\n");&#xA;      exit(1);&#xA;  }&#xA;&#xA;  // determine supported codecs for input file streams and add&#xA;  // them to format context&#xA;  if (avformat_find_stream_info(fmt_ctx, NULL) &lt; 0) {&#xA;    fprintf(stderr, "error: avformat_find_stream_info()\n");&#xA;    exit(1);&#xA;  }&#xA;&#xA;  AVCodec* codec = NULL;&#xA;  int stream = 0;&#xA;&#xA;  // find audio stream in format context&#xA;    &#xA;  fprintf(stderr, "%d\n", fmt_ctx->nb_streams);&#xA;  for (int i = 0; i &lt; fmt_ctx->nb_streams; i&#x2B;&#x2B;) {&#xA;    AVCodecParameters* avCodecParameters = NULL;&#xA;    avCodecParameters = fmt_ctx->streams[i]->codecpar;&#xA;    if(!avCodecParameters){&#xA;      fprintf(stderr, "error: CodecParameters\n");// always fail here&#xA;      exit(1);&#xA;    }&#xA;    if(avCodecParameters->codec_type == AVMEDIA_TYPE_AUDIO){&#xA;      stream = i;&#xA;      codec = avcodec_find_decoder(avCodecParameters->codec_id);&#xA;      if (!codec) {&#xA;          fprintf(stderr, "error: avcodec_find_decoder()\n");&#xA;          exit(1);&#xA;      }&#xA;      break;&#xA;    }&#xA;  }&#xA;&#xA;  if (stream == fmt_ctx->nb_streams) {&#xA;    fprintf(stderr, "error: no audio stream found\n");&#xA;    exit(1);&#xA;  }&#xA;  return 0;&#xA;}&#xA;

    &#xA;

    For the input file format, I have tried .wav and .m4a file

    &#xA;

    and the output always is

    &#xA;

    1&#xA;error: CodecParameters&#xA;

    &#xA;

    Dose anyone has the same problem ?

    &#xA;

    How to solve it ?

    &#xA;

    thanks !

    &#xA;