Recherche avancée

Médias (91)

Autres articles (38)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (6129)

  • Pipe Python Script To FFMPEG

    14 juillet 2017, par Go3Team

    I am using the following command that records and segments the video stream from an IP cam :

    ffmpeg -i rtsp://10.0.0.14/live.sdp  -c copy -map 0 -f segment -strftime 1 -segment_time 60 -segment_format mp4 -flags global_header "/rd/out%s.mp4"

    The python script outputs info every 1/4 second that I would like to pipe into the stream as an overlay or subtitle.

    Another question I have that isn’t too important at the moment is when playing back the segmented videos. The timeline on VLC starts at however many minutes into the stream it was recorded. So if it was the 4th video recorded, it starts at 4:00, but the end time is 1:00 which results in the progress bar being all the way over to the right when playing, and makes the video "unseekable(?)".

    Thanks.

  • Python script that will take a sequence of images and turn it into a video or gif/animation ?

    6 juillet 2017, par Aang

    I know there are a few questions on this already but I have yet to find a complete solution to this problem. I am writing in Python 2.5 and I want to be able to write a script that will take a sequence of images and turn it into a video or gif/animation.

    I have already tried imageio, image2gif, and opencv. Opencv gives me import errors, imageio only works on Python 2.6+, and image2gif gives me errors when I try to import the PIL or pillow Python library.

    I’ve also looked into FFMPEG. Using the subprocess python module to run FFMPEG through the terminal, I got it to work. However, I am looking for a solution that uses a python library and not an external program such as FFMPEG. Any suggestions ?

  • Q : Bash script infinite loop causing ffmpeg spam

    6 juillet 2017, par Kārlis K.

    Can’t seem to figure this one out... I have a set up NGINX server with the excellent RTMP extension and everything is working fine. However, I’m trying to restream/push a copy of a couple specific streams that need to be streamed in another RTMP stream application (specifically, these streams are streamed to application "static" but in the current situation also need to be pushed over to "live"). The process of restreaming/pushing a stream in NGINX-RTMP is relatively simple, however, in my case I need to selectively push a couple of streams instead of every stream being streamed to the application "static".

    Idea is to have NGINX-RTMP pass the stream name off to the bash script, which then does the restreaming without interrupting any other streams or services.

    With some success, I’ve tried doing this by creating a bash scrip..

    The relevant NGINX config bit that runs the bash script is :

    exec_publish /etc/nginx/rtmp_conf.d/stream_id.sh $name;

    I tried it with an "if / else"

    if [ $1 == "stream_name_1" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_1 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_0
    elif [ $1 == "stream_name_2" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_2 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_1
    elif [ $1 == "stream_name_3" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_3 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_2
    elif [ $1 == "stream_name_4" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_4 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_3
    else
           echo "FAIL" >> /etc/nginx/rtmp_conf.d/stream.log && echo date > /etc/nginx/rtmp_conf.d/stream.log
           exit
    fi

    And I tried it with Switches

    case "$1" in
           "stream_name_1")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_1 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_0
           ;;
           "stream_name_2")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_2 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_1
           ;;
           "stream_name_3")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_3 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_2
           ;;
           "stream_name_4")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_4 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_3
           ;;
           echo "FAIL " >> /etc/nginx/rtmp_conf.d/stream.log && echo date > /etc/nginx/rtmp_conf.d/stream.log
    esac

    Problem with both is that they both end up spamming a ton of ffmpeg processes ... and I don’t know why - I’ve tried changing the code but I either end up with ffmpeg not firing at all or spamming the server.