Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (81)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (9943)

  • How to make RedirectStandardOutput sends output while the process is running (realtime)

    19 février 2017, par Wayne

    I have this simple GUI for ffmpeg video convertion I made using VS2015 (visual basic)

    So far everything works except for the status text box where I want the current status to show while the conversion process is at work.

    Here is the code where I tried to capture the status

    'LET'S GET READY TO CONVERT
    ConvertProcessInfo.FileName = theApp
    ConvertProcessInfo.Arguments = theOptions

    'LET'S TRY TO CAPTURE STATUS
    ConvertProcessInfo.RedirectStandardError = True
    ConvertProcessInfo.RedirectStandardOutput = True
    ConvertProcessInfo.UseShellExecute = False
    ConvertProcessInfo.CreateNoWindow = True

    procFFMPEG.StartInfo = ConvertProcessInfo

    'LET'S CONVERT
    procFFMPEG.Start()

    Dim theStat As StreamReader = procFFMPEG.StandardError
    Dim theStatOut As String = theStat.ReadToEnd()
    txtProcessInfo.Text = theStatOut

    'LET'S WAIT FOR PROCESS TO EXIT
    procFFMPEG.WaitForExit()

    The problem, my status textbox only gets the status after the conversion is done, not during conversion. Only last/final status is returned.

  • Issue with creating an empty video and adding images using FFmpeg in C#

    14 juillet 2023, par hello world

    I'm working on a C# project where I need to create an empty video file and then add images to it using FFmpeg. However, the code I have implemented doesn't seem to be working as expected.

    


    Here's the code snippet I have :

    


    using System;
using System.Diagnostics;
using System.Drawing;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace VideoProcessingApp
{
    public partial class MainForm : Form
    {
        private bool render = false;

        public MainForm()
        {
            InitializeComponent();
        }

        private async void button6_Click(object sender, EventArgs e)
        {
            ProcessStartInfo createVideoInfo = new ProcessStartInfo
            {
                FileName = "ffmpeg.exe",
                Arguments = $"-f lavfi -i nullsrc -t 10 -s {pictureBox2.Width}x{pictureBox2.Height} -r 30 -c:v libx264 output.mp4",
                UseShellExecute = false,
                RedirectStandardOutput = true,
                RedirectStandardError = true,
                CreateNoWindow = true
            };

            using (Process createVideoProcess = new Process())
            {
                createVideoProcess.StartInfo = createVideoInfo;
                createVideoProcess.Start();

                render = true;
                await Task.Run(() =>
                {
                    for (int i = 0; i < 10; i++)
                    {
                        if (!render)
                            break;

                        Bitmap bmp = new Bitmap(1, 1);
                        pictureBox1.Invoke((MethodInvoker)(() =>
                        {
                            bmp = (Bitmap)pictureBox1.Image.Clone();
                        }));

                        while (bmp == pictureBox1.Image)
                        {
                            Thread.Sleep(10);
                        }

                        bmp.Save("a.jpg");

                        ProcessStartInfo addImageInfo = new ProcessStartInfo
                        {
                            FileName = "ffmpeg.exe",
                            Arguments = $"-i output.mp4 -i a.jpg -filter_complex \"overlay=10:10\" -c:v libx264 -c:a copy -f mp4 -",
                            UseShellExecute = false,
                            RedirectStandardOutput = true,
                            RedirectStandardError = true,
                            RedirectStandardInput = true,
                            CreateNoWindow = true
                        };

                        using (Process addImageProcess = new Process())
                        {
                            addImageProcess.StartInfo = addImageInfo;
                            addImageProcess.Start();

                            addImageProcess.WaitForExit();
                        }
                    }
                });
            }

            File.Delete("a.jpg");
        }
    }
}


    


    In this code, I'm attempting to create an empty video by executing an FFmpeg command to generate a nullsrc video. Then, I'm using a loop to capture images from a PictureBox control and overlay them onto the video using FFmpeg.

    


    The issue I'm facing is that the video is not being created at all. I have verified that FFmpeg is installed on my system and the paths to the FFmpeg executable are correct.

    


    I would appreciate any insights or suggestions on what could be causing this issue and how to resolve it. Thank you !

    


  • openCV connect and process an ip camera stream (rtsp protocol)

    12 mai 2020, par aviram_Piletzki

    i am trying to connect and process a video stream from my ip camera
i am using 360Eye(s) camera.

    



    this is my code trying to connect :

    



    import cv2
cap = cv2.VideoCapture('rtsp://admin:123456@192.168.0.333')
while True:
    ret, img = cap.read()
    if ret == True:
        cv2.imshow('video output', img)
        k = cv2.waitKey(10)& 0xff
        if k == 27:
            break
cap.release()
cv2.destroyAllWindows()


    



    and i never get inside the if statment