Recherche avancée

Médias (91)

Autres articles (72)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (6095)

  • How can I output to a v4l2 driver using FFMPEG's avformat_write_header ?

    27 juin 2019, par Yousif

    I’m trying to use PyAV to output video to a V4l2 loopback device (/dev/video1), but I can’t figure out how to do it. It uses the avformat_write_header() from libav* (ffmpeg bindings).

    I’ve been able to get ffmpeg to output to the v4l2 device from the CLI but not from python.

  • avcodec/hashtable : Only free buffer if there is buffer to free

    3 juin, par Andreas Rheinhardt
    avcodec/hashtable : Only free buffer if there is buffer to free
    

    Reviewed-by : Emma Worley <emma@emma.gg>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/hashtable.c
  • Could you please guide me on how to play a single sample of an audio file in C# using FFmpeg ?

    11 juillet 2023, par hello world

    What is the recommended approach for playing a single sample of an audio file in C# using FFmpeg ? I would like to incorporate FFmpeg into my C# application to play a specific sample from an audio file. Could someone provide an example or guide me on how to achieve this ? Any help would be appreciated.

    &#xA;

    using System;&#xA;using System.Diagnostics;&#xA;&#xA;public class AudioPlayer&#xA;{&#xA;    private string ffmpegPath;&#xA;&#xA;    public AudioPlayer(string ffmpegPath)&#xA;    {&#xA;        this.ffmpegPath = ffmpegPath;&#xA;    }&#xA;&#xA;    public void PlayAudioSample(string audioFilePath, TimeSpan samplePosition)&#xA;    {&#xA;        // Prepare FFmpeg process&#xA;        Process ffmpegProcess = new Process();&#xA;        ffmpegProcess.StartInfo.FileName = ffmpegPath;&#xA;        ffmpegProcess.StartInfo.Arguments = $"-ss {samplePosition} -i \"{audioFilePath}\" -t 1 -acodec pcm_s16le -f wav -";&#xA;        ffmpegProcess.StartInfo.RedirectStandardOutput = true;&#xA;        ffmpegProcess.StartInfo.RedirectStandardError = true;&#xA;        ffmpegProcess.StartInfo.UseShellExecute = false;&#xA;        ffmpegProcess.StartInfo.CreateNoWindow = true;&#xA;&#xA;        // Start FFmpeg process&#xA;        ffmpegProcess.Start();&#xA;&#xA;        // Play audio sample&#xA;        using (var audioOutput = new NAudio.Wave.WaveOutEvent())&#xA;        {&#xA;            using (var audioStream = new NAudio.Wave.RawSourceWaveStream(ffmpegProcess.StandardOutput.BaseStream, new NAudio.Wave.WaveFormat(44100, 16, 2)))&#xA;            {&#xA;                audioOutput.Init(audioStream);&#xA;                audioOutput.Play();&#xA;                while (audioOutput.PlaybackState == NAudio.Wave.PlaybackState.Playing)&#xA;                {&#xA;                    System.Threading.Thread.Sleep(100);&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        // Wait for FFmpeg process to exit&#xA;        ffmpegProcess.WaitForExit();&#xA;    }&#xA;}&#xA;

    &#xA;