Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (83)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

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

Sur d’autres sites (10289)

  • FFMPEG PHP Message : Unable to save frame

    30 avril 2020, par Hitesh Vala Ahir

    Hello I have try to take thumbnail through FFMPEG but get the error message like Message : Unable to save frame.

    



    PHP 7.0

    



    php-ffmpeg/php-ffmpeg : ^0.16.0

    



    Below is the code

    



    require &#x27;vendor/autoload.php&#x27;;&#xA;&#xA;&#xA;&#xA;$sec =1;&#xA;$movie = &#x27;video1581091620.mp4&#x27;;&#xA;$thumbnail = &#x27;thumbnail.png&#x27;;&#xA;&#xA;try{&#xA;$ffmpeg = FFMpeg\FFMpeg::create();&#xA;$video = $ffmpeg->open($movie);&#xA;$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds($sec));&#xA;$frame->save($thumbnail);&#xA;echo &#x27;<img src="http://stackoverflow.com/feeds/tag/&#38;#x27;.$thumbnail.&#38;#x27;" style='max-width: 300px; max-height: 300px' />&#x27;;&#xA;}catch(Exception $e) {&#xA;  echo &#x27;Message: &#x27; .$e->getMessage();&#xA;}&#xA;

    &#xA;

  • FFmpeg massive data loss when writing large data and swapping segments

    25 avril 2023, par Bohdan Petrenko

    I have an ffmpeg process running which continiously writes audio data to two 30 seconds (for testing, I'm actually planning to use 5 minutes) segments. The problem is that when I write some audio data with length more than size of two segments (60 seconds), 8-17 seconds of audio is lost. Here is how I run FFmpeg and write data :

    &#xA;

        _ffmpeg = Process.Start(new ProcessStartInfo&#xA;    {&#xA;        FileName = "ffmpeg",&#xA;        Arguments = &#xA;            $"-y -f s16le -ar 48000 -ac {Channels} -i pipe:0 -c:a libmp3lame -f segment -segment_time {BufferDuration} -segment_format mp3 -segment_wrap 2 -reset_timestamps 1 -segment_list \"{_segmentListPath}\" \"{segmentName}\"",&#xA;        UseShellExecute = false,&#xA;        RedirectStandardInput = true&#xA;    })!;&#xA;    // Channels is usually 1, BufferDuration is 30&#xA;

    &#xA;

    And here is how I write data :

    &#xA;

    public async Task WriteSilenceAsync(int amount)&#xA;{&#xA;    if (amount > _size) amount = _size; // _size is 48000 * 1 * 2 * 30 * 2 = 5760000 (size of 1 minute of audio)&#xA;    &#xA;    var silence = _silenceBuffer.AsMemory(0, amount);&#xA;    await _ffmpeg.StandardInput.BaseStream.WriteAsync(silence);&#xA;}&#xA;

    &#xA;

    I tried to change the ffmpeg parameters and ways I write data. But I haven't found the solution.

    &#xA;

    I'm sure that the problem is caused by ffmpeg segments, because if I disable segmenting and write audio to a single file, there are no problems with data loss or audio missmatch. I also sure that amount of silence to add in WriteSilenceAsync() method is calculated right. I'm not sure if the problem appears with data length more than 30 seconds but less then 1 minute, but I think it doesn't.

    &#xA;

    I don't know how to solve this problem and would be glad to see any suggestions or solutions.

    &#xA;

  • swresample : Add prefix to soxr_resampler

    27 février 2015, par Michael Niedermayer
    swresample : Add prefix to soxr_resampler
    

    also move declaration to header

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libswresample/soxr_resample.c
    • [DH] libswresample/swresample.c
    • [DH] libswresample/swresample_internal.h