Recherche avancée
Médias (2)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (67)
-
Les vidéos
21 avril 2011, parComme 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, parMediaSPIP 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, parThis 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 MartinsI'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,openRTSPandffmpeg, 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 :






ffmpeg :






-
FFmpeg is giving me nightmares
8 juin 2016, par GuillermoSo, 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/6050676It 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 SharonHemedI 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.


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


The exception error is on the line


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


The full code


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NAudio.CoreAudioApi;
using NAudio.Wave;

namespace Desktop_Recorder
{
 public partial class Form1 : Form
 {
 Process process;

 public Form1()
 {
 InitializeComponent();

 process = new Process();
 Start(@"d:\test.mp4", 30);
 }

 private void Form1_Load(object sender, EventArgs e)
 {
 
 }

 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
 Stop();
 }

 public void Start(string FileName, int Framerate)
 {
 process.StartInfo.FileName = @"d:\ffmpeg\ffmpeg.exe"; // Change the directory where ffmpeg.exe is. 
 process.EnableRaisingEvents = false;
 process.StartInfo.WorkingDirectory = @"D:\"; // The output directory 
 process.StartInfo.Arguments = @"-y -f gdigrab -framerate " + Framerate +
 " -i desktop -preset ultrafast -pix_fmt yuv420p " + FileName;
 process.StartInfo.UseShellExecute = false;
 process.StartInfo.CreateNoWindow = false;
 process.StartInfo.RedirectStandardInput = true; //Redirect stdin
 process.StartInfo.RedirectStandardError = true;
 process.Start();
 System.Threading.Thread.Sleep(3000); //Wait 3 seconds (for testing).
 Stop();
 }

 public void Stop()
 {
 byte[] qKey = Encoding.GetEncoding("gbk").GetBytes("q"); //Get encoding of 'q' key
 process.StandardInput.BaseStream.Write(qKey, 0, 1); //Write 'q' key to stdin of FFmpeg sub-processs
 process.StandardInput.BaseStream.Flush(); //Flush stdin (just in case).
 process.Close();
 }


 private void btnStartRecording_Click(object sender, EventArgs e)
 {

 }
 }
}



