
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (111)
-
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (14901)
-
Nginx Live transcoding with ffmpeg
7 mars 2015, par Stian TofteI’m live streaming video to my server(It’s external somewhere in the world).
And what I’m trying to do here, is that my server will transcode the input to a lower bitrate before it pushes it to the video site like twitch and so on.And I’m doing this on windows. I have tried to google around watched youtube videos. and so on.. But couldn’t find any solution for it. So here is what I have at this moment(not working).
In my nginx.conf :
rtmp {
server {
listen 1935;
chunk_size 8192;
application code {
live on;
}
application twitch {
push rtmp://live-ams.twitch.tv/app/live_xxxxxxxxxxxxxxxxx;
}
}So here the application code is receving the stream from my computer at home. I’m using ffmpeg to transcode it.
And here is my batch file(That I have to start manualy. Can’t start it within the config of nginx on windows.)
ffmpeg -i rtmp://localhost/code -vcodec flv -acodec copy -s 1280x720 -f flv rtmp://localhost/twitch
pauseRight now It’s just downscaling but that is okay. So this is supposed to send the stream back to the "twitch" application in my nginx config. And then nginx will stream it to twitch.
But when I launch my ffmpeg bat file.. I get this :
So it’s here my road ends. Anyone knows how to do this ?
Thanks in advance :) Stian
-
Nginx Live transcoding with ffmpeg
9 juillet 2017, par Stian TofteI’m live streaming video to my server(It’s external somewhere in the world).
And what I’m trying to do here, is that my server will transcode the input to a lower bitrate before it pushes it to the video site like twitch and so on.And I’m doing this on windows. I have tried to google around watched youtube videos. and so on.. But couldn’t find any solution for it. So here is what I have at this moment(not working).
In my nginx.conf :
rtmp {
server {
listen 1935;
chunk_size 8192;
application code {
live on;
}
application twitch {
push rtmp://live-ams.twitch.tv/app/live_xxxxxxxxxxxxxxxxx;
}
}So here the application code is receving the stream from my computer at home. I’m using ffmpeg to transcode it.
And here is my batch file(That I have to start manualy. Can’t start it within the config of nginx on windows.)
ffmpeg -i rtmp://localhost/code -vcodec flv -acodec copy -s 1280x720 -f flv rtmp://localhost/twitch
pauseRight now It’s just downscaling but that is okay. So this is supposed to send the stream back to the "twitch" application in my nginx config. And then nginx will stream it to twitch.
But when I launch my ffmpeg bat file.. I get this :
So it’s here my road ends. Anyone knows how to do this ?
Thanks in advance :) Stian
-
Stream to Facebook Live using OpenCV
23 mai 2022, par Lanzy ErinI am planning to stream a video file to Facebook Live but I want to programmatically edit its frames like adding texts depending. My problem is that I don't know how to properly send data to Facebook Live. I tried ffmpeg but it doesn't work.


Here is my code that I tried


import subprocess
import cv2

rtmp_url = "rtmps://live-api-s.facebook.com:443/rtmp/FB-1081417119476224-0-AbwwMK91tFTjFy2j"

path = "7.mp4"
cap = cv2.VideoCapture(path)

# gather video info to ffmpeg
fps = int(cap.get(cv2.CAP_PROP_FPS))
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))

# command and params for ffmpeg
command = ['ffmpeg',
 '-y',
 '-f', 'rawvideo',
 '-vcodec', 'rawvideo',
 '-pix_fmt', 'bgr24',
 '-s', f"{width}x{height}",
 '-r', str(fps),
 '-i', '-',
 '-c:v', 'libx264',
 '-pix_fmt', 'yuv420p',
 '-preset', 'ultrafast',
 '-f', 'flv',
 rtmp_url]

# using subprocess and pipe to fetch frame data
p = subprocess.Popen(command, stdin=subprocess.PIPE)

while cap.isOpened():
 ret, frame = cap.read()
 if not ret:
 print("frame read failed")
 break

 # YOUR CODE FOR PROCESSING FRAME HERE

 # write to pipe
 p.stdin.write(frame.tobytes())