
Recherche avancée
Autres articles (97)
-
Diogene : création de masques spécifiques de formulaires d’édition de contenus
26 octobre 2010, parDiogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
A quoi sert ce plugin
Création de masques de formulaires
Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...)
Sur d’autres sites (6215)
-
How can I use ffmpeg with youtube-dl ?
18 octobre 2018, par DaniI have this "setup", but it stopped working (I did not change anything in the code) :
private Process StartFfmpeg(string URL)
{
string args = $"/C youtube-dl --ignore-errors -o - {URL} | ffmpeg -err_detect ignore_err -i pipe:0 -ac 2 -f s16le -ar 48000 pipe:1";
return Process.Start(new ProcessStartInfo
{
FileName = "cmd.exe",
Arguments = args,
UseShellExecute = false,
RedirectStandardOutput = true,
RedirectStandardError = false,
CreateNoWindow = true,
});
}(I get the stream by using
Stream stream = StartFfmpeg(URL).StandardOutput.BaseStream;
)
It just freezes. It doesn’t throw any error (in a try/catch block) and I have the latest version of ffmpeg & youtube-dl. I’ve tried using older versions with no success.
How can I get it working again ? (This is my first post, sorry if its very bad) -
download youtube video as audio file, with URL in filename, to a specific output directory
9 octobre 2018, par thanks_in_advanceI do this to download a video as an audio file (mp3), with the video’s youtube URL (URI actually) in the audio file’s filename (I like having the URI in the filename because it helps me identify which video I grabbed the audio from) :
youtube-dl --extract-audio --audio-format mp3 --prefer-ffmpeg --ffmpeg-location "C:\FFMPEG" "https://www.youtube.com/watch?v=k1-TrAvp_xs" --audio-quality 0
The con with this approach : with this command, the file downloads to the same directory that contains
youtube-dl.exe
I do this to download a youtube video as an audio file (mp3) to a specific output directory :
youtube-dl -o "C:\Documents\Downloads\%(title)s.%(ext)s" --extract-audio --audio-format mp3 --prefer-ffmpeg --ffmpeg-location "C:\FFMPEG" "https://www.youtube.com/watch?v=k1-TrAvp_xs" --audio-quality 0
The con with this approach : with this command, the downloaded audio file’s filename doesn’t contain the youtube video’s URI.
My Question : How can I combine the above 2 commands such that the downloaded audio file doesn’t have either of the cons mentioned above ?
-
How to set up a continuous stream from Icecast to YouTube Live using FFmpeg ?
16 mai 2020, par Teymur GahramanovWhen Icecast servers turns off, FFmpeg trying to reconnect but with only one attempt. Here is error which i get and my script.



[http @ 0x556612e43f80] Stream ends prematurely at 4040716, should be 1844674407370955161597x
[http @ 0x556612e43f80] Will reconnect at 4040716 error=Input/output error.
[tcp @ 0x7fe10400b7a0] Connection to tcp://185.195.26.99:8000 failed: Connection refused
[http @ 0x556612e43f80] Failed to reconnect at 0.
185.195.26.99:8000/radio: Input/output error1:40.96 bitrate=2878.3kbits/s speed=0.997x




After that stream continuing, and YouTube does not break live translation, but it goes empty.



#!/bin/bash

image=../pic/1.jpg #path to image
source=http://***.**.**.**:8000/radio #radio stream as source
youtube_url=rtmp://a.rtmp.youtube.com/live2 #rtmp://a.rtmp.youtube.com/live2
youtube_key=****-****-*****-****
resolution=1920x1080 #stream resolution

###########################################################

stream=FFREPORT=file=../log/stream-%t.log:level=32 ffmpeg \
 -thread_queue_size 1024 \
 -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 3600 -i $source \
 -re -loop 1 -i $image \
 -acodec aac -b:a 128k -ar 44100 -strict experimental \
 -vcodec libx264 -preset ultrafast -tune stillimage -r 30 -g 60 -b:v 4500k -minrate 4000k -maxrate 4500k -bufsize 6000k \
 -s $resolution \
 -f flv \
 $youtube_url/$youtube_key\

until $stream ; do
 echo "Restarting stream ..."
 sleep 2
done