Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (72)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (11620)

  • Create a slide show from images in a folder [on hold]

    26 juillet 2017, par randommman

    So i have a folder with images like so :

    1.png
    2.png
    3.png
    .. etc

    I am trying to generate a slideshow video from the videos, i have the following code :

           string ffmpegPath = "ffmpeg.exe";
           string ffmpegParams = "-y - r " + mimtime + " -i " + Images + "- c:v libx264 -r 15 - pix_fmt yuv420p -vf fps = 90 " + Video;

           Process ffmpeg = new Process();
           ffmpeg.StartInfo.FileName = "cmd.exe";
           ffmpeg.StartInfo.Arguments = "/k " + ffmpegPath + " " + ffmpegParams;
           ffmpeg.Start();

    But this is giving me permision denied, because I think I need to add the individual images. How can I get the individuall images to generate a video ?

  • I using ffmpeg to live stream a hd video to rtmp server of facebook but when see it only show 360 quality

    29 octobre 2018, par jack ma

    This is my ffmpeg code :

    'ffmpeg -i "{}"  ' \
         '-vf "zoompan=z=\'min(max(zoom,pzoom)+0.0015,2)\':d=1:x=\'iw/2-(iw/zoom/2)\':y=\'ih/2-(ih/zoom/2)\'" ' \
         '-vcodec libx264 ' \
         '-preset veryfast ' \
         '-maxrate 2932k ' \
         '-bufsize 2500k ' \
         '-vf "format=yuv420p" ' \
         '-g 60 ' \
         '-acodec libmp3lame ' \
         '-b:a 198k ' \
         '-ar 44100 ' \
         '-s 1280x720 ' \
         '-f flv "{}"

    I have wasted 2 day for this problem. Thanks for reading !

  • How to fill audio AVFrame (ffmpeg) with the data obtained from CMSampleBufferRef (AVFoundation) ?

    24 mai 2013, par Aleksei2414904

    I am writing program for streaming live audio and video from webcamera to rtmp-server. I work in MacOS X 10.8, so I use AVFoundation framework for obtaining audio and video frames from input devices. This frames come into delegate :

    -(void) captureOutput:(AVCaptureOutput*)captureOutput didOutputSampleBuffer:    (CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection*)connection ,

    where sampleBuffer contains audio or video data.

    When I recieve audio data in the sampleBuffer, I'm trying to convert this data into AVFrame and encode AVFramewith libavcodec :

       aframe = avcodec_alloc_frame();  //AVFrame *aframe;
       int got_packet, ret;
       CMItemCount numSamples = CMSampleBufferGetNumSamples(sampleBuffer); //CMSampleBufferRef

       NSUInteger channelIndex = 0;

       CMBlockBufferRef audioBlockBuffer = CMSampleBufferGetDataBuffer(sampleBuffer);

       size_t audioBlockBufferOffset = (channelIndex * numSamples * sizeof(SInt16));

       size_t lengthAtOffset = 0;

       size_t totalLength = 0;

       SInt16 *samples = NULL;

       CMBlockBufferGetDataPointer(audioBlockBuffer, audioBlockBufferOffset, &lengthAtOffset, &totalLength, (char **)(&samples));

               const AudioStreamBasicDescription *audioDescription = CMAudioFormatDescriptionGetStreamBasicDescription(CMSampleBufferGetFormatDescription(sampleBuffer));

       aframe->nb_samples =(int) numSamples;

       aframe->channels=audioDescription->mChannelsPerFrame;

       aframe->sample_rate=(int)audioDescription->mSampleRate;

        //my webCamera configured to produce 16bit 16kHz LPCM mono, so sample format hardcoded here, and seems to be correct
       avcodec_fill_audio_frame(aframe, aframe->channels, AV_SAMPLE_FMT_S16,

                                (uint8_t *)samples,

                                 aframe->nb_samples *

                                av_get_bytes_per_sample(AV_SAMPLE_FMT_S16) *

                                aframe->channels, 0);  
       //encoding audio
       ret = avcodec_encode_audio2(c, &pkt, aframe, &got_packet);
       if (ret < 0) {
           fprintf(stderr, "Error encoding audio frame: %s\n", av_err2str(ret));
           exit(1);
       }

    The problem is that when I get so formed frames, I can hear the wanted sound, but it is slowing down and discontinuous (as if after each data frame comes the same frame of silence). It seems that something is wrong in the transformation from CMSampleBuffer to AVFrame , because the preview from the microphone created with AVFoundation from the same sample buffers played normally.

    I would be grateful for your help.

    UPD : Creating and initializing the AVCodceContext structure
     

       audio_codec= avcodec_find_encoder(AV_CODEC_ID_AAC);
       if (!(audio_codec)) {
           fprintf(stderr, "Could not find encoder for '%s'\n",
                   avcodec_get_name(AV_CODEC_ID_AAC));
           exit(1);
       }
       audio_st = avformat_new_stream(oc, audio_codec);  //AVFormatContext *oc;
       if (!audio_st) {
           fprintf(stderr, "Could not allocate stream\n");
           exit(1);
       }

         audio_st->id=1;
         audio_st->codec->sample_fmt= AV_SAMPLE_FMT_S16;
         audio_st->codec->bit_rate = 64000;
         audio_st->codec->sample_rate= 16000;
         audio_st->codec->channels=1;
         audio_st->codec->codec_type= AVMEDIA_TYPE_AUDIO;