Recherche avancée

Médias (91)

Autres articles (65)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (5963)

  • Send 2 different feeds to ffserver from ffmpeg

    30 avril 2015, par Niklas Tampier Holmgren

    I’m currently working in a project where I have to stream 2 webcams streams from a computer to another through a TCP connection, I can stream 1 without problem :

    using

    ffserver.conf :

               HTTPPort 8090
               HTTPBindAddress 0.0.0.0
               MaxClients 40
               MaxBandwidth 30000

               CustomLog -
               NoDaemon

               <stream>
               Format status
               ACL allow localhost
               ACL allow 192.168.0.0 192.168.255.255
               </stream>

              #feed for camera 1
              <feed>
              File /tmp/webcam1.ffm
              FileMaxSize 100M
              </feed>

              #feed for camera 2
              <feed>
              File /tmp/webcam2.ffm
              FileMaxSize 100M
              </feed>

             #stream for feed 1
             <stream>
             Feed webcam1.ffm
             Format mjpeg
             VideoSize 1280x720
             VideoFrameRate 30
             Preroll 0
             NoAudio
             Strict -1
             </stream>

             #stream for feed2
             <stream>
             Feed webcam2.ffm
             Format mjpeg
             VideoSize 1280x720
             VideoFrameRate 30
             Preroll 0
             NoAudio
             Strict -1
             </stream>

    command to run ffserver :

             ffserver /etc/ffserver.conf

    command to feed ffserver :

            ffmpeg -v 2 -r 20 -f video4linux2 -i /dev/video0 http://localhost/webcam1.ffm

    and it works perfect, but when I try to run the other feed :

            ffmpeg -v 2 -r 20 -f video4linux2 -i /dev/video1 http://localhost/webcam2.ffm

    I can see just the second stream and the first one do not work anymore.
    some idea ?

  • Arecord->FFMPEG works but FFMPEG w/ ALSA stutters ?

    7 février 2017, par user2989813

    I am trying to stream audio from my Pi Zero and my I2s MEMS mic. I would like to stream using FFMPEG and ALSA (which I have already compiled) but I’m running into stuttering issues.

    1. FFMPEG + ALSA

      ~/special/ffmpeg/ffmpeg -report -f alsa -ar 48000 -ac 2 -acodec pcm_s32le -i mic_sv -f lavfi -i testsrc -c:v h264_omx -c:a aac -ab 32k -bufsize 32k -f flv rtmp://209.85.230.23/live2/KEY

    This results in constant stuttering and choppiness.

    1. Arecord piped directly to FFMPEG

      arecord -Dmic_sv -c2 -r48000 -fS32_LE | ~/special/ffmpeg/ffmpeg -report -acodec pcm_s32le -i - -f lavfi -i testsrc -c:v h264_omx  -acodec aac -ab 32k -bufsize 32k -f flv rtmp://209.85.230.23/live2/KEY

    This results in a coherent audio stream, but with skipping every 5 seconds or so.

    1. Arecord recorded to a wav file, piped into FFMPEG

      arecord -Dmic_sv -c2 -r48000 -fS32_LE -twav temp.v &amp;
      ~/special/ffmpeg/ffmpeg -report -re -i temp.v -f lavfi -i testsrc -c:v h264_omx -ac 2 -acodec aac -ab 32k -bufsize 32k -async 2 -f flv rtmp://209.85.230.23/live2/KEY

    This results in a perfect audio stream.

    I don’t know why #3 works but #2 and #1 cause problems. Any suggestions ?

  • Ffmpeg cpp libav randomly uses high cpu and less gpu or uses high gpu and less cpu with hw accel

    29 avril 2024, par cngkyt

    I am using ffmpeg as library with cpp&#xA;the integration of library is perfectly done i am using AVFilterGraph as audio resampler and video pixfmt converter.

    &#xA;

    I cannot share code because it is a complete library and contains too many files but i can assure there is no problem about code but maybe approach.

    &#xA;

    My whole class is based on the transcode example of ffmpeg&#xA;text

    &#xA;

    The problem is when i run my program that encodes approx 90 streams

    &#xA;

    it starts with 25% cpu usage 80% gpu encode usage %85 gpu decode usage with 100% sm utilization

    &#xA;

    or

    &#xA;

    it starts with 80% cpu usage 45% gpu encode usage 50% gpu decode usage with 60% sm utilization

    &#xA;

    when it start like second type of utilization videos are perfect&#xA;but when it starts like the first type of utilization videos are freezing

    &#xA;

    my program uses pure gpu for encoding for all streams but using gpu decoding for every 3 cpu deoding&#xA;that means i use hwaccel for 1/3 of streams&#xA;because my cards are 4070 ti super and they have 2 NVENC 1 NVDEC chips

    &#xA;

    my program takes udp streams and encode it and outputs udp mpegts

    &#xA;

    bitrate and quality settings are persistent across streams depending on resolution

    &#xA;

    i always test on same streams

    &#xA;

    the problem happens randomly&#xA;but if it starts with high cpu and low gpu utilization it goes on like this&#xA;when i restart program problem occurs randomly again

    &#xA;

    what can couse this

    &#xA;

    just as an info i have experience on c++ more than 25 years

    &#xA;

    if there is someone who can teach me something i will be happy

    &#xA;

    thanks for your further helps

    &#xA;

    i have tried to reproduce it with compiled ffmpeg instead of my libav library usage&#xA;same thing happens but not often

    &#xA;

    i have tried using hevc_cuvid instead of hwacceleration with avcodec_find_decoder_by_name function

    &#xA;