Recherche avancée

Médias (91)

Autres articles (48)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7019)

  • Equalizers, bassboost and reverb effect not working (using FFmpegMediaPlayer)

    9 février 2018, par Arren

    I’m currently using FFmpegMediaPlayer from github and the effects are not working in the phone but works perfectly in the emulator which of both are the same API 22.

    The strange thing is that when I switch the code from FFmpegMediaplayer to standard android media player the effects start working again in the real phone device. But when I switch back to ffpmeg the effect only works in the emulator and not in the real device. My code is as below,

    public void setupVisualizerFxAndUI() {

       try {
           mVisualizer = new Visualizer(mMediaPlayer.getAudioSessionId());
           mEqualizer = new Equalizer(0, mMediaPlayer.getAudioSessionId());
           mEqualizer.setEnabled(true);

           try {
               bassBoost = new BassBoost(0, mMediaPlayer.getAudioSessionId());
               bassBoost.setEnabled(false);
               BassBoost.Settings bassBoostSettingTemp = bassBoost.getProperties();
               BassBoost.Settings bassBoostSetting = new BassBoost.Settings(bassBoostSettingTemp.toString());
               bassBoostSetting.strength = (1000 / 19);
               bassBoost.setProperties(bassBoostSetting);
               mMediaPlayer.setAuxEffectSendLevel(1.0f);

               presetReverb = new PresetReverb(0, mMediaPlayer.getAudioSessionId());
               presetReverb.setPreset(PresetReverb.PRESET_NONE);
               presetReverb.setEnabled(false);
               mMediaPlayer.setAuxEffectSendLevel(1.0f);
           } catch (Exception e) {
               e.printStackTrace();
           }

       } catch (Exception e) {
           e.printStackTrace();
       }

       if (homeActivity.isEqualizerEnabled) {
           try {
               bassBoost.setEnabled(true);
               BassBoost.Settings bassBoostSettingTemp = bassBoost.getProperties();
               BassBoost.Settings bassBoostSetting = new BassBoost.Settings(bassBoostSettingTemp.toString());
               if (homeActivity.bassStrength == -1) {
                   bassBoostSetting.strength = (1000 / 19);
               } else {
                   bassBoostSetting.strength = homeActivity.bassStrength;
               }
               bassBoost.setProperties(bassBoostSetting);
               mMediaPlayer.setAuxEffectSendLevel(1.0f);


               if (homeActivity.reverbPreset == -1) {
                   presetReverb.setPreset(PresetReverb.PRESET_NONE);
               } else {
                   presetReverb.setPreset(homeActivity.reverbPreset);
               }
               presetReverb.setEnabled(true);
               mMediaPlayer.setAuxEffectSendLevel(1.0f);

           } catch (Exception e) {
               e.printStackTrace();
           }
       }
       if (homeActivity.isEqualizerEnabled && homeActivity.isEqualizerReloaded) {
           try {
               homeActivity.isEqualizerEnabled = true;
               int pos = homeActivity.presetPos;
               if (pos != 0) {
                   mEqualizer.usePreset((short) (pos - 1));
               } else {
                   for (short i = 0; i < 5; i++) {
                       mEqualizer.setBandLevel(i, (short) homeActivity.seekbarpos[i]);
                   }
               }
               if (homeActivity.bassStrength != -1 && homeActivity.reverbPreset != -1) {
                   bassBoost.setEnabled(true);
                   bassBoost.setStrength(homeActivity.bassStrength);
                   presetReverb.setEnabled(true);
                   presetReverb.setPreset(homeActivity.reverbPreset);
               }
               mMediaPlayer.setAuxEffectSendLevel(1.0f);

           } catch (Exception e) {
               e.printStackTrace();
           }
       }

    where mMediaPlayer is ffmpeg...Other than that the library is working fine in regards to streaming. The only problem is that it doesn’t get any effect put in. I thought this might be a coding problem so I just switched ffmpeg with Android standard media player like I mentioned above and it works. FFmpeg - bass boost and equalizer only works in the emulator and not in real phone device.

    Another strange thing was that the effect initially worked at first in debug run mode and stopped working after I signed the apk. From which point on it stopped working both in the debug as well as any other run modes i.e - release also....I’m not using any pro guard rules also.

    Points to note :
    1. Replacing FFmpegmediaplayer with Standard Media player the effects works.
    2. Effects worked before signing the apk then stopped working in all run modes
    3. Using the same code above for FFMpegmediaplayer effects only work in the
    Emulator and not in real device.
    4. Other than the effects problem, FFmpegmediaplayer is functional regarding
    streaming and local playback - in real phone device as well as emulator.

  • fade In and out effect on a text using ffmpeg in nodejs

    21 septembre 2020, par sankar barman

    There are many examples for command line interface, but what i need is to achieve by having an object property with filter name and options. No solution have been found for this.
Here is the code sample. Everything is working fine, but don't know the syntax for fade In and fade out. Please do help in this. Thanks in advance.

    


    ffmpeg("tmp/" + file.name).videoFilters({ filter: 'drawtext',
options: { 
  fontfile: 'Lucida Grande.ttf',
  x: 50,
  y:20,
  text: 'some title',
  fontsize: '56',
  fontcolor: 'white',
  enable: 'between(t,10,20)'
  fade: ?
}})


    


  • ffmpeg -itsoffset option has no effect

    30 avril 2014, par Dims

    I want to fix audio sync problems. I looked in MPC-HC that audio should be delayed by 2750 milleseconds.

    The following two commands

    ffmpeg -itsoffset +2.750 -i MyFile.avi -vcodec copy -ss 00:28:32 -to 00:29:30 MyFile2.avi
    ffmpeg -itsoffset -2.750 -i MyFile.avi -vcodec copy -ss 00:28:32 -to 00:29:30 MyFile2.avi

    give exactly the same result (video and audio non synchronized and shifted equally).

    I.e. -itsoffset option does not work.

    Why ?