
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (85)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (8838)
-
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



-
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 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)