Recherche avancée

Médias (91)

Autres articles (71)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6909)

  • avfilter/blend_modes : Always preserve constness

    7 septembre 2023, par Andreas Rheinhardt
    avfilter/blend_modes : Always preserve constness
    

    These casts cast const away temporarily ; they are safe, because
    the pointers that are initialized point to const data. But this
    is nevertheless not nice and leads to warnings when using
    - Wcast-qual. blend_modes.c generates 546 (2*39*7) such warnings
    which is the majority of such warnings for FFmpeg as a whole.
    vf_blend.c and vf_blend_init.h also use this pattern ;
    they have also been changed.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavfilter/blend_modes.c
    • [DH] libavfilter/vf_blend.c
    • [DH] libavfilter/vf_blend_init.h
  • lavu/hwcontext_qsv : silence the warning

    24 juillet 2023, par Haihao Xiang
    lavu/hwcontext_qsv : silence the warning
    

    libavutil/hwcontext_qsv.c : In function ‘qsv_map_to’ :
    libavutil/hwcontext_qsv.c:1905:47 : warning : cast from pointer to integer
    of different size [-Wpointer-to-int-cast]

    Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>

    • [DH] libavutil/hwcontext_qsv.c
  • FFmpeg what is the correct way to manually write silence through pipe:0 ?

    19 juillet 2023, par Bohdan Petrenko

    I have an ffmpeg process running with this parameters :

    &#xA;

    ffmpeg -y -f s16le -ac {Channels} -ar 48000 -re -use_wallclock_as_timestamps true -i pipe:0 -f segment -segment_time {_segmentSize} -segment_list \"{_segmentListPath}\" -segment_format mp3 -segment_wrap 2 -reset_timestamps 0 -af aresample=async=1 \"{_filePath}\"&#xA;

    &#xA;

    I also have a DateTimeOffsetwhich represents the time when the recording was started. When an FFMpeg process is created, I need to add some some amount of silence that equals to the delay between current time and when the recording was started. This delay may be bigger than ffmpeg segments, so I calculate it relatively to the time when last ffmpeg segment should begin.&#xA;I store silence in a static byte array with length of two ffmpeg segments :

    &#xA;

    _silenceBuffer ??= new byte[_segmentSize * 2 * Channels * SampleRate * 2];&#xA;

    &#xA;

    I tried two ways of writing silence :

    &#xA;

    First code I tried is this :

    &#xA;

    var delay = DateTimeOffset.UtcNow - RecordingStartDateTime;&#xA;&#xA;var time = CalculateRelativeMilliseconds(delay.TotalMilliseconds); // this returns time based on current segment. It works fine.&#xA;&#xA;var amount = (int)(time * 2 * Channels * SampleRate / 1000);&#xA;&#xA;WriterStream.Write(_silenceBuffer, 0, amount);&#xA;

    &#xA;

    As the result, I have a very loud noise everywhere in output from ffmpeg. It brokes audio, so this way doesn't work for me.

    &#xA;

    Second code I tried is this :

    &#xA;

    var delay = DateTimeOffset.UtcNow - RecordingStartDateTime;&#xA;&#xA;var time = CalculateRelativeMilliseconds(delay.TotalMilliseconds); // this returns time based on current segment. It works fine.&#xA;&#xA;var amount = (int)time * 2 * Channels * SampleRate / 1000;&#xA;&#xA;WriterStream.Write(_silenceBuffer, 0, amount);&#xA;

    &#xA;

    Difference between first and second code is that now I cast only time to int type, not the result of the whole expression. But it also doesn't work. This time at the beginning I have no silence I wrote, the recording begins with voice data I piped after writing silence. But if I use this ffmpeg command :

    &#xA;

    ffmpeg -y -f s16le -ac {Channels} -ar 48000 -i pipe:0 -f segment -segment_time {_segmentSize} -segment_list \"{_segmentListPath}\" -segment_format mp3 -segment_wrap 2 -reset_timestamps 0 \"{_filePath}\"&#xA;

    &#xA;

    Then it works as expected. Recording begins with silence what I need, and then goes voice data I piped.

    &#xA;

    So, how can I manually calculate and write silence to my ffmpeg instance ? Is there some universal way of writing and calculating silence that will work with any ffmpeg command ? I don`t want to use filters and other ffmpeg instances for offsetting piped voice data, because I do it only once per session. I think that I can write silence with byte arrays. I look forward to any suggestions.

    &#xA;