Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (67)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (12298)

  • Error while saving RTSP to .mp4 from a Hikvision using cvlc, openRTSP or ffmpeg

    4 octobre 2020, par Rui Martins

    I'm trying to save an RTSP streaming from a hikvion camera to a .mp4 file in a USB pen drive in a raspberry pi 3.

    


    I'm using raspbian, I read a lot from the internet, and I'm using different programs to try to save the video.

    


    I used cvlc, openRTSP and ffmpeg, and all of them have errors...

    


    Some commands that I used :

    


    openRTSP -D 1 -c -B 10000000 -b 10000000 -4 -Q -F video_openRTSP_ -P 1200 -w 1920 -h 1080 -f 25 -t -u admin xxxxx rtsp://admin:xxxxx@192.168.1.64:554/h264/ch1/main/av_stream


    


    ffmpeg -i rtsp://admin:xxxxx@192.168.1.64:554/h264/ch1/main/av_stream -acodec copy -vcodec copy ffmpeg.mp4


    


    cvlc --rtsp-tcp rtsp://admin:xxxxx@192.168.1.64:554/h264/ch1/main/av_stream --sout=file/mp4:cvlc.mp4 --stop-time=900 vlc://quit


    


    I tried a lot of different parameters for each one of these 3 programs... The final result never was good. I guess the Hikvision firmware is not implementing well the RTSP protocol...

    


    Exists some alternative firmware for Hikvision cameras ? As we have openWRT and ddWRT for routers ?

    


    Someone had the same problem as me ?

    


    (I want to store at least 15 minutes, even when the .mp4 file is saved, sometimes only save few seconds of videos, and sometimes I can't reproduce the video)

    


    Pictures of the errors :

    


    openRTSP :

    


    enter image description here

    


    enter image description here

    


    ffmpeg :

    


    enter image description here

    


    enter image description here

    


  • FFmpeg is giving me nightmares

    8 juin 2016, par Guillermo

    So, I’m trying to save animations with the animation.save command. I installed ffmpeg in Windows 10 by placing a folder with its binaries in my drive C :\, I have also set the path in my system variables like C :\ffmpeg\bin, and finally, my code for the animation function saving looks like this

    if save=='True':
        mywriter = animation.FFMpegWriter()
        plt.rcParams['animation.ffmpeg_path'] = 'C:/ffmpeg/bin'
        ani.save('mymovie.avi',writer=mywriter,fps=30)

    and all other kind of variants such as :

       mpl.animation.ffmpeg_path = r'C:\ffmpeg\bin'
       mpl.animation.ffmpeg_path = 'C:\\ffmpeg\\bin'

    No matter what I do, the result is always :

    File "<stdin>", line 2, in <module>
    File "Plot.py", line 168, in animate
    ani.save('mymovie.avi',writer=mywriter,fps=30)
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 801, in save
    with writer.saving(self._fig, filename, dpi):
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\contextlib.py", line 17, in __enter__
    return self.gen.next()
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 194, in saving
    self.setup(*args)
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 184, in setup
    self._run()
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 212, in _run
    creationflags=subprocess_creation_flags)
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\subprocess.py", line 710, in __init__
    errread, errwrite)
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\subprocess.py", line 958, in _execute_child
    startupinfo)
    WindowsError: [Error 5] Access Denied
    </module></stdin>

    Any ideas ? :D

    ------------------------------------------------------------------------------

    EDIT : I will reference this answer as it is the one that helped me the best :
    http://stackoverflow.com/a/27017734/6050676

    It worked perfectly when using :

    plt.rcParams['animation.ffmpeg_path'] = 'C:\\ffmpeg\\bin\\ffmpeg.exe'  
  • How to capture desktop using ffmpeg ? getting error when stop recording : System.InvalidOperationException : 'StandardIn has not been redirected.'

    4 octobre 2023, par SharonHemed

    I want it to record the entire desktop then when stopping to save the file to the hard drive. and to hide without the console window of the ffmpeg.

    &#xA;

    but getting this exception error. and i'm setting the RedirectStandardInput to true.&#xA;so i'm not sure why it's showing this error.

    &#xA;

    The exception error is on the line

    &#xA;

    process.StandardInput.BaseStream.Write(qKey, 0, 1);&#xA;

    &#xA;

    The full code

    &#xA;

    using System;&#xA;using System.Collections.Generic;&#xA;using System.ComponentModel;&#xA;using System.Data;&#xA;using System.Diagnostics;&#xA;using System.Drawing;&#xA;using System.IO;&#xA;using System.Linq;&#xA;using System.Text;&#xA;using System.Threading.Tasks;&#xA;using System.Windows.Forms;&#xA;using NAudio.CoreAudioApi;&#xA;using NAudio.Wave;&#xA;&#xA;namespace Desktop_Recorder&#xA;{&#xA;    public partial class Form1 : Form&#xA;    {&#xA;        Process process;&#xA;&#xA;        public Form1()&#xA;        {&#xA;            InitializeComponent();&#xA;&#xA;            process = new Process();&#xA;            Start(@"d:\test.mp4", 30);&#xA;        }&#xA;&#xA;        private void Form1_Load(object sender, EventArgs e)&#xA;        {&#xA;            &#xA;        }&#xA;&#xA;        private void Form1_FormClosing(object sender, FormClosingEventArgs e)&#xA;        {&#xA;            Stop();&#xA;        }&#xA;&#xA;        public void Start(string FileName, int Framerate)&#xA;        {&#xA;            process.StartInfo.FileName = @"d:\ffmpeg\ffmpeg.exe"; // Change the directory where ffmpeg.exe is.  &#xA;            process.EnableRaisingEvents = false;&#xA;            process.StartInfo.WorkingDirectory = @"D:\"; // The output directory  &#xA;            process.StartInfo.Arguments = @"-y -f gdigrab -framerate " &#x2B; Framerate &#x2B;&#xA;                " -i desktop -preset ultrafast -pix_fmt yuv420p " &#x2B; FileName;&#xA;            process.StartInfo.UseShellExecute = false;&#xA;            process.StartInfo.CreateNoWindow = false;&#xA;            process.StartInfo.RedirectStandardInput = true; //Redirect stdin&#xA;            process.StartInfo.RedirectStandardError = true;&#xA;            process.Start();&#xA;            System.Threading.Thread.Sleep(3000);  //Wait 3 seconds (for testing).&#xA;            Stop();&#xA;        }&#xA;&#xA;        public void Stop()&#xA;        {&#xA;            byte[] qKey = Encoding.GetEncoding("gbk").GetBytes("q"); //Get encoding of &#x27;q&#x27; key&#xA;            process.StandardInput.BaseStream.Write(qKey, 0, 1); //Write &#x27;q&#x27; key to stdin of FFmpeg sub-processs&#xA;            process.StandardInput.BaseStream.Flush(); //Flush stdin (just in case).&#xA;            process.Close();&#xA;        }&#xA;&#xA;&#xA;        private void btnStartRecording_Click(object sender, EventArgs e)&#xA;        {&#xA;&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;