
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (79)
-
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (7478)
-
Is there a way to fit a given time frame of a a video to fit a specific file size ?
21 février 2020, par ExosylverIs there a ffmpeg command to fit part of a video into a certain file size ? For example, if it is a 645mb video that is 70 minutes long, and I want 7 parts (each part 10 mins)- to limit each part to 93 mb (the average estimated file size) ?
(I already tried to break it up by timestamp,but the files don’t end up the same size)
-
How to remove a specific segment from an audio file using timestamps ? [closed]
9 février, par Hilal KhanI am working on a C# project where I need to remove a specific segment from an audio file (e.g., WAV, MP3) based on start and end timestamps, while keeping the rest of the audio intact.


For example, given a 20-minute audio file, I want to remove the section from 17:00 to 19:00 and be left with a new audio file containing only 0:00-17:00 and 19:00-20:00 (i.e., keeping the parts before and after the cut).


I have used NAudio and FFmpeg to trim a file by cutting from the start or end, but I only get my desired snippet as a separate file which is not what I am looking for as I want it to be removed from the audio itself


Heres what I have so far :


static void RemoveSegment(string inputPath, string outputPath, double startTime, double endTime)
{
 using (var reader = new Mp3FileReader(inputPath))
 {
 var writer = new FileStream(outputPath, FileMode.Create, FileAccess.Write);

 int bytesPerMillisecond = reader.WaveFormat.AverageBytesPerSecond / 1000;
 long startPosition = (long)(startTime * 1000) * bytesPerMillisecond;
 long endPosition = (long)(endTime * 1000) * bytesPerMillisecond;

 byte[] buffer = new byte[4096];
 int bytesRead;

 while ((bytesRead = reader.Read(buffer, 0, buffer.Length)) > 0)
 {
 if (reader.Position < startPosition || reader.Position > endPosition)
 {
 writer.Write(buffer, 0, bytesRead);
 }
 }

 writer.Close();
 }

 Console.WriteLine("Segment removed successfully!");
}



-
How to Remove a Specific Segment from an Audio File Using Timestamps in C# ? [closed]
8 février, par Hilal KhanI am working on a C# project where I need to remove a specific segment from an audio file (e.g., WAV, MP3) based on start and end timestamps, while keeping the rest of the audio intact.


For example, given a 20-minute audio file, I want to remove the section from 17:00 to 19:00 and be left with a new audio file containing only 0:00-17:00 and 19:00-20:00 (i.e., keeping the parts before and after the cut).


I have used NAudio and FFmpeg to trim a file by cutting from the start or end, but I only get my desired snippet as a separate file which is not what I am looking for as I want it to be removed from the audio itself


Heres what I have so far :


static void RemoveSegment(string inputPath, string outputPath, double startTime, double endTime)
{
 using (var reader = new Mp3FileReader(inputPath))
 {
 var writer = new FileStream(outputPath, FileMode.Create, FileAccess.Write);

 int bytesPerMillisecond = reader.WaveFormat.AverageBytesPerSecond / 1000;
 long startPosition = (long)(startTime * 1000) * bytesPerMillisecond;
 long endPosition = (long)(endTime * 1000) * bytesPerMillisecond;

 byte[] buffer = new byte[4096];
 int bytesRead;

 while ((bytesRead = reader.Read(buffer, 0, buffer.Length)) > 0)
 {
 if (reader.Position < startPosition || reader.Position > endPosition)
 {
 writer.Write(buffer, 0, bytesRead);
 }
 }

 writer.Close();
 }

 Console.WriteLine("Segment removed successfully!");
}