Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (54)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (5325)

  • Anomalie #2788 : Critères optionnels et passage automatique de #ENV dans les modèles

    8 juillet 2012, par jluc -

    La question est donc "comment faire un critère conditionnel qui ne prenne que les arguments passés explicitement en paramètre lors de l’appel du modèle". Vu que ceux ci sont les seuls à pouvoir être récupérés également par #ENVarg/nomdelargument, la question est "comment boucler sur l’environnement (...)

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

  • Streaming jpegs live to iphone app

    14 février 2012, par Raven

    Im progressing through taking the depth camera feed from my kinect and streaming it to my iphone app. I have got to stage of being able save jpegs for every frame created from the kinect depth image (30 fps) and save them to the local disk. I have than been able to convert this to mpeg with ffmpeg.

    My question is now how can I view this live on my iphone ? Basically I want to view it live on the iphone as you are seeing it coming from the kinect.

    Should I use http live streaming and use the segmenter to use apples HttpLiveStreaming functionality ? Or can I stream the raw jpeg image files up in some way as they are saved to disk and than just cycle the images on the phone as they go ?

    Im wondering how video conferencing is achieved on the iphone (facetime/skype etc) ? because I'd prefer that it wasnt played inside the video player, just want to display live content on the screen as it happens.

    Any ideas ? Thanks in advance