Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (40)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (5376)

  • Evolution #3897 : Traduction des configurations (yaml, xml, json) et certains formulaires ( _T_ou_...

    12 septembre 2019, par RastaPopoulos ♥

    Et donc pour résumer : actuellement depuis 3.2, c’est super, on peut appeler des chaines de langue dans les #TEXTE, mais en revanche, rien pour ce ticket, on ne peut absolument pas remplacer _T_ou_typo($chaine_ou_tableau) par typo($chaine_ou_tableau).

  • carrierwave-ffmpeg .weba audio convert to .mp3 or .mp4

    14 mai 2018, par nmadoug

    I use react-mic on the front-end of my React/Rails application to capture audio from the user. react-mic formats the audio blob as .weba. I’m trying to convert the .weba to .mp4 or .mp3 using carrierwave-ffmpeg . I can isolate the issue to my Rails uploader, which is as follows :

    require 'fog/aws'

    class UserResponseUploader < CarrierWave::Uploader::Base
     include CarrierWave::FFmpeg

     if Rails.env.test?
       storage :file
     else
       storage :fog
     end

     version :mp3 do
       puts `which ffmpeg`
       # binding.pry
       process encode: [:mp3, audio_codec: "a libmp3lame -qscale:a 2"]
       # process :encode_audio=> [:mp4, audio_codec: "aac",:custom => "-strict experimental -qscale:a 2"]

       def full_filename(for_file)
         super.chomp(File.extname(super)) + '.mp3'
       end
     end

     # Directory where uploaded files will be stored on file system or AWS
     def store_dir
       "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
     end
    end

    ffmpeg is installed on my local PC and I can run the command on the terminal to get an audio file created

    ffmpeg -i audio.weba -codec:a libmp3lame -qscale:a 2 willwork.mp3

    My problem is when I try and run everything in my code, I get the following error message :

    NameError (undefined local variable or method `e' for #):

    I don’t know where it’s complaining. I have a feeling the encoding line is causing the problem and I don’t have it set up properly.

    Any ideas ?

  • Looking for Javacpp FFMPEG CustomIO Example

    26 février 2017, par user1902291

    I am trying to get Custom IO working with JavaCPP FFMPEG. Has anyone succeeded at this ? Can you post your code ?

    Here is mine (Scala), which does not work. It compiles and runs, but does not seem to call my Read and Seek methods

    val readPtr = new Pointer()
    val seekPtr = new Pointer()
    val userDataPtr = new Pointer()
    val read = new Read_packet_Pointer_BytePointer_int(readPtr) {
     override def call(userDataPtr: Pointer, @Cast(Array("uint8_t*")) buf: BytePointer, buf_size: Int): Int = {
       super.call(userDataPtr, buf, buf_size)
     }
    }
    val seek = new Seek_Pointer_long_int(seekPtr) {
     @Cast(Array("int64_t")) override def call(userDataPtr: Pointer, @Cast(Array("int64_t")) offset: Long, whence: Int): Long = {
       super.call(userDataPtr, offset, whence)
     }
    }

    val bufferSize = 1024 * 1024
    val readBuffer = new BytePointer(bufferSize)

    val avioContext = avformat.avio_alloc_context(
     readBuffer,   // internal buffer
     bufferSize,   // and its size
     0,            // write flag (1=true,0=false)
     userDataPtr,  // user data, will be passed to our callback functions
     read,
     null,         // no writing
     seek
    )

    formatContext.pb(avioContext)
    formatContext.flags(formatContext.flags | avformat.AVFormatContext.AVFMT_FLAG_CUSTOM_IO)
    formatContext.iformat(avformat.av_find_input_format("mp4"))

    avformat.avformat_open_input(formatContext, null.asInstanceOf[String], null, null)