Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (10095)

  • trying to use fluent-ffpmeg on raspberry pi

    3 septembre 2018, par cdoern

    I am trying to use fluent ffmpeg to make a h264 file into an mp4 file. However, installing regular ffmpeg did not work since ti downloaded a very old version onto my pi. through some research i stumbled upon an ffmpeg installer on npm that installers a newer version and allows you to use it : https://www.npmjs.com/package/@ffmpeg-installer/ffmpeg however, when incorporating this into my project, PM2, the process manager I am using to run my files, throws a very stranger error :

    err._length = err.length;
    TypeError: Cannot create property '_length' on string 'Unsupported platform/architecture: linux-arm

    below is my code for converting the file

    const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
    var ffmpeg = require('fluent-ffmpeg');
    ffmpeg.setFfmpegPath(ffmpegPath);
    ffmpeg('/home/pi/Videos/video.h264').format('mp4');
    ffmpeg.on('error', function(err) {
     console.log('an error happened: ' + err.message);
    })
    // save to file
    ffmpeg.save('/home/pi/Videos/testmovie.mp4');
  • Killing cmd processes in Bravobit FFmpeg

    10 octobre 2018, par kataroty

    I am using Bravobit FFmpeg Bravobit FFmpeg github to convert some audio files. There are more convertion than these 2 but I do not think they are necessary to add here.

    My question is, is it possible to kill or stop these commands once they are started.

    At the moment when I start the first method convertPCMToWav() and then call finish() in the Main method which stops all other processes but these. They just keep on going like nothing has happened.

    public class AudioProcessor {

       private Context context;
       private FFmpeg ffmpeg;

       private File micPcmFile;

       private File pcmtowavTempFile;
       private File mp3towavTempFile;

       public AudioProcessor(Context context, Activity activity) {
           ffmpeg = null;
           ffmpeg = FFmpeg.getInstance(context);
           this.context = context;
           prepare();
       }

       /**
        * Program main method. Starts running program
        * @throws Exception
        */
       public void process() throws Exception {
           if (!ffmpeg.isSupported()) {
               Log.e("AudioProcessor", "FFMPEG not supported! Cannot convert audio!");
               throw new Exception("FFMPeg has to be supported");
           }
           if (!checkIfAllFilesPresent()) {
               Log.e("AudioProcessor", "All files are not set yet. Please set file first");
               throw new Exception("Files are not set!");
           }

           Log.e("AudioProcessor", "Start processing audio");




           Handler handler = new Handler();
           handler.postDelayed(new Runnable() {
               @Override
               public void run() {
                   convertPCMToWav();
               }
           }, 200);
       }

       /**
        * Prepares program
        */
       private void prepare() {
           prepareTempFiles();
       }

       /**
        * Converts PCM to wav file. Automatically create new file.
        */
       private void convertPCMToWav() {
           String[] cmd = { "-f" , "s16le", "-ar", "44.1k", "-i", micPcmFile.toString(), "-y", pcmtowavTempFile.toString()};
           ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {

               @Override
               public void onStart() {
                   super.onStart();
               }

               @Override
               public void onSuccess(String message) {
                   super.onSuccess(message);
                   convertMP3ToWav();
               }
               @Override
               public void onFailure(String message) {
                   super.onFailure(message);
               }
           });
       }

       /**
        * Converts mp3 file to wav file.
        * Creates Wav file
        */
       private void convertMP3ToWav() {
           String[] cmd = { "-i" , backgroundMp3File.toString(), "-y", mp3towavTempFile.toString() };
           ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {
               @Override
               public void onStart() {
                   super.onStart();
               }

               @Override
               public void onSuccess(String message) {
                   super.onSuccess(message);
                   changeMicAudio();
               }
               @Override
               public void onFailure(String message) {
                   super.onFailure(message);

               }
           });
       }

      /**
        * Prepares temp required files by deleteing them if they exsist.
        * Files cannot exists before ffmpeg actions. FFMpeg automatically creates those files.
        */
       private void prepareTempFiles() {
           pcmtowavTempFile = new File(context.getFilesDir()+ Common.TEMP_LOCAL_DIR + "/" + "_pcm.wav");
           mp3towavTempFile = new File(context.getFilesDir()+ Common.TEMP_LOCAL_DIR + "/" + "_mp3.wav");  
           destroyTempFiles();
       }

      /**
        * Destroys temp required files
        */
        private void destroyTempFiles() {

            pcmtowavTempFile.delete();
            mp3towavTempFile.delete();
       }

    }
  • ffmpeg ametadata filter's output is correct ?

    31 octobre 2018, par Ray Kim

    I try to detect silence by using ffmpeg with the below command.

    ffmpeg -i "test.mov" -af silencedetect=noise=-60dB:d=0.5,ametadata=print:file=log.txt -f null -

    and I got the result below

    frame:3008 pts:3012663 pts_time:62.7638
    lavfi.silence_start=62.2804
    frame:3040 pts:3044879 pts_time:63.435
    lavfi.silence_end=63.4504
    lavfi.silence_duration=1.16996

    frame:10230 pts:10244071 pts_time:213.418
    lavfi.silence_start=212.925
    frame:10523 pts:10536927 pts_time:219.519
    lavfi.silence_end=219.524
    lavfi.silence_duration=6.59985

    This input video’s fps is 29.97.

    The lavfi.silence_start/end shows right result, but frame is incorrect because its framecount is only 8218 !

    Why this things happened ?

    There’s no way to get the timecode instead this frame information ?