
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (99)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)
Sur d’autres sites (8201)
-
Batch splitting large audio files into small fixed-length audio files in moments of silence
26 juillet 2023, par Haldjärvito train the SO-VITS-SVC neural network, we need 10-14 second voice files. As a material, let's say I use phrases from some game. I have already made a batch script for decoding different files into one working format, another batch script for removing silence, as well as a batch script for combining small audio files into files of 13-14 seconds (I used Python, pydub and FFmpeg). To successfully automatically create a training dataset, it remains only to make one batch script - Cutting audio files lasting more than 14 seconds into separate files lasting 10-14 seconds, cutting in places of silence or close to silence is highly preferable.


So, it is necessary to batch cut large audio files (20 seconds, 70 seconds, possibly several hundred seconds) into segments of approximately 10-14 seconds, however, the main task is to look for the quietest place in the cut areas so as not to cut phrases in the middle of a word (this is not very good for model training). So, is it really possible to do this in a very optimal way, so that the processing of a 30-second file does not take 15 seconds, but is fast ? Quiet zone detection is required only in the area of cuts, that is, 10-14 seconds, if counted from the very beginning of the file.


I would be very grateful for any help.


I tried to write a script together with ChatGPT, but all options gave completely unpredictable results and were not even close to what I needed... I had to stop at the option with a sharp cut of files for exactly 14000 milliseconds. However, I hope there is a chance to make a variant with cutting exactly in quiet areas.


import os
from pydub import AudioSegment

input_directory = ".../RemSilence/"
output_directory = ".../Split/"
max_duration = 14000

def split_audio_by_duration(input_file, duration):
 audio = AudioSegment.from_file(input_file)
 segments = []
 for i in range(0, len(audio), duration):
 segment = audio[i:i + duration]
 segments.append(segment)
 return segments

if __name__ == "__main__":
 os.makedirs(output_directory, exist_ok=True)
 audio_files = [os.path.join(input_directory, file) for file in os.listdir(input_directory) if file.endswith(".wav")]
 audio_files.sort(key=lambda file: len(AudioSegment.from_file(file)))
 for file in audio_files:
 audio = AudioSegment.from_file(file)
 if len(audio) > max_duration:
 segments = split_audio_by_duration(file, max_duration)
 for i, segment in enumerate(segments):
 output_filename = f"output_{len(os.listdir(output_directory))+1}.wav"
 output_file_path = os.path.join(output_directory, output_filename)
 segment.export(output_file_path, format="wav")
 else:
 output_filename = f"output_{len(os.listdir(output_directory))+1}.wav"
 output_file_path = os.path.join(output_directory, output_filename)
 audio.export(output_file_path, format="wav")



-
Bitrate choice for h265 codec if CRF NOT Supported,MEDIA_CODEC [closed]
5 septembre 2023, par striderHow to choose optimal bitrate for encoding to a h265 codec, if h265 codec does NOT support any kind of CRF option ?


I believe the codec supports variable bitrate.


Is there an optimal ratio between bitrates of x264/XVID and h265 codecs ?
I.e. is there a general coefficient that I could multiply given x264 average bitrate to get h265 bitrate ?
(I guess we will have to assume a certain h265 preset here). Let the preset be medium or default for this question.


Usually its for long-term storage and to reduce file size.


Specifically I'm talking about hardware h265/HEVC MEDIA_CODEC for Android and FFMPEG. I'm just learning it, but it does not seem to have many options (does it support PRESET ?).
Any real life sample encoding FFMPEG command for hardware h265 MEDIA_CODEC with FFMPEG (e.g. for a movie) would be very helpful.


Is there a reference table for h265 bitrates for common video formats like Bluray, etc ?


Is there a way to output average video track bitrate with FFMPEG or other free tool ? (usually its x264 or mpeg2).


Unfortunately there's no non-android device I currently have with hardware h265 encoding support or with a multicore CPU.


-
How to ask FFMPEG to trim a video from start up to the end where there are no changes in frames ? [closed]
27 août 2023, par jtrnerI got a copy of our training module videos but these are desktop screen recorded. There are some videos where it supposed to end up to the length of the video, say 00:45:00, but because the "screen recorder" was not stopped (probably the person recording it left the computer) so there are added static frames towards the end (like 5 to 30 mins) and making the videos longer and file sizes bigger than it should be. So instead to end at 00:45:00, the video end timestap would be like say, 00:59:00.


So how would I ask ffmpeg to "trim" the videos up to the part where the frames stopped and no changes at all ? And I also like to have a buffer of like 10 seconds after the supposedly end of the video, just to make sure that ffmpeg correctly detects the segments where the frames stopped.


I'm only familiar with the video timming but don't have any idea on what filter to use to detect frame changes on videos using ffmpeg.