
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (87)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 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 (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (7589)
-
opts : add list device sources/sinks options
7 août 2014, par Lukasz Marek -
Python, ffmpeg split list of audio files
24 novembre 2020, par emilI 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


-
Core : Add "method" field to error list entry
31 mars 2014, par YuraDubenskyCore : Add "method" field to error list entry
To check what kind of validation rule was broken, so we could find a
difference between required or regex validation error raised.Closes #1035