Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (38)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (7271)

  • Using ffmpeg rtmp stream a static image and audio input [on hold]

    30 octobre 2017, par Chad

    Using a Raspberry Pi, stream audio in and use a static image as the video input thru ffmpeg over RTMP to a Cloud video provider (DaCast in this instance)

    So far, I’ve gone through many blog posts, Stack Overflow questions, and package documentation. I’ve found that most of the posts are no longer valid with the newer versions of ffmpeg. Or don’t quite line up with what I am trying to achieve.

    However, I have figured out the right settings to stream the Raspberry Pi Camera v2 with the audio in.

    ffmpeg \
      -f alsa -ac 1 -i plughw:1,0 \
      -f v4l2 -s 1920x1080 -r 30 -input_format h264 -i /dev/video0 \
      -vcodec copy -preset veryfast -r 15 -g 30 -b:v 64k -ar 44100 -threads 6 -b:a 96k -bufsize 3000k \
      -f flv rtmp ://streaming_server_url
    

    But can’t seem to get it right to replace the video input with a static image.

    I have tried removing the 3rd line and adding -loop 1 -i '/path/to/image.jpg'

    The logs look like :

    [alsa @ 0x55e4b980] Thread message queue blocking ; consider raising the thread_queue_size option (current value : 1024)
    [alsa @ 0x55e4b980] ALSA buffer xrun.  0kB time=00:00:00.00 bitrate=N/A speed=   0x
    [alsa @ 0x55e4b980] ALSA buffer xrun.130kB time=00:00:00.27 bitrate=3822.5kbits/s speed=0.0403x
    ...
    

    I have also tried looping a 4 second video, with similar outcomes.


    My Setup for context :

    • Raspberry Pi 3 Model B
    • USB Audio Device (Sabrent USB External Stereo Sound Adapter)
    • Ubuntu MATE 16.04.2 (Xenial)
    • ffmpeg version 3.2-2+rpi1 xenial1.7 (I can post what is configured with the build, if needed)
  • ffmpeg - stream image and audio input

    30 octobre 2017, par Chad

    Goal

    Using a Raspberry Pi, stream audio in and use a static image as the video input thru ffmpeg over RTMP to a Cloud video provider (DaCast in this instance)

    Setup

    • Raspberry Pi 3 Model B
    • USB Audio Device (Sabrent USB External Stereo Sound Adapter)
    • Ubuntu MATE 16.04.2 (Xenial)
    • ffmpeg version 3.2-2+rpi1 xenial1.7 (I can post what is configured with the build, if needed)

    Question

    So far, I have figured out the right setting to stream the Raspberry Pi Camera v2 with the audio in. But can’t seem to get it right to replace the video input with a static image. This is that command :

    ffmpeg -f alsa -ac 1 -i plughw:1,0 -f v4l2 -s 1920x1080 -r 30 -input_format h264 -i /dev/video0 -vcodec copy -preset veryfast -r 15 -g 30 -b:v 64k -ar 44100 -threads 6 -b:a 96k -bufsize 3000k -f flv rtmp://streaming_server_url

    How can I replace the video input and replace with an image (or short video with no audio) ?

  • ffmpeg program doesn't running on shell script with java Application

    20 octobre 2017, par Hae-Yoon Jo

    I code java Application and running Linux shell-script when java App running on Linux server.
    The linux shell-script is running. But, i need runnning ffmpeg program by shell.

    1. the ffmpeg is running with shell-script command by ./shellName.sh

    2. ffmpeg is not running with java App run by .

      • only ffmpeg command in shell.
      • working mkdir command
      • working pwd command
    #!/bin/bash
    echo -n "ffmpeg cmd :"
       /home/popsline/ffmpeg -i /home/popsline/sub02_chocolat.mp4 -r 0.14 -ss 00:00:20 -t 10:00:00 -vframes 10 -f image2 -y /home/popsline/img/iamges%d.png
    mkdir /home/username/test
    pwd

    Java code.

    HomeController.java refer sh.java as Object.
    so codes is follows :

    HomeController.java

    /**
    * Simply selects the home view to render by returning its name.
    */
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String home(Locale locale, Model model) {
       logger.info("Welcome home! The client locale is {}.", locale);

       Sh sh = new Sh();
       sh.shRun();

       return "home";
    }

    sh.java

    private static final Logger logger = LoggerFactory.getLogger(HomeController.class);

    public void shRun(){

       Runtime rt = Runtime.getRuntime();
       Process proc = null;
       InputStream is = null;
       BufferedReader bf = null;

       try {
           String[] cmd = {
                   "/bin/sh"
                   , "-c"
                   , "/usr/local/bin/creaThum.sh"
           };

           proc = rt.exec(cmd);
           proc.getInputStream();
           is = proc.getInputStream();
           bf = new BufferedReader(new InputStreamReader(is));

           while (true) {
               String info = bf.readLine();
               if(info == null || info.equals("")){
                   break;
               }
               logger.info("info haeyoon:: " + info);
           }
       } catch (Exception e) {
           logger.info(e.getMessage());
       }
    }