Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (37)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Contribute to documentation

    13 avril 2011

    Documentation 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 (9311)

  • FFmpeg : How to split video to 2 equal chunks ?

    4 mai 2023, par Alon G

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

  • 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