Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (73)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (13306)

  • FFmpeg and types of samples

    23 juillet 2015, par Kyborg2011

    Decoded audio using FFmpeg (function avcodec_decode_audio3) and try to reproduce it through Audiotrack in Android. When playing I hear some growling. No music. On the forums advised that the problem with the samples. Question : how to solve this problem, if it is associated with a mismatch of types of samples ? Code decoding :

           while (av_read_frame(pFormatCtx, &packet)>= 0) {
               if (aCodecCtx->codec_type == AVMEDIA_TYPE_AUDIO) {
                           int data_size = AVCODEC_MAX_AUDIO_FRAME_SIZE * 2;
                           int size=packet.size;
    int decoded = 0;
                           while(size > 0) {
                                   int len = avcodec_decode_audio3(aCodecCtx, (uint16_t *) pAudioBuffer, &data_size, &packet);


                                   jbyte *bytes = (*env)->GetByteArrayElements(env, array, NULL);
                                   memcpy(bytes + decoded, (uint16_t *) pAudioBuffer, len);
                                   (*env)->ReleaseByteArrayElements(env, array, bytes, 0);

                                   (*env)->CallStaticVoidMethod(env, cls, mid, array);


                                   size -= len;
                                   decoded += len;
                                   }
               }

        }

    Java code :

       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.main);

            int bufSize = AudioTrack.getMinBufferSize(44100,                                AudioFormat.CHANNEL_CONFIGURATION_MONO,
                           AudioFormat.ENCODING_PCM_16BIT);
           track = new AudioTrack(AudioManager.STREAM_MUSIC, 44100, AudioFormat.CHANNEL_CONFIGURATION_MONO,
                       AudioFormat.ENCODING_PCM_16BIT, bufSize, AudioTrack.MODE_STREAM);
           track.play();

               bytes = new byte[bufSize];
               int res = main(2, "/sdcard/muzika_iz_reklami_bmw_5_series_-_bmw_5_series.mp3", bytes);


               System.out.println(res);
       }
       private static void play(byte[] play) {

           track.write(play, 0, play.length);
       }

    How to solve this problem ?
    P.S. The file itself is checked - the standard player plays. Format : mp3.

  • Installing faad library for ffmpeg through Homebrew on mac OS X Lion

    14 décembre 2011, par alex

    Following up with my previous question, I decided to give Ffmpeg a try and installed it on my Mac with Homebrew.

    I am now trying to follow this tutorial and use the linked script. But can't make/install the script. I first corrected a small bug (replaced CODEC_TYPE_AUDIO, CODEC_TYPE_VIDEO and PKT_FLAG_KEY with AVMEDIA_TYPE_AUDIO, AVMEDIA_TYPE_VIDEO, and AV_PKT_FLAG_KEY respectively in live_segmenter.c). But now, when I run make in the unzipped folder, I get the following warning and error messages :

    gcc -Wall -g live_segmenter.c -o live_segmenter -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lpthread
    live_segmenter.c: In function ‘main’:
    live_segmenter.c:149: warning: ‘av_open_input_file’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1093)
    live_segmenter.c:165: warning: implicit declaration of function ‘guess_format’
    live_segmenter.c:165: warning: initialization makes pointer from integer without a cast
    live_segmenter.c:208: warning: ‘av_set_parameters’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1407)
    live_segmenter.c:214: warning: ‘dump_format’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1535)
    live_segmenter.c:232: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
    live_segmenter.c:238: warning: ‘av_write_header’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1465)
    live_segmenter.c:283: warning: ‘put_flush_packet’ is deprecated (declared at /usr/local/include/libavformat/avio.h:293)
    live_segmenter.c:284: warning: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
    live_segmenter.c:289: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
    live_segmenter.c:326: warning: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
    ld: library not found for -lfaad
    collect2: ld returned 1 exit status
    make: *** [all] Error 1

    I also downloaded the faac/faad libraries from here. When I run make in faac, it says I have nothing to install, but I can't find out how to install faad...

    Would love any help you can offer !

  • Updated domain check for the demo settings.

    8 avril 2013, par blueimp
    m js/main.js
    
    Updated domain check for the demo settings.
    

    blueimp.github.com => blueimp.github.io