
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (81)
-
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 (...) -
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 (...) -
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 (...)
Sur d’autres sites (5302)
-
ffmpeg fluent live streaming to youtube not working
18 octobre 2020, par RickyI am learning how to using ffmpeg fluent and I am having trouble getting it to stream live to Youtube



here is the command I have tried :



let streamYT = (YTrtmpKey) => {
 var proc3 = new ffmpeg({ source: inputURL, timeout: 0 })
 .addOption('-vcodec', 'libx264')
 .addOption('-acodec', 'aac')
 .addOption('-crf', 26)
 .addOption('-aspect', '640:360')
 .withSize('640x360')
 .on('start', function(commandLine) {
 console.log('Query : ' + commandLine);
 })
 .on('error', function(err) {
 console.log('Error: ' + err.message);
 })
 .output('rtmp://a.rtmp.youtube.com/live2/' + YTrtmpKey, function(stdout, stderr) {
 console.log('Convert complete' +stdout);
 });
 }




this doesn't throw any errors but also doesn't do anything


-
FFMPEG : 2x2 Grid Cameras stream to Youtube
8 avril 2021, par MartinSo this is my "working" ffmpeg command :


ffmpeg -rtsp_transport tcp -i "input1" -rtsp_transport tcp -i "input2" -rtsp_transport tcp -i "input3" -rtsp_transport tcp -i "input4" -filter_complex "[0:v] setpts=PTS-STARTPTS, scale=480x270 [a0];[1:v] setpts=PTS-STARTPTS, scale=480x270 [a1];[2:v] setpts=PTS-STARTPTS, scale=480x270 [a2];[3:v] setpts=PTS-STARTPTS, scale=480x270 [a3];[a0][a1][a2][a3]xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0[out]" -map "[out]" -map 3:a -video_size 1920x1080 -tune zerolatency -profile:v baseline -level 3.0 -b:v 5000k -vcodec libx264 -preset medium -q:v 3 -crf 15 -r 15 -c:a aac -ac 2 -f flv rtmp://a.rtmp.youtube.com/live2/...


The problem that i have is that the Youtube recognize this stream as only "360p" and i think that the quality of each stream is way worst than these cameras really are.


Is there something that i'm doing wrong or it should "work" like that because of scalling it to 2x2 grid ?


-
Cannot stream properly on YouTube using ffmpeg with Python
1er mars 2018, par FrancescoI have a few problems related to sending ffmpeg stream to YouTube.
1. If I comment out "time.sleep(sleep_time)" the stream goes 3x fast(basing on what ?) ;
2. If I uncomment the ’-r’ args the stream lags ;
3. If I don’t add the background music the stream doesn’t start on YouTube, the problem persists if I uncomment the ’-an’ args.
4. When the background music ends the stream stops working on YouTube.frame = cv2.imread('STATIC_IMAGE.jpg')
fps = 25
sleepTime = 1 / fps
height, width, channels = frame.shape
command = [
'ffmpeg',
#OpenCV image.
#'-re',
#'-threads', '0',
'-f', 'rawvideo', #image2pipe
'-vcodec','rawvideo',
'-s', str(width) + 'x' + str(height),
'-pixel_format', 'bgr24',
#'-r', str(fps),
#'-an',
'-i', '-',
#Background music
#'-stream_loop', '-1',
#'-re',
#'-r', str(fps),
'-i', 'music.mp3',
#Output (actual stream)
#'-r', str(fps),
#'-crf', '25',
#'-g', '39',
#'-g', '2',
#'-ac', '2',
#'-c:a', 'aac',
#'-b:a', '128k',
#'-ar', '44100',
#'-an',
#'-b:v', '300k',
#'-c:v', 'libx264',
#'-bufsize', '600k',
#'-maxrate', '300k',
#'-qmin', '32',
#'-qmax', '64',
#'-vcodec', 'libx264',
#'-pixel_format', 'yuv420p',
'-vcodec', 'h264',
'-pixel_format', 'h264',
'-f', 'flv',
'rtmp://a.rtmp.youtube.com/live2/STREAM_KEY'
]
import subprocess as sp
proc = sp.Popen(command, stdin=sp.PIPE, shell=False)
while True:
proc.stdin.write(frame.tostring())
time.sleep(sleepTime)Any idea of why these problems happen ?
May the "while True" be the problem ?