Recherche avancée

Médias (91)

Autres articles (54)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (8277)

  • ffmpeg - Convert files but keep Same Date Modification as Original ?

    9 septembre 2021, par user5894146

    So I want to start with that ffmpeg and powershell isn't really my strength but I have been using the following powershell command to convert every .flac file in a certain directory to a 320K file.

    


    dir *.flac | foreach {ffmpeg -i $_.FullName -c:v copy  -b:a 320k  $_.FullName.Replace('flac', 'mp3')}


    


    This works exactly how I want to without any album art being transcoded but I want to incorporate a way so that the new .mp3 files that are created have the SAME DATE MODIFICATION value of the .flac files. Is something like this even possible ?

    


    audio_ex.flac = Date Modification: 1/1/2010
audio_ex.mp3 = Date Modification: 9/8/2021


    


    should be instead

    


    audio_ex.flac = Date Modification: 1/1/2010
audio_ex.mp3 = Date Modification: 1/1/2010


    


    I have a folder of 6K files and want each original date modified to match the newly created files so if I can do the above command and also have the date mod time match within one execution, that would be ideal.

    


    I thought of manually changing each files mod time using 3rd party tools but it will be too time consuming.

    


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

    


    Most importantly, I need to do the following.

    


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

    


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

    


    Example :

    


    Video 2 minutes 5 seconds

    


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

    


    If

    


    Video 1 minute

    


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

    


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

    


    export async function overlayAudio(id: number, music: Music) {
  console.log('start')
  const videoPath = path.join(__dirname, `../../../uploads/movie/${id}/result/movie/predfinal.mp4`);
  
  if (music === null) {
    return videoPath.match(/\\uploads(.*)/)[0];
  } else {
    const audioPath = path.join(__dirname, `../../../${music.audio}`);
    const outputVideoPath = path.join(__dirname, `../../../uploads/movie/${id}/result/movie/output.mp4`);
    const matchPath = outputVideoPath.match(/\\uploads(.*)/);
    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}`;

    try {
      await execPromise(cmd);
      console.log('end!')
      return matchPath[0];
    } catch (error) {
      console.error('Error:', error);
      throw error;
    }
  }
}



    


  • dashenc : Write segment timelines properly if the timeline has gaps

    28 novembre 2014, par Martin Storsjö
    dashenc : Write segment timelines properly if the timeline has gaps
    

    Write a new start time if the duration of the previous segment
    didn’t match the start of the next one. Check that segments
    actually are continuous before writing a repeat count.

    This makes sure timestamps deduced from the timeline actually
    match the real start timestamp as written in filenames (if
    using a template containing $Time$).

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavformat/dashenc.c