
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (64)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (9032)
-
TLS issue with ffmpeg
22 mai 2017, par true_glerI try to use TLS to verify a stream... (ffmpeg.org/ffmpeg-protocols.html#tls)
ca_file, cafile=filename
A file containing certificate authority (CA) root certificates to treat as trusted. If the linked TLS library contains a default this might not need to be specified for verification to work, but not all libraries and setups have defaults built in. The file must be in OpenSSL PEM format.tls_verify=1|0
If enabled, try to verify the peer that we are communicating with. Note, if using OpenSSL, this currently only makes sure that the peer certificate is signed by one of the root certificates in the CA database, but it does not validate that the certificate actually matches the host name we are trying to connect to. (With GnuTLS, the host name is validated as well.)This is disabled by default since it requires a CA database to be provided by the caller in many cases.
cert_file, cert=filename
A file containing a certificate to use in the handshake with the peer. (When operating as server, in listen mode, this is more often required by the peer, while client certificates only are mandated in certain setups.)key_file, key=filename
A file containing the private key for the certificate.listen=1|0
If enabled, listen for connections on the provided port, and assume the server role in the handshake instead of the client role.Generally, i try to grab the screen at my client, send the captured via live stream to the server and display it there (with e.g. ffplay).
All this happens in a LAN.I am a little bit confused...
- What are the parameters at the client side (ffmpeg) ?
- What are the parameters at the server side for display (ffplay) ? (Don’t i need here the ca_file specification ??)
My commands I used so far, I am pretty sure I miss something ?!
sudo ffmpeg -r 60 -f x11grab -s 1920x1080 -i :0.0 -c:v libx264 -b:v 4000k -minrate 4000k -maxrate 4000k -bufsize 1835k -pix_fmt yuv420p -preset ultrafast -tune zerolatency -bsf:v h264_mp4toannexb -f mpegts "tls://localhost:8888?listen&cert=server-cert.pem&key=server-privatekey.pem"
sudo ffplay -f mpegts "tls://localhost:8888" -
Anomalie #4562 : Suite #4468 : Unification des CSS pour les boutons et les icônes
6 octobre 2020Mais pour l’ajout là c’est bizarre on voit pas le fond, c’est un peu nul, en tout cas pour cette couleur.
Oui : https://core.spip.net/issues/4562#note-25 et https://core.spip.net/issues/4562#note-5
Peut-être l’inverse aussi, le retrait est plus gros que l’ajout : ça ne va pas.
Oui c’est pas voulu, la capture a été faite à l’arrache dans l’inspecteur, devait rester un font-size planqué quelque part (il y en a pleins d’imbriqués en vrac de partout). Les 2 étaient censés être à la même taille.
Mais bref, pour mettre le bouton d’ajout à la taille normale il y a pas trop la place pour l’instant : les
.toggle_box_link
sont positionnés en absolute, ça ferait déborder. Et s’il faut faire rentrer tout ça je sens que ça va amener modifier pleins de choses en cascade. On tire sur un fil et on finit par dérouler toute la pelote de laine :pOn peut y aller par étapes aussi : laisser tout en
.mini.link
dans un 1er temps ça me semble acceptable, histoire de garder un truc proche de ce qu’il y avait avant, mais déjà un peu plus harmonisé. Et pis après on amélioera. -
Python opencv subprocess write return broken pipe
16 septembre 2021, par VamsiI want to read an rtsp video source, add overlay text and push it to the RTMP endpoint.I am using Videocapture to read the video source and python subprocess to write the frames back to RTMP endpoint. I referred this FFmpeg stream video to rtmp from frames OpenCV python


import sys
import subprocess

import cv2
import ffmpeg
rtmp_url = "rtmp://127.0.0.1:1935/live/test"

path = 0
cap = cv2.VideoCapture("rtsp://10.0.1.7/media.sdp")

# 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 = ['ffmpeg', '-i', '-', "-c", "copy", '-f', 'flv', rtmp_url]
p = subprocess.Popen(command, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE)

font = cv2.FONT_HERSHEY_SIMPLEX
while cap.isOpened():

 ret, frame = cap.read()
 cv2.putText(frame, 'TEXT ON VIDEO', (50, 50), font, 1, (0, 255, 255), 2, cv2.LINE_4)
 cv2.imshow('video', frame)
 if cv2.waitKey(1) & 0xFF == ord('q'):
 break

 if not ret:
 print("frame read failed")
 break

 try:
 p.stdin.write(frame.tobytes())
 except Exception as e:
 print (e)


cap.release()
p.stdin.close()
p.stderr.close()
p.wait()



The python script returns "[Errno 32] Broken pipe". Running the ffmpeg command in the terminal works fine.




ffmpeg -i rtsp ://10.0.1.7/media.sdp -c copy -f flv
rtmp ://127.0.0.1:1935/live/test




The above command works fine, and I can push the input stream to RTMP endpoint. But I can't write processed frame to subprocess which has ffmpeg running.


Please let me know, if I miss anything.