
Recherche avancée
Autres articles (47)
-
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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (10757)
-
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!");
}



-
Are there any resources listing current codecs and formats not supported by FFmpeg ?
4 mars 2020, par Alexander SwannWe are building a service where we do not know what format/codec a video uploaded by a user is in. Due to the nature of the application, we expect input video formats to be very fragmented, diverse and niche. We are currently using FFmpeg to transcode input formats to a consistent output (e.g. mp4).
Due to the above scenario, I would like to establish a general list of what formats and codecs are not currently supported by FFmpeg. This is so I can research other open source video transcoding tools which I can utilise to fill in the gaps and allow our service to be more reliable for the user.
Are there resources online that can help at least get a general idea of what might not be supported by FFmpeg ?