Recherche avancée

Médias (0)

Mot : - Tags -/signalement

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (45)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (10452)

  • 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

    


  • 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 !

  • 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 ?