Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (101)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • 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

Sur d’autres sites (16718)

  • Replaced Image Processing plugin with a more generic File Processing plugin.

    22 avril 2012, par Sebastian Tschan

    m README.md m index.html + js/jquery.fileupload-fp.js - js/jquery.fileupload-ip.js m js/jquery.fileupload-ui.js m js/main.js m package.json m test/index.html Replaced Image Processing plugin with a more generic File Processing plugin. The File Processing plugin exposes the "process" option, (...)

  • Complex, how to -o, -mv or similar into this code ? [closed]

    13 décembre 2020, par Sounds Good

    Trying to change location of output file
Using Windows>Ubuntu app>Shell/Cmd>Bash (because Windows alone code does not work at all)
Using Ffmpeg/Youtube-dl/Sed together
It works on its own :

    


    ffmpeg $( youtube-dl -f bestvideo+bestaudio --youtube-skip-dash-manifest -g https://www.youtube.com/watch?v=zSyNOO_gvUY | sed "s/.*/-ss 04:09 -to 04:15 -i &/") -map 0:v -map 1:a -c:v libx264 -c:a aac name.mp4

    


    Bash starts as : :/mnt/c/Users/Machine$

    


    Fallowing just few of many problems I tried to figure out for this :

    


    should I use / or \ to "subfolder"

    


    Start from / or C or Desktop etc.

    


    does -o need to be configured and if so how

    


    placements after Youtube-dl or in the ending by keeping name.mp4 or not, or changing it to
'-o %(title)s.%(ext)s' (title change needed as well thought)

    


    help.

    


  • 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.

    


    using System;
using System.Diagnostics;

public class AudioPlayer
{
    private string ffmpegPath;

    public AudioPlayer(string ffmpegPath)
    {
        this.ffmpegPath = ffmpegPath;
    }

    public void PlayAudioSample(string audioFilePath, TimeSpan samplePosition)
    {
        // Prepare FFmpeg process
        Process ffmpegProcess = new Process();
        ffmpegProcess.StartInfo.FileName = ffmpegPath;
        ffmpegProcess.StartInfo.Arguments = $"-ss {samplePosition} -i \"{audioFilePath}\" -t 1 -acodec pcm_s16le -f wav -";
        ffmpegProcess.StartInfo.RedirectStandardOutput = true;
        ffmpegProcess.StartInfo.RedirectStandardError = true;
        ffmpegProcess.StartInfo.UseShellExecute = false;
        ffmpegProcess.StartInfo.CreateNoWindow = true;

        // Start FFmpeg process
        ffmpegProcess.Start();

        // Play audio sample
        using (var audioOutput = new NAudio.Wave.WaveOutEvent())
        {
            using (var audioStream = new NAudio.Wave.RawSourceWaveStream(ffmpegProcess.StandardOutput.BaseStream, new NAudio.Wave.WaveFormat(44100, 16, 2)))
            {
                audioOutput.Init(audioStream);
                audioOutput.Play();
                while (audioOutput.PlaybackState == NAudio.Wave.PlaybackState.Playing)
                {
                    System.Threading.Thread.Sleep(100);
                }
            }
        }

        // Wait for FFmpeg process to exit
        ffmpegProcess.WaitForExit();
    }
}