
Recherche avancée
Autres articles (71)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (4811)
-
ffmpeg multiple rtsp cameras into sigle stream to youtube
26 janvier 2017, par user3157121I have two rtsp ip cameras (dlink) and I want combine (merge) 2 stream in one video output and put it to yutube (live streaming).
My first step is ok and my command is :
ffmpeg
-i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
-i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
-filter_complex "
nullsrc=size=1600x448 [base];
[0:v] setpts=PTS-STARTPTS, scale=800x448 [upperleft];
[1:v] setpts=PTS-STARTPTS, scale=800x448 [upperright];
[base][upperleft] overlay=shortest=1 [base];
[base][upperright] overlay=shortest=1:x=800 [base]"
-map [base] test.mp4My test.mp4 video output is ok.
After that, I try to send this video to youtube live with this command :
ffmpeg
-i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
-i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
-filter_complex "
nullsrc=size=1600x448 [base];
[0:v] setpts=PTS-STARTPTS, scale=800x448 [upperleft];
[1:v] setpts=PTS-STARTPTS, scale=800x448 [upperright];
[base][upperleft] overlay=shortest=1 [base];
[base][upperright] overlay=shortest=1:x=800 [base]"
-map [base] -f flv "rtmp://a.rtmp.youtube.com/live2/xxx-xxxx-xxxx-xxxx"But the youtube stream does not receive data. (It seems to start but do not see the image). I think is a audio problem. But I don’t know how to insert a fake audio (I don’t want audio).
Is there a solution ?
Thanks,
Mattia -
How to correctly close a console application using the youtube-dl process to download Twitch stream whenever I want
24 juin 2023, par ElPavlilloThe test program has the following code :


string url = "https://www.twitch.tv/ricoy";
string outputPath = @"D:\ruta_del_archivo_salida.mp4";

ProcessStartInfo startInfo = new ProcessStartInfo
{
 FileName = "youtube-dl",
 Arguments = $"-f best -o \"{outputPath}\" \"{url}\"",
 //RedirectStandardOutput = true,
 UseShellExecute = false,
 CreateNoWindow = true
};

using (Process process = new Process())
{
 process.StartInfo = startInfo;
 process.Start();

 //var output = process.StandardOutput.ReadToEnd();
 //process.WaitForExit();

 Console.Read();
 KillProcessAndChildren(process.Id);
}

static void KillProcessAndChildren(int pid)
{
 // Cannot close 'system idle process'.
 if (pid == 0)
 {
 return;
 }
 ManagementObjectSearcher searcher = new ManagementObjectSearcher
 ("Select * From Win32_Process Where ParentProcessID=" + pid);
 ManagementObjectCollection moc = searcher.Get();
 foreach (ManagementObject mo in moc)
 {
 KillProcessAndChildren(Convert.ToInt32(mo["ProcessID"]));
 }
 try
 {
 Process proc = Process.GetProcessById(pid);
 proc.Kill();
 }
 catch (ArgumentException)
 {
 // Process already exited.
 }
}



The problem is that when I press de key in the console the youtube-dl process gets kill and also de ffmpeg but the file is left with .part extension and does not work.


I was expecting the code to left a .mp4 file but for reason it does not.


-
Getting artifacts when trying to read video stream from YouTube
23 février 2012, par giviI'm trying to read the video frames from the RTSP stream that I get from YouTube. Here is the link for my test video :
rtsp ://v8.cache5.c.youtube.com/CiILENy73wIaGQkJlrXMiAG8BxMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp
If I'm reading frames from the local file - everything is fine, but when read them from a stream I get nothing but lots of artifacts. I've googled around and found out that there might be a problem with UDP packets and switching to TCP may help but I really can't find where it is possible to change this.
Here is the function for reading a frame :
bool nextFrame(AVFormatContext *pFormatCtx, AVCodecContext *pCodecCtx, int videoStream, AVFrame *pFrame) { AVPacket packet;
int frameFinished = 0;
while( !frameFinished && av_read_frame(pFormatCtx, &packet) >= 0 ) {
// Is this a packet from the video stream?
if( packet.stream_index == videoStream ) {
// Decode video frame
avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet);
}
// Free the packet that was allocated by av_read_frame
av_free_packet(&packet);
}
return frameFinished!=0;
}I'm also getting lots of error messages in my log :
[h263 @ 0x7804c00] warning: first frame is no keyframe
[h263 @ 0x7804c00] illegal ac vlc code at 6x1
[h263 @ 0x7804c00] Error at MB: 18
[h263 @ 0x7804c00] concealing 99 DC, 99 AC, 99 MV errors
[h263 @ 0x7804c00] I cbpy damaged at 10 4
[h263 @ 0x7804c00] Error at MB: 58
[h263 @ 0x7804c00] concealing 99 DC, 99 AC, 99 MV errors
[h263 @ 0x7804c00] I cbpy damaged at 6 6
[h263 @ 0x7804c00] Error at MB: 78
[h263 @ 0x7804c00] concealing 76 DC, 76 AC, 76 MV errors
[h263 @ 0x7804c00] I cbpy damaged at 5 5
[h263 @ 0x7804c00] Error at MB: 65
[h263 @ 0x7804c00] concealing 88 DC, 88 AC, 88 MV errors
[h263 @ 0x7804c00] illegal ac vlc code at 7x5
[h263 @ 0x7804c00] Error at MB: 67
[h263 @ 0x7804c00] concealing 86 DC, 86 AC, 86 MV errors...and so on
edit : this is 99.9% a UDP-TCP problem. I've found this link :
rtsp ://195.200.199.8/mpeg4/media.amp
This is some test camera available online. It streams with artifacts. However if it has get parameter 'tcp' and if I use this
rtsp ://195.200.199.8/mpeg4/media.amp ?tcp
everything works without artifacts.
So to correct my question : is there any way to force YouTube or ffmpeg to use TCP ?