Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (58)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • ffmpeg : record/capture stream and do scene detection at the same time

    2 août 2022, par AnodeCathode

    Is it possible to both capture (record) an RTSP stream and capture scene change events using a single ffmpeg command ? I can almost do what I want with :

    



    ffmpeg -i 'rtsp://mystream' \
-map 0:v -map 0:a -c:v copy -c:a copy -f segment \
-segment_time 300 -segment_format matroska -strftime 1 "%Y%m%d%H%M%S_video.mkv" \
-map 0:v -an -filter:v "select='gt(scene,0.1)'" -frames:v 1 "%Y%m%d%H%M%S_scenechange.png"


    



    This gives me nice 300s stream segments saved to disk, and a scene.png when a scene change is detected. However, scene.png only appears when I terminate the process, and when I do, I only get the last scene event. Ideally I'd like to get a new PNG (or even better, a short video clip) anytime a scene change is detected, without interrupting the recording of video.mkv. I'm sure it can be done with pipes and multiple ffmpeg commands, but for simplicity's sake (and mostly my own curiosity at this point), I'd like to see what can be done with just a single process.

    


  • Record and preview webcamera stream at the same time

    11 juin 2019, par Vlad Popov

    I’m using ffmpeg and Windows 7/10 OS and going to save webcamera stream to file and preview it at the same time (from time to time, not constantly).
    I can solve each of these tasks separately :

    1. Saving webcamera stream to 1-minute files :

    $ffmpeg_exe = "C:\ffmpeg.exe"

    $video_source = "USB Video Device"

    Start-Process $ffmpeg_exe -ArgumentList @("-y -hide_banner -f dshow -rtbufsize 100M -i video=``"$video_source``" -preset ultrafast -strftime 1 -f segment -segment_time 00:01:00 ``"$out_folder\%Y_%m_%d_%H_%M_%S.mp4``"") -Wait -NoNewWindow

    1. Preview webcamera using ffplay :

    $ffplay_exe = "C:\ffplay.exe"

    Start-Process $ffplay_exe -ArgumentList @("-hide_banner -f dshow -i video=``"$video_source``" -preset ultrafast") -Wait -NoNewWindow

    Is there a way to do it using single command ? I think I have to use ffmpeg within named pipes but I don’t understand how to create/operate them. Maybe someone have already working Windows command which will 1) save webcamera video to file 2) also send it to named pipe for another applications like ffplay or VLC ?

    Thanks for your answers,

    —Vlad

  • How can I record audio along with Aforge player video recording ?

    4 juin 2019, par H.NS

    My app is playing webcam video using Aforge Plyer. Now I want to record this video. Using Aforge player audio recording is not possible.

    Is there any way to record audio separately and merge it with recorded video using Aforge player ?

    Found that using Direct Show architecture is the way to achieve this. But it will be very difficult to change the architecture at the last time of development. Since I’m unaware with directshow concepts and almost 90 percentage of my project is completed with Aforge player.

    My current code is here. It can record video from selected webcam using aforge player. But audio is missing

    using AForge.Video;
    using AForge.Video.DirectShow;
    using Accord.Video.FFMPEG;

       private FilterInfoCollection VideoCaptureDevices;
       private VideoCaptureDevice FinalVideo = null;
       private VideoCaptureDeviceForm captureDevice;
       private Bitmap video;
       private VideoFileWriter FileWriter = new VideoFileWriter();
       private SaveFileDialog saveAvi;

       private void VideoRecord_Load(object sender, EventArgs e)
       {
           VideoCaptureDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
           captureDevice = new VideoCaptureDeviceForm();
       }
       private void play_Click(object sender, EventArgs e)
       {
           if (captureDevice.ShowDialog(this) == DialogResult.OK)
           {
               VideoCaptureDevice videoSource = captureDevice.VideoDevice;
               FinalVideo = captureDevice.VideoDevice;
               FinalVideo.NewFrame += new NewFrameEventHandler(FinalVideo_NewFrame);
               FinalVideo.Start();
           }
       }
       void FinalVideo_NewFrame(object sender, NewFrameEventArgs eventArgs)
       {
           if (butStop.Text == "Stop Record")
           {
               video = (Bitmap)eventArgs.Frame.Clone();
               FileWriter.WriteVideoFrame(video);
           }
           else
           {
               video = (Bitmap)eventArgs.Frame.Clone();;
           }
       }
       private void Record_Click(object sender, EventArgs e)
       {
           saveAvi = new SaveFileDialog();
           saveAvi.Filter = "Avi Files (*.avi)|*.avi";
           if (saveAvi.ShowDialog() == System.Windows.Forms.DialogResult.OK)
           {
               int h = captureDevice.VideoDevice.VideoResolution.FrameSize.Height;
               int w = captureDevice.VideoDevice.VideoResolution.FrameSize.Width;
               FileWriter.Open(saveAvi.FileName, w, h, 25, VideoCodec.Default, 5000000);
               FileWriter.WriteVideoFrame(video);
               butStop.Text = "Stop Record";
           }
       }
       private void stopRecord_Click(object sender, EventArgs e)
       {
           if (butStop.Text == "Stop Record")
           {
               butStop.Text = "Stop";
               if (FinalVideo == null)
               { return; }
               if (FinalVideo.IsRunning)
               {
                   FileWriter.Close();
               }
           }
           else
           {
               this.FinalVideo.Stop();
               FileWriter.Close();
           }
       }
    }
    }