Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (111)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • 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 (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (10307)

  • Store a live stream when internet connection is interrupted ?

    6 juin 2019, par Marcello Moreira

    I’m building a solution using drone and 3g/4g connection.
    I have an IP camera encoded in H.264 by a hardware encoder connected to a raspberry pi and a 3g/4g modem. The hardware encoder livestream de video via RTMP to a remote server I have. All these devices are in a moving platform, and sometimes the modem loses connection with internet for a few seconds/minutes. When this happens, I want to store the live footage in the raspberry with ffmpeg, and when the connection restores I can send it back to the server. I have access to the encoded livestream from the raspberry pi over LAN even when internet is down.

    I do not know how and where should I start.
    I see two approaches for this.

    First approach

    One is to do all the streaming via ffmpeg, and disable the automatic hardware stream, when ffmpeg detects that it can’t send stream to the remote server, it starts to store the video (like a buffer) until the connection is restore. The issue with this, is that I don’t know if ffmpeg can detect if internet connection is down, and how can I buffer the video. Also by doing this, when connection is restored, live video would have a huge delay, and I can’t have lot’s of delay in my solution.

    Second approach

    The second is simultaneously store with ffmpeg the live video, when internet goes down, a process records the timestamp, and keeps watching until internet connection is restored. Then it sends to my server only the missing piece. At my server I would need to figure out a way to join those streams back up.. (I would gladly accept tips on that too). Issue with this is that there’s limited space in my raspberry, so I can only store a limited amount. Also, my device may be turned off when it lands so I need to send the video recording ASAP after connection is restored.

    So, which approach seems to be the better one ?

  • How to mux live h264 stream in AnnexB nal unit format to flv container

    19 mai 2016, par Zhou Yufeng

    I have an Android device, which will send raw live H264 AnnexB NAL unit stream like [0,0,0,1,103,...][0,0,0,104,...][0,0,0,101,...][0,0,0,1,65,...][0,0,0,1,65,...] and try to mux them into flv container and send it to nginx-with rtmp module use libavformat of ffmpeg.

    If I save the received live stream to a local file, say test.h264. I can mux it to server OK using ffmpeg command "ffmpeg -i test.h264 -f flv rtmp ://my/server/url". But I don’t known how to handle live stream.

    I noticed ffmpeg/libavformat/avc.c have 2 functions that seem achieve my goal.
    But I’m not sure.

    Here is the code of ffmpeg

    int ff_avc_parse_nal_units(AVIOContext *pb, const uint8_t *buf_in, int size)
    {
       const uint8_t *p = buf_in;
       const uint8_t *end = p + size;
       const uint8_t *nal_start, *nal_end;

       size = 0;
       nal_start = ff_avc_find_startcode(p, end);
       for (;;) {
           while (nal_start < end && !*(nal_start++));
           if (nal_start == end)
               break;

           nal_end = ff_avc_find_startcode(nal_start, end);
           avio_wb32(pb, nal_end - nal_start);
           avio_write(pb, nal_start, nal_end - nal_start);
           size += 4 + nal_end - nal_start;
           nal_start = nal_end;
       }
       return size;
    }

    int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size)
    {
       AVIOContext *pb;
       int ret = avio_open_dyn_buf(&pb);
       if(ret < 0)
           return ret;

       ff_avc_parse_nal_units(pb, buf_in, *size);

       av_freep(buf);
       *size = avio_close_dyn_buf(pb, buf);
       return 0;
    }

    Any useful reply are appreciated.

    Thank you !

  • how to change the resolution FFMPEG live streaming to youtube

    15 juillet 2021, par StudyFromHome

    i use this code to live stream using my VPS in ffmpeg

    


    
#! /bin/bash
#


VBR="2500k"                                   
FPS="60"                                       
QUAL="ultrafast"                                  
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"  

SOURCE="/home/rsa-key/2222.mp4"             
KEY="ddf-khyf-dres-ek42-8sss"                                     

ffmpeg \
    -stream_loop -1 -i "$SOURCE" -deinterlace \
    -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \
    -acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k \
    -f flv "$YOUTUBE_URL/$KEY"  



    


    how i change the resolution limit like 480p