Recherche avancée

Médias (91)

Autres articles (52)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

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

  • avfilter/af_headphone : increase max ir length

    25 septembre 2017, par Paul B Mahol
    avfilter/af_headphone : increase max ir length
    

    Signed-off-by : Paul B Mahol <onemda@gmail.com>

    • [DH] libavfilter/af_headphone.c
  • How to duplicate an audio file or trim it to a specific length in ffmpeg ?

    21 octobre 2023, par Руслан Лысенко

    I want to combine a video file (with audio) and an audio file together to get one output file.

    &#xA;

    Most importantly, I need to do the following.

    &#xA;

    If the length of the video file is longer, then you need to increase the length of the audio file to this length.

    &#xA;

    If the audio file is longer than the video file, then make the audio file shorter to match the length of the video.

    &#xA;

    Example :

    &#xA;

    Video 2 minutes 5 seconds

    &#xA;

    Audio 1 minute -> duplicated to 2 minutes 5 seconds.

    &#xA;

    If

    &#xA;

    Video 1 minute

    &#xA;

    Audio 2 minutes 5 seconds -> trimmed to 1 minute.

    &#xA;

    But, I can't even increase the length of the audio file.

    &#xA;

    export async function overlayAudio(id: number, music: Music) {&#xA;  console.log(&#x27;start&#x27;)&#xA;  const videoPath = path.join(__dirname, `../../../uploads/movie/${id}/result/movie/predfinal.mp4`);&#xA;  &#xA;  if (music === null) {&#xA;    return videoPath.match(/\\uploads(.*)/)[0];&#xA;  } else {&#xA;    const audioPath = path.join(__dirname, `../../../${music.audio}`);&#xA;    const outputVideoPath = path.join(__dirname, `../../../uploads/movie/${id}/result/movie/output.mp4`);&#xA;    const matchPath = outputVideoPath.match(/\\uploads(.*)/);&#xA;    const cmd = `ffmpeg -i ${videoPath} -i ${audioPath} -filter_complex "[0:a]volume=1[a];[1:a]volume=0.2[b];[b]apad[looped_audio];[a][looped_audio]amix=inputs=2:duration=longest" -c:v copy -c:a aac -strict experimental -shortest ${outputVideoPath}`;&#xA;&#xA;    try {&#xA;      await execPromise(cmd);&#xA;      console.log(&#x27;end!&#x27;)&#xA;      return matchPath[0];&#xA;    } catch (error) {&#xA;      console.error(&#x27;Error:&#x27;, error);&#xA;      throw error;&#xA;    }&#xA;  }&#xA;}&#xA;&#xA;

    &#xA;

  • mpeg4videodec : only allow a positive length

    22 avril 2015, par Andreas Cadhalpun
    mpeg4videodec : only allow a positive length
    

    Signed-off-by : Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/mpeg4videodec.c