
Recherche avancée
Autres articles (76)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (13891)
-
How to load test FFMPEG streams to NGINX RTMP server without Server error : Already publishing ?
23 novembre 2022, par NavMy objective is to have an EC2 server running NGINX with RTMP module, and another EC2 server running multiple FFMPEG processes in the background, which stream a video to the first EC2 server. The video is stored on the second EC2 server. The idea is to measure the amount of CPU and RAM consumed and to see if the streaming fails at any point due to the server being overloaded. This would help identify the load a server can support, and help decide how many servers are required when handling
n
number of simultaneous users.

This is the script I tried using :


#!/usr/bin/env bash
for i in {1..10}; do
 ffmpeg -nostdin -re -i myVideo.mp4 -c:v copy -c:a aac -ar 44100 -ac 1 -f flv rtmp://<first server="server" ipv4="ipv4" address="address">/mystream &
done;
</first>


When running the script, I get this error :


Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
[rtmp @ 0x55a0c3a4bc0] Server error: Already publishing
rtmp://<ip address="address">/mystream: Operation not permitted
[rtmp @ 0x55d9d5bc0c0] Server error: Already publishing
rtmp://<ip address="address">/mystream: Operation not permitted
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Stream mapping:
[rtmp @ 0x55779e9bc0] [rtmp @ 0x55dd17e1bc0] Server error: Already publishing
Server error: Already publishing
rtmp://<ip address="address">/mystream: Operation not permitted
rtmp://<ip address="address">/mystream: Operation not permitted
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
[rtmp @ 0x55c06b6dbc0] Server error: Already publishing
rtmp://<ip address="address">/mystream: Operation not permitted
[rtmp @ 0x56210db9bc0] Server error: Already publishing
rtmp://<ip address="address">/mystream: Operation not permitted
</ip></ip></ip></ip></ip></ip>


Should I use different ports for each FFMPEG streaming command ? So I'd have to enable a range of ports on the EC2 instance and specify a different port in the URL of the FFMPEG RTMP command and also allow multiple ports in NGINX-RTMP config ? Does anyone know a good way to do load testing for RTMP without errors ? How would I know if the server is unable to handle the load ? Would packets start dropping ? How would it be measured ? It's not necessary to use FFMPEG. Anything is fine, but tools like Apache Bench don't seem to be for RTMP.


-
AForge FFMPEG library could not load exception
11 novembre 2014, par Asanga RanasingheI am trying to use the video writer function in Aforge library. It gives the following exception. I tried changing the build target, but it also didn’t worked out. How to solve this problem ?
Could not load file or assembly ’AForge.Video.FFMPEG, Version=2.2.5.0,
Culture=neutral, PublicKeyToken=03563089b1be05dd’ or one of its
dependencies. An attempt was made to load a program with an incorrect
format -
How to run python when I receive post request
28 septembre 2021, par BigJI made python code for capture the image from rtsp streaming server using ffmpeg. I want to make api that when I receive POST request include rtsp address in message, then run python file using with the rtsp address. Like running child-process.

I'm using loopback(typescript) for api developing.

Can you recommend useful library or sample code ??