
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (37)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (6367)
-
Multiple streams with ffmpeg and python opencv
27 janvier 2023, par share2020 uisI need to run multiple streams from python open cv to rtmp/rtsp with FFMPG. Now I can see two streams are going via ffmpeg (in console the information are mixed). In destinations the first stream is empty while second stream plays correctly (first stream metedata is reaching to destination).


Multiple stream semaratly in destination.


## st.txt = 'rtsp://ip:port/source/1' & 'rtsp://ip:port/source/2'
from multiprocessing.pool import ThreadPool
import cv2
import random
import subprocess

def f(x):
 name = (x.split('/'))[-1]
 y=30
 if len(x)==1:
 x = int(x)

 cam = cv2.VideoCapture(x)
 width = cam.get(cv2.CAP_PROP_FRAME_WIDTH)
 height = cam.get(cv2.CAP_PROP_FRAME_HEIGHT)
 fps = cam.get(cv2.CAP_PROP_FPS)
 def streamer():
 command = ['ffmpeg',
 '-r', str(fps ),
 '-y',
 '-f', 'rawvideo',

 '-pix_fmt', 'bgr24',
 '-s', "{}x{}".format(int(width),int(height)),
 '-i', '-',
 '-c:v', 'libx264',
 '-pix_fmt', 'yuv420p',
 '-preset', 'fast',
 '-bufsize','7000k',
 '-flvflags', 'no_duration_filesize', 
 '-g','180',
 '-f', 'flv',
 'rtmp://ip:port/live/'+ str(name)] 
 return command 
 p_stream = subprocess.Popen(streamer() , stdin=subprocess.PIPE)


 while cam.isOpened():
 ret, frame = cam.read()
 if not ret:
 break
 cv2.imshow(str(name),frame)
 p_stream.stdin.write(frame.tobytes()) 
 key = cv2.waitKey(1)
 
 if key == ('w'):
 cam.release()
 cv2.destroyAllWindows()
 break

 





def ls():
 with open(r'st.txt') as f:
 lns = [line.rstrip('\n') for line in f] 
 return lns


if __name__ == '__main__':
 
 pool = ThreadPool()
 results = pool.map(f, ls())



-
avformat/tcp : TCP Protocol : fix descriptor leak on listen and interrupt
11 septembre 2015, par Alexander S. Drozdovavformat/tcp : TCP Protocol : fix descriptor leak on listen and interrupt
If we try to listen on TCP port and ff_listen() fails on
interrupt callback socket (bind) descriptor overwrites and
does not closed at all.As a result, we can’t rebind to the same port.
Reviewed-by : Stephan Holljes <klaxa1337@googlemail.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
select FrameSize for vidoe with logo in FFmpeg
24 juin 2016, par Ahmad Ali MukashatyI’m using this command to stream video with 1920*1080 frame size
ffmpeg -re -i test.mp4 -vf scale=1920*1080 -f mpegts udp://127.0.0.1:port
but whan I want to stream images with video like this
ffmpeg -re -i test.mp4 -vf scale=1920*1080 -i logo.png -ignore_loop 0 -i
test6.gif -filter_complex "[0][1]overlay=10:10[a];[a][2]overlay=90:90" -f
mpegts udp://127.0.0.1:portthe command line display this error
hereHow can I choose frame size whan I stream video with image ?