Recherche avancée

Médias (0)

Mot : - Tags -/page unique

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (31)

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

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (4450)

  • my ffmpeg stops streaming after a few seconds

    15 février 2015, par Andrew Simpson

    This is all new to me.

    I am using ffmpeg in my c# desktop app.

    The idea is to use the Process under C# to start ffmpeg on the DOS prompt.

    I then parse each bit of data to ’split’ off my jpegs.

    But after a few seconds the feed just stops.

    This is my code :

    private void button1_Click(object sender, EventArgs e)
       {
           try
           {
               Process process = new Process();
               FileStream baseStream = null;

               string arguments = @" -i rtsp://admin:admin@192.168.0.8:554/video_1 -an -f image2pipe -vf fps=fps=6 -qscale 0 -";
               string file = @"C:\bin\ffmpeg.exe";
               process.StartInfo.FileName = file;
               process.StartInfo.Arguments = arguments;
               process.StartInfo.CreateNoWindow = true;
               process.StartInfo.RedirectStandardError = true;
               process.StartInfo.RedirectStandardOutput = true;
               process.StartInfo.UseShellExecute = false;

               Task.Run(() =>
               {
                   try
                   {
                       process.Start();
                       byte[] buffer = new byte[200000];
                       //var error = process.StandardError.ReadToEnd();
                       //var error = process..ReadToEnd();

                       baseStream = process.StandardOutput.BaseStream as FileStream;
                       bool gotHeader = false;
                       bool imgFound = false;
                       int counter = 0;
                       while (true)
                       {
                           byte bit1 = (byte)baseStream.ReadByte();
                           buffer[counter] = bit1;

                           if (bit1 == 217 && gotHeader)
                           {
                               if (buffer[counter - 1] == 255)
                               {
                                   byte[] jpeg = new byte[counter];
                                   Buffer.BlockCopy(buffer, 0, jpeg, 0, counter);
                                   using (MemoryStream ms = new MemoryStream(jpeg))
                                   {
                                       pictureBox1.Image = Image.FromStream(ms);
                                       ms.Close();
                                   }
                                   imgFound = true;
                               }
                           }
                           else if (bit1 == 216)
                           {
                               if (buffer[counter - 1] == 255)
                               {
                                   gotHeader = true;
                               }
                           }
                           if (imgFound)
                           {
                               counter = 0;
                               buffer = new byte[200000];
                               imgFound = false;
                               gotHeader = false;
                           }
                           else
                           {
                               counter++;
                           }
                       }
                   }
                   catch (Exception ex2)
                   {
                       //log error here
                   }
               });
           }
           catch (Exception ex)
           {
               //log error here
           }
       }

    Like I said it works but then just stops.

    Is there something I should be mindful of ?
    Also, is there way to receive any errors.
    Finally, is there a was to specify the quality of the jpeg ?

    thanks

  • FFMpeg Image2Pipe VB.net

    17 février 2019, par Zakir_SZH

    i m trying to pipe image from my code to ffmpeg.. i am using flowing code :

    but it does not working, produced video is not playable :(

       Dim proc As Process = New Process()
       Dim objStream As System.IO.Stream
       proc.StartInfo.FileName = strAPPPath & "\ffmpeg.exe"
       proc.StartInfo.Arguments = "-f image2pipe -i pipe:.bmp -crf 25.0 -vcodec libx264 -acodec libvo_aacenc -vf scale=1280:720 -ar 48000 -b:a 160k -coder 1 -rc_lookahead 60 -threads 0 -an out_vid.mp4"
       proc.StartInfo.UseShellExecute = False
       proc.StartInfo.RedirectStandardInput = True
       proc.StartInfo.RedirectStandardOutput = True
       proc.StartInfo.RedirectStandardError = True
       proc.Start()
       objStream = proc.StandardInput.BaseStream
       For i As Integer = 0 To 75 - 1
           Using img As System.Drawing.Image = Image.FromFile(strAPPPath & "\IMG\1033_WebImage.jpg")
               img.Save(objStream, System.Drawing.Imaging.ImageFormat.Bmp)
           End Using
           objStream.Flush()
       Next
       objStream.Close()
       proc.WaitForExit()

    so, what i am missing here ?

    best regards

  • When streaming response in Flask file unplayable

    21 décembre 2015, par nadermx

    I currently have a function that runs ffmpeg enconder on a flv stream from youtube.

    def console(cmd, add_newlines=False):
       p = Popen(cmd, shell=True, stdout=PIPE)
       while True:
           data = p.stdout.readline()
           if add_newlines:
               data += str('\n')
           yield data

           p.poll()
           if isinstance(p.returncode, int):
               if p.returncode > 0:
                   # return code was non zero, an error?
                   print 'error:', p.returncode
               break

    This works fine when I run the ffmpeg command and have it output to a file. The file is playable.

    mp3 = console('ffmpeg -i "%s" -acodec libmp3lame -ar 44100 -f mp3 test.mp3' % video_url, add_newlines=True)

    But when I have ffmpeg output to stdout via - instead of test.mp3, and stream that response. The file streams fine, is the correct size. But does not play correctly. Sounds chopy, and when I check the properties of the file it doesn’t show the data of it as it does with test.mp3

    @app.route('/test.mp3')
    def generate_large_mp3(path):
       mp3 = console('ffmpeg -i "%s" -acodec libmp3lame -ar 44100 -f mp3 -' % video_url, add_newlines=True)
       return Response(stream_with_context(mp3), mimetype="audio/mpeg3",
                      headers={"Content-Disposition":
                                   "attachment;filename=test.mp3"})

    Is there something I am missing ?