Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (38)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (4919)

  • Image sequence to video stream ?

    15 novembre 2020, par Hauns TM

    Like many people already seem to have (there are several threads on this subject here) I am looking for ways to create video from a sequence of images.

    



    I want to implement my functionality in C# !

    



    Here is what I wan't to do :

    



    /*Pseudo code*/&#xA;void CreateVideo(List<image> imageSequence, long durationOfEachImageMs, string outputVideoFileName, string outputFormat)&#xA;{&#xA;    // Info: imageSequence.Count will be > 30 000 images&#xA;    // Info: durationOfEachImageMs will be &lt; 300 ms&#xA;&#xA;    if (outputFormat = "mpeg")&#xA;    {&#xA;    }&#xA;    else if (outputFormat = "avi")&#xA;    {      &#xA;    }&#xA;    else&#xA;    {&#xA;    }&#xA;&#xA;    //Save video file do disk&#xA;}&#xA;</image>

    &#xA;&#xA;

    I know there's a project called Splicer (http://splicer.codeplex.com/) but I can't find suitable documentation or clear examples that I can follow (these are the examples that I found).

    &#xA;&#xA;

    The closest I want to do, which I find here on CodePlex is this :&#xA;How can I create a video from a directory of images in C# ?

    &#xA;&#xA;

    I have also read a few threads about ffmpeg (for example this : C# and FFmpeg preferably without shell commands ? and this : convert image sequence using ffmpeg) but I find no one to help me with my problem and I don't think ffmpeg-command-line-style is the best solution for me (because of the amount of images).

    &#xA;&#xA;

    I believe that I can use the Splicer-project in some way (?).

    &#xA;&#xA;

    In my case, it is about about > 30 000 images where each image should be displayed for about 200 ms (in the videostream that I want to create).

    &#xA;&#xA;

    (What the video is about ? Plants growing ...)

    &#xA;&#xA;

    Can anyone help me complete my function ?

    &#xA;

  • C# process to get image from ffmpeg stdout [duplicate]

    12 avril 2019, par Alex

    This question already has an answer here :

    We need to read some RTSP streams in C# using ffmpeg and pipe the stdout to a MemoryStream. We need to get a snapshot out of each stream. Here’s my code so far :

    var arguments =
       $@" -y -i {imageUri.AbsoluteUri} -vframes 1 -pix_fmt yuvj420p -vf select='eq(pict_type\,I)' -q:v 1 pipe:1";

    var processStartInfo = new ProcessStartInfo
    {
       Arguments = arguments,
       FileName = AppDomain.CurrentDomain.BaseDirectory + @"\lib\ffmpeg.exe",
       CreateNoWindow = true,
       UseShellExecute = false,
       RedirectStandardOutput = true,
       RedirectStandardError = true
    };
    var process = new Process
    {
       StartInfo = processStartInfo,
       EnableRaisingEvents = true
    };

    process.Start();
    var output = process.StandardError.Read();
    process.StandardOutput.BaseStream.CopyTo(memoryStream);

    But with above memoryStream.Length is always 0. What’s going on ? I’ve looked at this : How to get output from ffmpeg process in c# but I’m reading binary from stdout. And this answer gives little implementation details : https://stackoverflow.com/a/4535927/177416

    Wasn’t sure how to use this answer : .NET Process - Redirect stdin and stdout without causing deadlock

  • AttributeError : 'FFmpegAudio' object has no attribute '_process' while trying to play audio from URL

    13 août 2022, par jmcamacho7

    I can't find any solution online and I don't know what's wrong.

    &#xA;

    My code is : (Not pasting the URL getting since that works fine)

    &#xA;

    from urllib import parse, request&#xA;import re&#xA;import pafy&#xA;from discord import FFmpegPCMAudio, PCMVolumeTransformer&#xA;&#xA;FFMPEG_OPTIONS = {&#xA;    &#x27;before_options&#x27;: &#x27;-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5&#x27;, &#x27;options&#x27;: &#x27;-vn&#x27;&#xA;}&#xA;&#xA;@bot.command(pass_context=True)&#xA;async def play(ctx, * , search):&#xA;  query_string = parse.urlencode({&#x27;search_query&#x27;: search})&#xA;  html_content = request.urlopen(&#x27;http://www.youtube.com/results?&#x27; &#x2B; query_string)&#xA;  search_results=re.findall(&#x27;watch\?v=(.{11})&#x27;,html_content.read().decode(&#x27;utf-8&#x27;))&#xA;  print(search_results[0])&#xA;  &#xA;  if(ctx.author.voice):&#xA;    channel = ctx.message.author.voice.channel&#xA;    await ctx.send("https://www.youtube.com/watch?v="&#x2B;search_results[0])  &#xA;    url = "https://www.youtube.com/watch?v="&#x2B;search_results[0]&#xA;    conn = await channel.connect()&#xA;    conn.play(discord.FFmpegAudio(url, **FFMPEG_OPTIONS))&#xA;  else:&#xA;    await ctx.send("Necesitas estar en un canal de audio para usar este comando")&#xA;

    &#xA;

    It just gives me this error everytime I try it :

    &#xA;

    Traceback (most recent call last):&#xA;  File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 103, in __del__&#xA;    self.cleanup()&#xA;  File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 154, in cleanup&#xA;    proc = self._process&#xA;AttributeError: &#x27;FFmpegAudio&#x27; object has no attribute &#x27;_process&#x27;&#xA;

    &#xA;

    Anyway to solve this ?

    &#xA;