Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (65)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

Sur d’autres sites (6143)

  • Convert video with FFMPEG Library in android

    27 septembre 2012, par Sanat Pandey

    I have a problem that I received a video foile from the server which can not be played throgh video view from the app I am making. I don't know what the actaul problem is because all videos are played through same video view but the video received from the server side is not played. So, I think that I have to integrate FFMPEG in our android app, so I can play every video at a runtime conversion. For this I have read much more about FFMPEG Library integration with android through many sites as :

    http://www.roman10.net/how-to-build-android-applications-based-on-ffmpeg-by-an-example/

    Downloaded some projects from GitHUb (https://github.com/appunite/AndroidFFmpeg) but unable to succeed for building the Library through NDK. Some thing I missed and I am working on Windows machine, probably this might be a problem. I want the exact solution regarding this, means step by step solution for building the android project with FFMPEG Library. If you have some useful suggestion then please share with me.

    Thanks in advance.

  • FFmpeg.AutoGen C# library Can't open Codec G726

    8 septembre 2024, par Rushdi Eskandar

    I am stuck with FFmpeg.AutoGen G726 Audio codec, it always shows error invalid argument.
Note that I Tried other codecs such as G722, G711 and it is working fine except for G726 codec. I also confirm that my binaries does support G726 codec using this command ffmpeg -formats. Please tell me what could be the reason, and if you know any other library for decoding G726 that would be better

    


    public unsafe class AudioDecoder : IDisposable
 {
   private AVCodecContext* _codecContext;
   private AVCodec* _codec;
   private AVFrame* _frame;
   private AVPacket* _packet;

   public AudioDecoder()
   {
       // Find the G726 decoder
       _codec = ffmpeg.avcodec_find_decoder(AVCodecID.AV_CODEC_ID_ADPCM_G726);
       if (_codec == null)
       {
           throw new Exception("G726 codec not found.");
       }

       // Allocate codec context
       _codecContext = ffmpeg.avcodec_alloc_context3(_codec);
       if (_codecContext == null)
       {
           throw new Exception("Failed to allocate codec context.");
       }

       // Print supported sample formats
       Console.WriteLine("Supported sample formats for G726 codec:");
       AVSampleFormat* sample_fmts = _codec->sample_fmts;
       if (sample_fmts != null)
       {
           while (*sample_fmts != AVSampleFormat.AV_SAMPLE_FMT_NONE)
           {
               Console.WriteLine($"Sample format: {*sample_fmts}");
               sample_fmts++;
           }
       }

       // Set codec parameters
       _codecContext->sample_rate = 8000;  // G726 typically uses 8000Hz
       if (_codec->sample_fmts != null)
       {
           _codecContext->sample_fmt = *_codec->sample_fmts;  // Use the first supported sample format
       }
       else
       {
           _codecContext->sample_fmt = AVSampleFormat.AV_SAMPLE_FMT_S16;  // Fallback to a common format
       }
       _codecContext->bit_rate = 32000;  // Example bitrate for G726

       // Attempt to open the codec with detailed error logging
       int ret = ffmpeg.avcodec_open2(_codecContext, _codec, null);
       if (ret < 0)
       {
           byte[] errBuf = new byte[1024];
           fixed (byte* errPtr = errBuf)
           {
               ffmpeg.av_strerror(ret, errPtr, (ulong)errBuf.Length);
           }
           string errMessage = System.Text.Encoding.UTF8.GetString(errBuf);
           throw new Exception($"Failed to open codec (Error code: {ret}): {errMessage}");
       }

       // Allocate packet and frame
       _packet = ffmpeg.av_packet_alloc();
       _frame = ffmpeg.av_frame_alloc();
       if (_packet == null || _frame == null)
       {
           throw new Exception("Failed to allocate packet or frame.");
       }
   }
}


    


  • Evolution #3096 (Nouveau) : fichier lang public/privé sur les plugins

    15 novembre 2013, par Fabrice Véronneau

    Il semblerait qu’il ne soit pas possible de surcharger la langue d’un plugin sur la partie publique sans interférer sur la partie privée.
    Une surcharge potentielle pourrait être intéressante du type :
    public_prefixplugin_fr.php
    ou
    ecrire_prefixplugin_fr.php
    surchargeant :
    prefixeplugin.fr