Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (61)

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

  • 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 (6986)

  • How do I make this render callback only provide a specific channel ?

    4 décembre 2013, par awfulcode

    I'm using the wonderful kxmovie as the base for an app I'm writing. Instead of only using the remote I/O, I added a mixer to this. The idea is to have each audio channel from a video file be connected to its own bus on the mixer.

    I have two questions for you.

    1. Is there a way of calling the render callback only once and yet feed each bus only one channel ?

    2. If I need to call separate callbacks for different busses, how can I change the original code so it only renders a specific channel ? Maybe pass the inOutputBusNumber value to the render callback ?

    Here's the code for the original render callback.

    As always, thank you so much.

    P.S. : Does anyone have any idea why it's using _outdata+iChannel in the FFT operation ?

    - (BOOL) renderFrames: (UInt32) numFrames
                  ioData: (AudioBufferList *) ioData
    {
       for (int iBuffer=0; iBuffer < ioData->mNumberBuffers; ++iBuffer) {
           memset(ioData->mBuffers[iBuffer].mData, 0, ioData->mBuffers[iBuffer].mDataByteSize);
       }

       if (_playing && _outputBlock ) {

           // Collect data to render from the callbacks
           _outputBlock(_outData, numFrames, _numOutputChannels);

           // Put the rendered data into the output buffer
           if (_numBytesPerSample == 4) // then we've already got floats
           {
               float zero = 0.0;

               for (int iBuffer=0; iBuffer < ioData->mNumberBuffers; ++iBuffer) {

                   int thisNumChannels = ioData->mBuffers[iBuffer].mNumberChannels;

                   for (int iChannel = 0; iChannel < thisNumChannels; ++iChannel) {
                       vDSP_vsadd(_outData+iChannel, _numOutputChannels, &zero, (float *)ioData->mBuffers[iBuffer].mData, thisNumChannels, numFrames);
                   }
               }
           }
           else if (_numBytesPerSample == 2) // then we need to convert SInt16 -> Float (and also scale)
           {
               float scale = (float)INT16_MAX;
               vDSP_vsmul(_outData, 1, &scale, _outData, 1, numFrames*_numOutputChannels);

               for (int iBuffer=0; iBuffer < ioData->mNumberBuffers; ++iBuffer) {

                   int thisNumChannels = ioData->mBuffers[iBuffer].mNumberChannels;

                   for (int iChannel = 0; iChannel < thisNumChannels; ++iChannel) {
                       vDSP_vfix16(_outData+iChannel, _numOutputChannels, (SInt16 *)ioData->mBuffers[iBuffer].mData+iChannel, thisNumChannels, numFrames);
                   }
               }

           }        
       }

       return noErr;
    }
  • Can ffmpeg convert audio from raw PCM to WAV ?

    6 avril 2022, par xXx_CodeMonkey_xXx

    I can convert wav file to pcm

    



    ffmpeg -i file.wav -f s16le -acodec pcm_s16le file.pcm


    



    How can I revert this operation ?

    


  • Can AWS Transcoder merge an audio file and a video file ?

    7 juillet 2017, par Daniel Bernstein

    I’m interested in capturing video via html5. The problem is that the video is captured separately from the audio. So to produce a video with audio, one must merge them together. It appears that ffmpeg will do the trick.

    Does anyone know if AWS Transcoder will perform this operation as well ?