Recherche avancée

Médias (91)

Autres articles (29)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7705)

  • How can I merge two .g729 files into one .wav file with ffmpeg ?

    1er novembre 2018, par Discotek1986

    How can I merge two .g729 files into one .wav file with ffmpeg ?

    I used the command

    ffmpeg -filter_complex [0\:a][1\:a]amerge\=inputs\=2[aout] -map [aout]

    The result is with two files reported .wav and not .g729 and output reported .wav
    Here is the FFMPEG data :

    ffmpeg version git-2015-07-01-06a0d5e Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.3 (SUSE Linux)
    configuration: --prefix=/home/cartella/Encoder_Build --extra-cflags=-I/home/cartella/Encoder_Build/include --extra-ldflags=-L/home/cartella/Encoder_Build/lib --bindir=/home/cartella/Encoder --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --disable-yasm
    libavutil      54. 27.100 / 54. 27.100
    libavcodec     56. 46.100 / 56. 46.100
    libavformat    56. 40.100 / 56. 40.100
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 19.100 /  5. 19.100
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.100 /  1.  2.100
    libpostproc    53.  3.100 / 53.  3.100
  • How to do multiple input with streamio-ffmpeg ?

    12 août 2020, par Yozuu

    I would like to recreate this ffmpeg line (which works well) in my rails app :

    


    ffmpeg -i 1.mp4 -i 2.mp4 -filter_complex '[0] [1] afir=dry=10:wet=10' output.wav


    


    So here is my config :

    


    module EncodingConstants
  PROCESSED_DEFAULTS = {
    resolution:           '500x400',
    video_codec:          'libx264',
    constant_rate_factor: '30',
    frame_rate:           '25',
    audio_codec:          'aac',
    audio_bitrate:        '128k',
    audio_sample_rate:    '48000',
    progress: :processing_progress
  }.freeze

  AUDIO_EFFECTS = {
    multi_effect: %w[-i /home/yozuu/2.mp4 -filter_complex [0] [1] afir=dry=10:wet=10]
 }.freeze


    


    So Sidekiq send this back to me :

    


    I, [2020-08-12T19:40:38.828081 #2142]  INFO -- : Running transcoding...
["/sbin/ffmpeg", "-y", "-i", "/home/yozuu/labo/video-project/tmp/1597254011-2142-0001-8820/1.mp4", "-vcodec", "libx264", "-acodec", "aac", "-s", "500x282", "-i", "/home/yozuu/2.mp4", "-filter_complex", "'[0]", "[1]", "afir=dry=10:wet=10'", "-r", "25", "-b:a", "128k", "-ar", "48000", "-aspect", "1.7730496453900708", "/home/yozuu/labo/video-project/tmp/1597254011-2142-0001-8820/1.mp4"]

E, [2020-08-12T19:40:38.897575 #2142] ERROR -- : Failed encoding...
["/sbin/ffmpeg", "-y", "-i", "/home/yozuu/labo/video-project/tmp/1597254011-2142-0001-8820/1.mp4", "-vcodec", "libx264", "-acodec", "aac", "-s", "500x282", "-i", "/home/yozuu/2.mp4", "-filter_complex", "'[0]", "[1]", "afir=dry=10:wet=10'", "-r", "25", "-b:a", "128k", "-ar", "48000", "-aspect", "1.7730496453900708", "/home/yozuu/labo/video-project/tmp/1597254011-2142-0001-8820/1.mp4"]


.....

Unknown decoder 'libx264'

Errors: no output file created. 



    


    I don't understand why because for me the command line ffmpeg seems correct.
Anyone have a idea ?
Thank you.

    


  • 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());
       }
    }