Recherche avancée

Médias (91)

Autres articles (80)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

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

Sur d’autres sites (6354)

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

  • Why ANativeWindow_Buffer.stride is different for different devices

    17 août 2020, par user2578525

    I am writing simple video player using ffmpeg for android. Following are the steps I followed

    


      

    1. Read AVFrame from file
    2. 


    3. Convert AVFrame to RGB565 format using sws_scale
    4. 


    5. Get buffer from using av_image_copy_to_buffer
    6. 


    7. Display this buffer to SurfaceView by copying buffer to ANativeWindow_Buffer
    8. 


    


    Most of the videos are playing fine, but there is issue with videos which have lower resolution than window. For ex, when I play a 656x480 video on my OnePlus 7T (2206x1080), video looks distorted. The same video plays fine on emulator (2160x1080).

    


    When I debugged whole pipe, I found that on OP7T, after locking ANativeWindow, ANativeWindow_Buffer.stride was set to 704 instead of 656. For all videos which plays normal, stride is same as width of buffer. The same is not the case with Android emulator.

    


    I did some trials and tried to scale width to 600, then stride jumped to 640 and video was distorted. When I scaled width to 640, video was displayed vertically half correct.

    


    Can anyone help me understand, How stride is calculated ? And What is the reason stride is wrongly calculated ?

    


    I found one same problem here : Simple FFMpeg player for Android
OP mentions that video works fine for 640, 1280, 1920.

    


  • Seperate Landscape and Portrait Videos

    26 avril 2018, par NeMesiS

    I got some 2000+ emulator preview videos that I’m putting together and I need to sort landscape and portrait videos into separate directories. Usually a quick google would solve my query but on this occasion I’m turning up short, maybe I’m not asking the right questions...