
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (61)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
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 (...)
Sur d’autres sites (12643)
-
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!");
}



-
Browser MediaRecorder API - video controls not working / headers set incorrectly ?
7 avril 2017, par leoI’m trying to record a webcam video in the browser and save the stream on a node server.
Approach with MediaRecorder API
// CLIENT
// Init MediaRecorder with camera stream
recorder = new MediaRecorder(...)
// Serialize data and send it to backend
recorder.ondataavailable = (event) => {
const reader = new FileReader();
reader.readAsArrayBuffer(event.data);
reader.onloadend = function (event) {
socket.emit('message', reader.result);
};
}
// BACKEND
// Receive data and append it to the file
client.on('message', (data) => {
fs.appendFileSync(filePath + fileName + videoFileExtension, data);
...
}Problem
The first time the video is played in the browser the controls for forward and backwards are not working. Once it has been played, controls are ok.
Assumption
My assumption is that the headers are somehow broken.
Question
Any ideas how to repair the video captured by MediaRecorder and streamed to the NodeJS ? Or how to save the data chunks properly in a video file so that controls work ?