Recherche avancée

Médias (91)

Autres articles (21)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

Sur d’autres sites (4473)

  • 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

    


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

    


  • referenced links (url#id) broke on split chapters

    21 février 2016, par Grandt
    referenced links (url#id) broke on split chapters
    

    Fixed : referenced links (url#id) broke on split chapters.
    Changed : Generated TOC file changed from using hardcoded spaces to
    indent nested chapters, to using the CSS, defaulting to 2em per level.
    The tocCss can override this by defining .level[1-n], though the default
    only defines indents for levels 1-7. Reference links has their class as
    class=".level1 reference"