Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (25)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (5964)

  • Possible for ffmpeg to downsample over time, serve RTSP ?

    8 avril 2022, par user48956

    I'd like to take an RSTP webcam, downsample the video to a lower rate (say one frame every 5 seconds) and serve the result as an RTSP stream.
Is is possible to configure ffmpeg (or libffmpeg) to do such a thing ?

    


  • Can you stream video to a Zoom conference via API using FFMPEG ?

    8 juin 2020, par Fight Fire With Fire

    Is it possible to stream raw video via python to the Zoom API ? So that instead of a webcam footage, you could let's say pipe in raw generated video.

    


  • How to Output Mjpeg from Kokorin Jaffree FFmpeg via UDP to a Localhost Port ?

    14 octobre 2022, par roba

    I have a Java program which displays dual webcams and records them to file in FHD 30fps H264/H265. It uses Sarxos Webcam for the initial setup and display but when recording, it switches to Jaffree FFmpeg. During recording Sarxos Webcam must release its webcam access and cannot display while recording continues.

    


    I have tried recording with Xuggler/Sarxos but Sarxos seems to only access raw video from the webcams which creates limitations in the frame rate and resolution which can be achieved. At 1920x1080 the cameras can only deliver 5 fps raw video.

    


    I am trying to direct mjpeg streams from Jaffree to localports for display purposes during recording but I cannot figure out how to do it.

    


    Simultaneous recording plus sending to a port can be done from the terminal with the following :

    


    ffmpeg -f  dshow  -video_size 1920x1080 -rtbufsize 944640k -framerate 25 -vcodec mjpeg  -i video="Logitech Webcam C930e" -pix_fmt yuv420p -c:v libx264 outFHDx25.mp4 -f mpegts udp://localhost:1234?pkt_size=188&buffer_size=65535


    


    and viewed from the port in a different terminal like this :

    


    ffplay -i udp://localhost:1234


    


    The video which displays is a little blocky compared with the video recorded to file. Any suggestions on how to improve this would be appreciated.

    


    Note that FFPlay is not included in Jaffree FFMpeg.

    


    I would like to send the mjpeg to a port and then read it into the Sarxos Webcam viewer to display while recording is in progress.

    


    The Jaffree Java code for recording the output of one webcam to file follows. It takes the mjpeg/yuv422p output from the webcam and normally encodes it to file as H264/yuv420p :

    


    public static FFmpeg createTestFFmpeg() {
      String camera1Ref = "video=" + cam1Vid + ":audio=" + cam1Aud;
          return FFmpeg.atPath()
              .addArguments("-f", "dshow")  //selects dshow for Windows
              .addArguments("-video_size", resString)  //video resolution  eg 1920x1080          
              .addArguments("-rtbufsize", rtBufResultString) 
              .addArguments("-thread_queue_size", threadQ)
              .addArguments("-framerate", fpsString)   // capture frame rate  eg 30fps         
              .addArguments(codec, vidString)  //set capture encode mode from camera
              .addArgument(audio) //on or off
              .addArguments("-i", camera1Ref)   // name of camera to capture
              .addArguments("-pix_fmt", pixFmt)
              .addArguments("-c:v", enc2)  //eg enc2 = "libx264", "h264_nvenc"
              .addArguments(enc3, enc4)  //enc3 = "-crf", enc4 = "20"
              .addArguments(enc5, enc6)  //enc5 = "-gpu:v", enc6 = "0"
              .addArguments(enc7, enc8)  //enc7 = "-cq:v", enc8 = "20"
              .addArguments(enc9, enc10)  //enc9 = "-rc:v", enc10 = "vbr"
              .addArguments(enc11, enc12)  //enc11 = "-tune:v", enc12 = "ll"
              .addArguments(enc13, enc14)  //enc13 = "-preset:v", enc14 = "p1" 
              .addArguments(enc15,enc16)  //enc15 = "-b:v", enc16 = "0"
              .addArguments(enc17, enc18)  //enc17 = "-maxrate:v", enc18 = "5000k"
              .addArguments(enc19, enc20)  //enc19 = "-bufsize:v", enc20 = "5000k"
              .addArguments(enc21, enc22)  //enc21 = "-profile:v", enc22 = "main"
              .addArgument(noFFStats) //"-nostats"{, stops logging progress/statistics
              .addArguments("-loglevel", ffLogLevel)  //error logging
              .addArgument(bannerResultString)  // "-hide_banner"
              .addArguments("-rtbufsize", rtBufResultString) 
              .setOverwriteOutput(true)   // overwrite filename if it exists  Boolean = overwriteFile
              .addOutput(
                  UrlOutput
                      .toUrl(filePathL))                    
              .setProgressListener(new ProgressListener(){
                  @Override
                  public void onProgress(FFmpegProgress progress){
                     if(ffProgress){ 
                          System.out.println(progress);
                          
                     } 
                    }
            } );
            
   }


    


    How and where do I add the code to output mjpeg via UDP to a localport while simultaneously writing H264 to a file, and what is the syntax ? I am sure it must be simple but I seem to have tried all of the permutations without success. I can write to a file OR I can output to a port but I cannot do both.