
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (70)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (6807)
-
FFmpeg : How to split video to 2 equal chunks ?
4 mai 2023, par Alon GI wish to split a large avi video into two smaller consecutive videos. I am using ffmpeg.


I don't know what is the length of the video.


-
Split bulk video fast by using ffmpeg ? [duplicate]
9 avril 2014, par user3513568This 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 restThis is code I have
ffmpeg -i input -t 00:15:00 -codec copy output
ffmpeg -ss 00:15:00 -i input -codec copy outputHowever, 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.
-
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