Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (45)

  • 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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (8757)

  • 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 &
      ~/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 ?

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

  • FFMPEG make adjustment on first frame

    30 avril 2022, par iDeveloper

    I am using FFMPEG library to convert images to video file in my software program.

    &#xA;

    Here frameRate is 1 or 5. So, I need a dynamic image based on time for first 5 seconds. So, in the images folder if there is more than 10 images then I set frameRate as 5 for else frame rate is 1

    &#xA;

    Algorithm :

    &#xA;

    let startNumber: Int&#xA;let blackFrame  = self.sourceURL.appendingPathComponent("TIME_STAMP.jpg", isDirectory: false)&#xA;    &#xA;    if FileManager.default.fileExists(atPath: blackFrame.path){&#xA;       &#xA;        let data = try! Data(contentsOf: blackFrame)&#xA;        &#xA;        try? FileManager.default.removeItem(at: blackFrame)&#xA;&#xA;        if frameRate == "1"{&#xA;            &#xA;            startNumber = 20&#xA;            &#xA;            for i in 20...24{&#xA;                &#xA;                let url = sourceURL.appendingPathComponent("img\(i).jpg", isDirectory: false)&#xA;                try? data.write(to: url)&#xA;            }&#xA;            &#xA;        }else{&#xA;            &#xA;            startNumber = 0&#xA;            for i in 0...24{&#xA;                &#xA;                let url = sourceURL.appendingPathComponent("img\(i).jpg", isDirectory: false)&#xA;                try? data.write(to: url)&#xA;            }&#xA;        }&#xA;        &#xA;    }else{&#xA;        &#xA;        startNumber = 25&#xA;    }&#xA; &#xA;    let arguments: [String] = [&#xA;        "-y",&#xA;        "-framerate", frameRate,&#xA;        "-start_number",  "\(startNumber)",&#xA;        "-i", "\(sourceURL.path)/img%0d.jpg",&#xA;        "-c:v", "libx264",&#xA;        "-crf", "28",&#xA;        outputURL.path&#xA;    ]&#xA;

    &#xA;

    This is how I am constructing the arguments. It's working perfect on fast systems. but for slow systems the creation of custom time image takes time than the FFMPEG execution. So, the output video file is mixed of various frames instead of 1....N ;

    &#xA;

    So, I don't want to create the 5 or 25 images each time. Instead can am I able to set frame rate for first image only ? or is there any alternative ?

    &#xA;

    Thank you !

    &#xA;