Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (105)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (12605)

  • How to capture multiple screenshot from youtube video using ffmpeg with specific seek time

    9 août 2017, par Md. Mehedi Hasan

    I’m using ffmpeg to take screenshot from youtube video. I want to seek multiple timeline. I’ve used the following command to capture 1 screenshot by seek command :
    ffmpeg -ss 00:02:10 -i "youtube-stream-url" -frames:v 1 out1.jpg

    How I can take multiple screenshot via multiple seek time. I’ve searched for the solution but no success.

    I’ve used the following command to take multiple screenshot as follows :
    ffmpeg -noaccurate_seek -ss 00:01:10 -i "youtube-stream-url" -map 0:v:0 -vframes 1 -f mpeg "thumb/output_01.jpg" -ss 00:02:10 -i "youtube-stream-url" -map 1:v:0 -vframes 1 -f mpeg "thumb/output_02.jpg"

    Is there any way to generate screenshots from same input via seek command ? How to make it more faster ? How to skip multiple input(-i param) ? I’ve also tried with other commands but those are more slower. Can anyone help me ?

  • avconv : when using -loop option bail out if seek to start fails

    30 juin 2017, par Peter Große
    avconv : when using -loop option bail out if seek to start fails
    

    Fixes an infinite loop when a demuxer fails to seek to the start of the input.

    Signed-off-by : Peter Große <pegro@friiks.de>
    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DBH] avtools/avconv.c
  • FFmpeg SwrContext incorrectly converting leftover data after seek

    27 avril 2017, par trigger_death

    I currently have my own custom SFML SoundFileReader that uses FFmpeg for more file formats. It works great for the most part until you seek and then you get leftover data from the previous location when using swr_convert. I currently have a hackish (I think) solution to the problem where I call swr_init after seeking to remove whatever data is leftover in there. I assumed that swr_convert’s documentation on flushing would be the solution to the issue yet either it doesn’t help or I’m not doing it correctly. Is there a proper way to clear the leftover data in the SwrContext after seeking ?

    void seekBeginning() {
       av_seek_frame(
           m_formatContext, m_audioStream,
           m_formatContext->streams[m_audioStream]->first_dts,
           AVSEEK_FLAG_BACKWARD | AVSEEK_FLAG_ANY
       );
       avcodec_flush_buffers(m_codecContext);

       // This fixes the issue but it seems like a horribly incorrect way of doing it
       swr_init(m_convertContext);

       // I've tried this but it doesn't seem to work
       //swr_convert(m_convertContext, NULL, 0, NULL, 0);
    }

    Uint64 read(Int16* samples, Uint64 maxCount) {
       Uint64 count = 0;
       while (count &lt; maxCount) {
           if (m_packet->stream_index == m_audioStream) {
               while (m_packet->size > 0) {
                   int gotFrame = 0;
                   int result = avcodec_decode_audio4(m_codecContext, m_frame, &amp;gotFrame, m_packet);
                   if (result >= 0 &amp;&amp; gotFrame) {
                       int samplesToRead = static_cast<int>(maxCount - count) / m_codecContext->channels;
                       if (samplesToRead > m_frame->nb_samples)
                           samplesToRead = m_frame->nb_samples;
                       m_packet->size -= result;
                       m_packet->data += result;
                       result = swr_convert(m_convertContext, (uint8_t**)&amp;samples, samplesToRead, (const uint8_t**)m_frame->data, m_frame->nb_samples);

                       if (result > 0) {
                           count += result * m_codecContext->channels;
                           samples += result * m_codecContext->channels;
                       }
                       else {
                           m_packet->size = 0;
                           m_packet->data = NULL;
                       }
                   }
                   else {
                       m_packet->size = 0;
                       m_packet->data = NULL;
                   }
               }
           }
           av_free_packet(m_packet);
       }

       return count;
    }
    </int>