
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (97)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 (...)
Sur d’autres sites (10486)
-
Cannot open connection tcp ://localhost:1935 when to set up custom RTMP stream
8 janvier 2021, par showkeyMy simple network is as following :


192.168.31.52 is my local pc 
192.168.31.251 is an ip camera.



I can open the stream
rtsp://192.168.31.251/cam/realmonitor?channel=1&subtype=0
with SMPlayer.

Build my nginx for customizing RTMP stream this way.

sudo apt update
sudo apt install build-essential git
sudo apt install libpcre3-dev libssl-dev zlib1g-dev 
git clone https://github.com/arut/nginx-rtmp-module.git
git clone https://github.com/nginx/nginx.git
cd nginx
./auto/configure --add-module=../nginx-rtmp-module
make
sudo make install



Set config file for nginx :


sudo vim /usr/local/nginx/conf/nginx.conf
rtmp { 
 server { 
 listen 1935; 
 application live { 
 live on; 
 interleave on;
 
 hls on; 
 hls_path /tmp/hls; 
 hls_fragment 15s; 
 } 
 } 
} 



Then set permission for nginx :


mkdir /tmp/hls
sudo chmod -R 755 /tmp/hls
sudo chown -R www-data:www-data /tmp/hls



Edit index.html in
/tmp/hls
.

<p>test for nginx</p>



Both
127.0.0.1/index.html
and192.168.31.52/index.html
can open the/tmp/hls/index.html
.

Now open port 1935 on my network :


sudo firewall-cmd --zone=public --add-port=1935/tcp --permanent
sudo firewall-cmd --reload 
sudo firewall-cmd --list-ports | grep 1935
1935/tcp



Start nginx :


sudo systemctl start nginx



Up stream the rtsp stream from ip camera—192.168.31.251 to local pc —192.168.31.52.


input="rtsp://192.168.31.251/cam/realmonitor?channel=1&subtype=0"
output="rtmp://192.168.31.52:1935/live/sample"
ffmpeg -i $input -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -r 25 -b:v 500k -s 640*480 -f flv $output



It encounter the following errors :


[tcp @ 0x59fb700] Connection to tcp://192.168.31.52:1935 failed: Connection refused
[rtmp @ 0x59fc5c0] Cannot open connection tcp://192.168.31.52:1935
rtmp://192.168.31.52:1935/live/sample: Connection refused



How can fix it ?


-
allow configuration of imageSmoothingQuality. default is "low", othe…
9 avril 2021, par redemptionallow configuration of imageSmoothingQuality. default is "low", other options are "medium" and "high".
Usage :
$(’#fileupload’).fileupload(
disableImageResize : /Android(?!.*Chrome)|Opera/
.test(window.navigator && navigator.userAgent),
imageSmoothingQuality : ’medium’, -
sh : /usr/bin/ffmpeg : not found
22 janvier 2016, par RioI’m trying to execute ffmpeg from PHP using shell_exec or exec but it fails. Why can this be ? The command
/usr/bin/ffmpeg
works from the terminal, so I tried<?php
$cmd = "/usr/bin/ffmpeg";
exec($cmd." 2>&1", $out, $ret);
if ($ret){
echo "There was a problem!\n";
print_r($out);
}else{
echo "Everything went better than expected!\n";
}
?>and I keep on getting
There was a problem! Array ( [0] => sh: /usr/bin/ffmpeg: not found )
Any help would be greatly appreciated.
Permission on the executable are
-rwxr-xr-x 1 root root 106552 Jun 12 09:53 ffmpeg
Running
which /usr/local/bin/ffmpeg
into $cmd returns an empty Array.