Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (62)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (6947)

  • Merge Camera and AudioListener feeds into a video in Unity for OpenCV

    23 septembre 2020, par KDelli

    I'm trying to create a simulated environnement using Unity3D. My first goat is to fetch the camera and audiolistener feeds and merge / convert it into a readable video. Once I get this, I want to send this to OpenCV.

    



    To do so, I have created a scene with a camera and an object that emit a constant noise. Then, I have attached this script to the camera to catch the feeds :

    



    private Texture2D texture;&#xA;private byte[] lastTexture;&#xA;private float[] lastAudio;&#xA;&#xA;&#xA;private void Start () &#xA;{&#xA;    texture = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false);&#xA;}&#xA;&#xA;/// <summary>&#xA;/// Called each time the camera have finished rendering the scene.&#xA;/// </summary>&#xA;private void OnPostRender()&#xA;{&#xA;    // Read the pixel of the camera.&#xA;    texture.ReadPixels(new Rect(0.0f, 0.0f, Screen.width, Screen.height), 0, 0, true);&#xA;&#xA;    // Encode it to PNG.&#xA;    lastTexture = texture.EncodeToJPG(25);&#xA;&#xA;    // Audio sync => fetch the last recorded audio.&#xA;    var encodedLastAudio = ConvertAudio(lastAudio);&#xA;&#xA;    // TODO merge and convert to mpeg then send via UDP.&#xA;}&#xA;&#xA;/// <summary>&#xA;/// Raises the audio filter read event.&#xA;/// </summary>&#xA;/// Data.&#xA;/// Channels.&#xA;private void OnAudioFilterRead(float[] data, int channels)&#xA;{&#xA;    lastAudio = data;&#xA;}&#xA;&#xA;/// <summary>&#xA;/// Converts the data recieved by the AudioFilterRead event into a byte array.&#xA;/// </summary>&#xA;/// <returns>The audio.</returns>&#xA;/// Data source.&#xA;private byte[] ConvertAudio(float[] dataSource)&#xA;{&#xA;    // Converting in 2 steps : float[] to Int16[], &#xA;    // then Int16[] to Byte[].&#xA;    var intData = new Int16[dataSource.Length];&#xA;&#xA;    // BytesData array is twice the size of&#xA;    //dataSource array because a float converted in Int16 is 2 bytes.&#xA;    var bytesData = new Byte[dataSource.Length*2];&#xA;&#xA;    // To convert float to Int16&#xA;    var rescaleFactor = 32767f; &#xA;&#xA;    for (var i = 0; i &lt; dataSource.Length; i&#x2B;&#x2B;)&#xA;    {&#xA;        intData[i] = (short)(dataSource[i]*rescaleFactor);&#xA;    }&#xA;    Buffer.BlockCopy(intData, 0, bytesData, 0, bytesData.Length);&#xA;&#xA;    return bytesData;   &#xA;}&#xA;

    &#xA;&#xA;

    Am I doing it right ? If so, I have already looking for C# implementation of ffmpeg like :

    &#xA;&#xA;

      &#xA;
    • ffmpeg.net
    • &#xA;

    • ffmpeg-sharp
    • &#xA;

    • fflib.net
    • &#xA;

    &#xA;&#xA;

    but I think it is a bit complicated and it will have a massive cpu usage.&#xA;Did someone managed to do so, or something alike ?

    &#xA;&#xA;

    I already know how to add a wav header to my audio feeds thanks to another thread.

    &#xA;

  • Commit new versions of geenrated docs to reflect floor1 spec addition/correction

    20 janvier 2012, par Monty
    Commit new versions of geenrated docs to reflect floor1 spec addition/correction
    

    git-svn-id : http://svn.xiph.org/trunk/vorbis@18156 0101bb08-14d6-0310-b084-bc0e0c8e3800

    • [DH] doc/Vorbis_I_spec.html
    • [DH] doc/Vorbis_I_spec.pdf
    • [DH] doc/Vorbis_I_spec0x.png
    • [DH] doc/Vorbis_I_spec10x.png
    • [DH] doc/Vorbis_I_spec11x.png
    • [DH] doc/Vorbis_I_spec12x.png
    • [DH] doc/Vorbis_I_spec1x.png
    • [DH] doc/Vorbis_I_spec2x.png
    • [DH] doc/Vorbis_I_spec3x.png
    • [DH] doc/Vorbis_I_spec4x.png
    • [DH] doc/Vorbis_I_spec5x.png
    • [DH] doc/Vorbis_I_spec6x.png
    • [DH] doc/Vorbis_I_spec7x.png
    • [DH] doc/Vorbis_I_spec8x.png
    • [DH] doc/Vorbis_I_spec9x.png
  • Evolution #3552 (Nouveau) : margin-bottom trop grand sur les docs

    24 septembre 2015, par Franck Dalot

    Bonjour
    SPIP 3.1.0-beta SVN [22422]

    Quand on ajoute des doc, il y a un margin-bottom qui est un peu grand
    http://zone.spip.org/trac/spip-zone/browser/_core_/plugins/neo-dist/css/spip.css#L87
    En effet, si l’on ajoute pleins d’images, cela donne un escalier :-D Voir les copies d’écran

    Ne devrait’il pas être, un peu moins grand (margin-bottom : 0.5em) voir disparaitre ?
    Il y a une astuce concernant les qui consiste simplement à mettre
    Mais par contre, il n’y a pas concernant (car là aussi, cela fait un escalier, mais dans l’autre sens)

    Même quand il y a du texte (voir copie : public2) le bottom actuelle n’est pas forcément "génial"
    Franck