Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 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, par

    Multilang 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, par

    La 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 showkey

    My 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>&#xA;

    &#xA;

    Both 127.0.0.1/index.html and 192.168.31.52/index.html can open the /tmp/hls/index.html.

    &#xA;

    Now open port 1935 on my network :

    &#xA;

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

    &#xA;

    Start nginx :

    &#xA;

    sudo systemctl start nginx&#xA;

    &#xA;

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

    &#xA;

    input="rtsp://192.168.31.251/cam/realmonitor?channel=1&amp;subtype=0"&#xA;output="rtmp://192.168.31.52:1935/live/sample"&#xA;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&#xA;

    &#xA;

    It encounter the following errors :

    &#xA;

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

    &#xA;

    How can fix it ?

    &#xA;

  • allow configuration of imageSmoothingQuality. default is "low", othe…

    9 avril 2021, par redemption
    allow 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 Rio

    I’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

    &lt;?php
    $cmd = "/usr/bin/ffmpeg";
    exec($cmd." 2>&amp;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.