Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (59)

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

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (10709)

  • Play audio from ffmpegframegrabber

    5 juillet 2013, par Shataya

    For an augmented reality app which should play videos, adjusted to the detected marker.
    I can't use the android video view as it is not possible to rotate it.
    Therefor I have imported the javacv and ffmpeg libraries.
    So far I can successfully render my video with opengl es but I have problems with the audio playback.

    I extract the frames with FFmpegFrameGrabber :

    grabber = new MyFFmpegFrameGrabber(Environment.getExternalStorageDirectory()+"/arvideo_"+fileName+".mp4");
    Frame frame = grabber.grabFrame();
    ....
    if(frame.samples != null) {    
      // I have my audio samples and then?    
    }

    I tried to playback the audio with the AudioTrack class.

    int bufferSize = AudioTrack.getMinBufferSize(grabber.getSampleRate(),AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT);
    track = new AudioTrack(AudioManager.STREAM_MUSIC, grabber.getSampleRate(), AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSize, AudioTrack.MODE_STREAM);
    track.play();

    // call track.write(....) ???

    I get only a static noise. I have read that the sample format is AV_SAMPLE_FMT_FLTP but android needs AV_SAMPLE_FMT_S16. That's why I tried to convert the samples with com.googlecode.javacv.cpp.swresample class. I think that I'm doing something wrong because I still have only noise.

    swrcontext = com.googlecode.javacv.cpp.swresample.swr_alloc();
    com.googlecode.javacv.cpp.swresample.swr_alloc_set_opts(swrcontext,AV_CH_LAYOUT_STEREO, avutil.AV_SAMPLE_FMT_FLTP, getSampleRate(), AV_CH_LAYOUT_STEREO, avutil.AV_SAMPLE_FMT_S16, getSampleRate(), 0, null);
    com.googlecode.javacv.cpp.swresample.swr_init(swrcontext);
    // ....
    PointerPointer inData =  samples_frame.data();
    PointerPointer outData = samples_frame.data();            
    com.googlecode.javacv.cpp.swresample.swr_convert(swrcontext, outData, samples_frame.nb_samples(), inData,  samples_frame.nb_samples());
    samples_frame = new AVFrame(outData);

    I really have no idea anymore... I hope anybody can help me. Thanks.

  • Video compressed using ffmpeg-android-java library, does not play on Web browsers

    27 juin 2016, par Jay Donga

    I am capturing video using default camera in Android and compressing it using ffmpeg-android-java library.

    After successful compression, video is playing in MXPlayer app, but fails to play in Web browsers like Google Chrome, Firefox.

    What can be the reason ?

    I have shared my compression logic. What changes can I make here so it can play on browsers ?

    String[] str=new String[]{"-y" ,"-i",sourceFilename,"-strict","experimental","-s", "160x120","-r","25", "-vcodec", "mpeg4", "-b", "150k", "-ab","48000", "-ac", "2", "-ar", "22050", destinationFilename};

    try{
               FFmpeg ffmpeg = FFmpeg.getInstance(getActivity());
               ffmpeg.execute(str, new ExecuteBinaryResponseHandler() {

                   @Override
                   public void onStart() {}

                   @Override
                   public void onProgress(String message) {
                       Log.e("onProgress",message);
                   }

                   @Override
                   public void onFailure(String message) {
                       Log.e("onFailure",message);
                   }

                   @Override
                   public void onSuccess(String message) {
                       Log.e("onSuccess",message);
                   }

                   @Override
                   public void onFinish() {}
               });
           }  catch (FFmpegCommandAlreadyRunningException e) {
               e.printStackTrace();
           }
  • Is there any (or possible) html5 player that play videos on different resolution without convertion the media file ?

    1er avril 2020, par In-my-country-we-dont-use-name

    I want to play videos on my website with a html5 media player.I found this for an example :

    



    https://plyr.io/

    



    but it needs different videos for every resolution with these codes :

    



     
                        
                        
                        


    



    I dont want convert media files with some convertion technologies for example ffMpeg, IF IT IS POSSIBLE.So, I want to learn how to play videos on different resolution without convertion.If you know a html5 player, you can suggest me.

    



    Its urgent.My company loses many thousand dollars everyday because of this problem.If we cant solve this, we cant save us from bankrupt.I dont want go to jail because of depts.