
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (98)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
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 -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (9319)
-
Anomalie #4359 : Liste des utilisateurs connectés : non affichage par défaut des rédacteur connect...
13 juillet 2019, par Franck DTicket en double https://core.spip.net/issues/3535
Je cloture :) -
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!");
}



-
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!");
}