
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (89)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (11574)
-
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.


-
Youtube stream of looping JPG stops randomly
6 juillet 2021, par timw99Hi I'm fairly new at ffmpeg.


I'm currently trying to get a low FPS Youtube stream working over RTMP using a JPG on loop which content gets changed using a NodeJS script periodically. I'm using the following command to stream (variable 3 is my stream key) :


ffmpeg -re -loop 1 -pix_fmt bgr24 -framerate 5 -i img/now.jpg -re -stream_loop -1 -i output.mp3 -f flv -vcodec libx264 -profile:v main -g 60 -keyint_min 30 -b:v 400k -minrate 400k -maxrate 400k -preset ultrafast -tune zerolatency -bufsize 2000k rtmp://a.rtmp.youtube.com/live2/$3



There's multiple things wrong here. The bitrate doesn't actually stay at 400k/s. It just goes to around 200-1000k and then just starts decreasing until the stream stops (usually at around 200-300k bitrate). It still seems like data is being sent (bitrate and current FPS are still updated (though they're very low) and speed goes parabolic. The frame counter itself just stops and Youtube doesn't continue streaming. See example :


frame= 515 fps=5.0 q=12.0 size= 5803kB time=00:01:42.84 bitrate= 462.3kbits/
frame= 518 fps=5.0 q=11.0 size= 5824kB time=00:01:43.41 bitrate= 461.3kbits/
frame= 519 fps=5.0 q=11.0 size= 5838kB time=00:01:43.92 bitrate= 460.2kbits/
frame= 519 fps=5.0 q=11.0 size= 5838kB time=00:01:44.42 bitrate= 457.9kbits/
frame= 519 fps=4.9 q=11.0 size= 5838kB time=00:01:44.92 bitrate= 455.8kbits/
frame= 519 fps=4.9 q=11.0 size= 5838kB time=00:01:45.43 bitrate= 453.6kbits/
frame= 519 fps=4.9 q=11.0 size= 5838kB time=00:01:45.93 bitrate= 451.4kbits/
frame= 519 fps=4.9 q=11.0 size= 5838kB time=00:01:46.44 bitrate= 449.3kbits/
frame= 519 fps=4.8 q=11.0 size= 5838kB time=00:01:46.94 bitrate= 447.2kbits/
frame= 519 fps=4.8 q=11.0 size= 5838kB time=00:01:47.44 bitrate= 445.1kbits/
frame= 519 fps=4.8 q=11.0 size= 5838kB time=00:01:47.95 bitrate= 443.0kbits/
frame= 519 fps=4.8 q=11.0 size= 5838kB time=00:01:48.45 bitrate= 440.9kbits/
frame= 519 fps=4.8 q=11.0 size= 5838kB time=00:01:48.96 bitrate= 438.9kbits/
frame= 519 fps=4.7 q=11.0 size= 5838kB time=00:01:49.46 bitrate= 436.9kbits/
frame= 519 fps=4.7 q=11.0 size= 5838kB time=00:01:49.96 bitrate= 434.9kbits/
frame= 519 fps=4.7 q=11.0 size= 5838kB time=00:01:50.44 bitrate= 433.0kbits/
frame= 519 fps=4.7 q=11.0 size= 5838kB time=00:01:50.95 bitrate= 431.0kbits/
frame= 519 fps=4.7 q=11.0 size= 5838kB time=00:01:51.45 bitrate= 429.1kbits/
frame= 519 fps=4.6 q=11.0 size= 5838kB time=00:01:51.96 bitrate= 427.1kbits/
frame= 519 fps=4.6 q=11.0 size= 5838kB time=00:01:52.46 bitrate= 425.2kbits/
frame= 519 fps=4.6 q=11.0 size= 5838kB time=00:01:52.99 bitrate= 423.2kbits/



I'm using a Digital Ocean VPS to run it, but the same happens on my own desktop which definitely has the hardware for a simple stream like this. Could it have something to do with me replacing the JPG content while trying to stream it ? I get this error every once in a while, but it seems like it fixes itself judging by the info :


[mjpeg @ 0x562824d1fb40] overread 8
[mjpeg @ 0x562824d1fb40] EOI missing, emulating



I can provide more information if it's needed. Thanks in advance.


-
rtsp to youtube streaming not working in windows
22 juillet 2020, par Martin Haryokoffmpeg run in windows, i use this code for streaming RTSP to youtube streaming :


ffmpeg -f lavfi -t 12:00:00 -rtsp_transport tcp -i rtsp://admin:martin123@103.76.204.2:554/Streaming/Channels/101 -tune zerolatency -g 2 -c:v copy -t 12:00:00 -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/zgzx-7sff-32xz-bbup-a25c



but i got this error :


C:\inetpub\wwwroot\ffmpeg\ffmpeg\bin>ffmpeg -f lavfi -t 12:00:00 -rtsp_transport tcp -i rtsp://admin:martin123@103.76.204.xxx:554/Streaming/Channels/101 -tune zerolatency -g 2 -c:v copy -t 12:00:00 -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/zgzx-7sff-32xz-bbup-a25c
ffmpeg version git-2020-07-20-43a08d9 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200621
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 55.100 / 56. 55.100
 libavcodec 58. 96.100 / 58. 96.100
 libavformat 58. 48.100 / 58. 48.100
 libavdevice 58. 11.101 / 58. 11.101
 libavfilter 7. 87.100 / 7. 87.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
[lavfi @ 000001a7dc40e380] No such filter: 'rtsp://admin:martinxxx'
rtsp://admin:martin123@103.76.204.xxx:554/Streaming/Channels/101: Invalid argument



can u help me ?