
Recherche avancée
Autres articles (95)
-
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 (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Le plugin : Gestion de la mutualisation
2 mars 2010, parLe plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
Installation basique
On installe les fichiers de SPIP sur le serveur.
On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
< ?php (...)
Sur d’autres sites (9631)
-
Resize wma audio files using ffmpeg
24 juin 2016, par Jinto JohnWhile I am trying to convert wav file to wma file ,File size is becomes double from original source file, Is there any way to reduce file size of target file.
and my code is. I use FFmpeg.exe-Its a Executable file and I am saved FFmpeg.exe in my bin folder.public void ConvertToWAV()
{
DataTable dtNew = new DataTable();
dtNew.Columns.Add("File");
dtNew.Columns.Add("Status");
DataRow drow = dtNew.NewRow();
int i = 0;
try
{
string tempFilePath = string.Empty;
string tempWMAFilePath = string.Empty;
string FileName1 = string.Empty;
string tempFilePathMp3 = string.Empty;
string DestinationPath = string.Empty;
string[] Filename = null;
string DestiFilename1 = null;
string[] DestiFilename = null;
string[] Destination = null;
long FileSizeMp3 = 0;
FileName1 = @"D:\wma\"+"45550_AnRepository"+".wma";
DestiFilename1 = @"D:\WMAConvert\" + "45550_AnRepository" + ".wav";
FileName1 = FileName1.Replace(@"\", "/");
Filename = FileName1.Split('/');
DestiFilename1 = DestiFilename1.Replace(@"\", "/");
DestiFilename = DestiFilename1.Split('/');
if (Filename.Length == 3)
{
if (Filename[2] != null)
{
tempFilePath = @"D:\wma\" + Filename[2].ToString();
tempFilePath = tempFilePath.Replace("/", @"\");
tempWMAFilePath = @"D:\WMAConvert\" + DestiFilename[2].ToString();
tempWMAFilePath = tempWMAFilePath.Replace("/", @"\");
string audioType = "wav";
if (File.Exists(tempFilePath))
{
if (audioType.ToLower().Contains("wav"))
{
try
{
//using (MemoryStream wav = new MemoryStream(fileData))
//{
tempFilePathMp3 = tempFilePath;
tempFilePathMp3 = tempFilePathMp3.Replace(@"\", "/");
Destination = tempFilePathMp3.Split('/');
tempFilePathMp3 = tempFilePathMp3.Replace("/", @"\");
tempFilePathMp3 = tempFilePathMp3.Replace(".wma", "");
DestinationPath = "D:\\WMAConvert\\" + Destination[2];
tempFilePathMp3 = "D:\\WMAConvert\\" + Destination[2];
if (!Directory.Exists(DestinationPath))
{
// Try to create the directory.
DirectoryInfo di = Directory.CreateDirectory(DestinationPath);
}
tempFilePathMp3 = tempFilePathMp3.Replace(".wma", "");
if (!File.Exists(tempFilePathMp3 + ".wav"))
{
Process p = new Process();
p.StartInfo.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;
p.StartInfo.FileName = AppDomain.CurrentDomain.BaseDirectory + "\\ffmpeg.exe";
p.StartInfo.CreateNoWindow = true;
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
p.StartInfo.Arguments = "-i " + tempFilePath + " -q:a 0 \"" + tempFilePathMp3 + ".wav\"";
p.Start();
p.WaitForExit();
p.Close();
}
if (File.Exists(tempFilePathMp3 + ".wav"))
{
// tempWMAFilePath = tempFilePathMp3 + ".wav";
tempFilePathMp3 = @"D:\CallRecording\" + "45550_AnRepository" + ".wma";
Process p2 = new Process();
p2.StartInfo.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;
p2.StartInfo.FileName = AppDomain.CurrentDomain.BaseDirectory + "\\ffmpeg.exe";
p2.StartInfo.CreateNoWindow = true;
p2.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
// ffmpeg -i recording.wav -acodec copy newrecording.wma
p2.StartInfo.Arguments = "-i " + tempWMAFilePath + " -acodec copy \"" + tempFilePathMp3;
p2.Start();
p2.WaitForExit();
p2.Close();
}
}
catch (Exception ex)
{
//We couldn't convert the file, continue with the original file.
}
}
}
}
}
}
catch (Exception ex)
{
}
//dgList.Refresh();
} -
Recording ip camera stream writing video file [closed]
10 décembre 2020, par MarcWe are implementing a camera surveillance system project using python with openCV/ffmpeg and Cuda based on client-server architecture, this system should hold up to 40-60 IP cameras for live, record and playback features.


The problem is that their is delay in live view between our program and the web page of the camera and problem in writing frames into video files(recording).


Does the problem due to the used language or a hardware issue, and does python represents the efficient language for this type of projects ?


-
concat - audio files using FFmpeg not working in above Android 5.1
15 juin 2016, par Mehul KabariaI am using FFmpeg to concat three Audio file combine into one
- audio.m4a (get from assets)
- Recorded audio.m4a (Record using MediaRecorder)
- audio.m4a (get from assets)
its works fine in below Android 5.1 but not working on above Android 5.1,
In above 5.1 recorded audio file not concat (its playing good when i play from saved internal storage its not corrupt recording).I am using following command to concat audio files.
File mergedFile = new File(cacheDir + "/" + String.format("merged_file_%s.m4a", System.currentTimeMillis()));
final String[] ffmpegCommand = new String[]{ /* this concat only 1st audio*/
"ffmpeg",
"-f",
"concat",
"-i",
list, /* text file which contains full path of audio files*/
"-c",
"copy",
mergedFile.toString()};
final String[] ffmpegCommand = new String[]{ /*its working but not concat recorded file*/
"-y",
"-i",
"concat:" + getStaticFilePath() + "|" + getRecordedFilePath() + "|" + getStaticFilePath(),
"-c",
"copy",
mergedFile.toString()};
FFmpeg ffmpeg = FFmpeg.getInstance(this);
try {
ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
@Override
public void onFailure() {
showUnsupportedExceptionDialog();
}
});
} catch (FFmpegNotSupportedException e) {
showUnsupportedExceptionDialog();
}
try {
ffmpeg.execute(ffmpegCommand, new FFmpegExecuteResponseHandler() {
@Override
public void onFailure(String s) {
Log.d(TAG, "FAILED with output : " + s);
}
@Override
public void onSuccess(String s) {
Log.d(TAG, "SUCCESS with output : " + s);
}
@Override
public void onProgress(String s) {
Log.d(TAG, "Started command : ffmpeg " + ffmpegCommand);
}
@Override
public void onStart() {
Log.d(TAG, "Started command : ffmpeg " + ffmpegCommand);
Log.d(TAG, "Processing...");
}
@Override
public void onFinish() {
Log.d(TAG, "Finished command : ffmpeg " + ffmpegCommand);
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// do nothing for now
}list is a text file contains path of all audio which i concat
#ffmpeg.txt
file '/storage/emulated/0/AudioRecorder/radioStatic.m4a'
file '/storage/emulated/0/AudioRecorder/recordedFile.m4a'
file '/storage/emulated/0/AudioRecorder/radioStatic.m4a'