Recherche avancée

Médias (91)

Autres articles (16)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (4429)

  • ffmpeg split audio file into individual segments

    4 novembre 2022, par Martin

    I have a 00:15:24 length .mp3 file that I want to split up into three separate files, ideally using a txt file input like so :

    


    segemnts.txt

    


    00:00:00 00:04:55 seg1
00:04:55 00:08:41 seg2
00:08:41 00:15:24 seg3


    


    How can I do this with a single command ?

    


  • Python, ffmpeg split list of audio files

    24 novembre 2020, par emil

    I know how to split one single audio file with python and ffmpeg :

    


    command = "ffmpeg -i a.wav -f segment -segment_time 60 -c copy out_dir/output%09d.wav"
command = shlex.split(command)
subprocess.run(command)


    


    For my current task, I have a list of several hundred .wav files I want to split.

    


    My current solution is :

    


    def parse_and_split_dir(directory, out_dir):
  files = [x for x in os.listdir(directory) if ".wav" in x]
  print(files)
  cntr = 0
  for wav in files:
    wav = wav.replace(" ", "\ ")
    temp_dir = os.path.join(out_dir, str(cntr))
    Path(temp_dir).mkdir(parents=True, exist_ok=True)
    temp_dir = os.path.join(temp_dir, "output%05d.wav")
    command = "ffmpeg -i {} -f segment -segment_time 60 -c copy {}".format(os.path.join(directory, wav), temp_dir)
    command = shlex.split(command)
    subprocess.run(command)
    cntr += 1




    


    I list all .wav files, and for each file I create a directory where I store the split files into. This implies that file naming start with index 1 for each new file.
E.g. folder 1 contains files ...1.wav to ...9.wav, folder 2 contains ...1.wav to ...13.wav and so on.

    


    In short, I ideally want to parse the whole directory with a single command, while keeping the naming continually from file to file, e.g. when the last wav saved its last split with ...10.split, the next split for the next file should be saved as ..11.split.

    


    I thought about first concatenating all the single files to one file, and then splitting them again (which introduces massive overhead), and unnecessarily consumes memory and disk space. An alternative I thought of was using a *.wav wildcard, but ffmpeg found no file called *.wav(which is expected).

    


    Related question : 1

    


  • Split bulk video fast by using ffmpeg ? [duplicate]

    9 avril 2014, par user3513568

    This question is an exact duplicate of :

    I have a lot of videos, so I want to split them automatically. And they will be divided into 2 parts :

    Part 1: 15 minutes
    Part 2: the rest

    This is code I have

    ffmpeg -i input -t 00:15:00 -codec copy output
    ffmpeg -ss 00:15:00 -i input -codec copy output

    However, I don't know how to split batch all video in 1 folder because I have a lot of file !

    Searched a lot, but did not find. Please, help.

    I use windows OS and I want to stream copy.