Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (92)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (12659)

  • Scroll playlist items into view. Cancel 'play next' timeout if user navigates previous/next etc.

    2 février 2015, par scottschiller
    Scroll playlist items into view. Cancel ’play next’ timeout if user navigates previous/next etc.
  • 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();
           }