
Recherche avancée
Médias (2)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (72)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 (...)
Sur d’autres sites (8465)
-
avcodec/htmlsubtitles : Replace very slow redundant sscanf() calls by cleaner and...
11 juin 2017, par Michael Niedermayeravcodec/htmlsubtitles : Replace very slow redundant sscanf() calls by cleaner and faster code
This reduces the worst case from O(n²) to O(n) time
Fixes Timeout
Fixes : 2127/clusterfuzz-testcase-minimized-6595787859427328Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>
-
Backgroundworker quits itself and calls Runworkercompleted function
5 mai 2017, par yjs990427I am using
youtube-dl
in acmd
process running in abackgroundworker
process in wpf application to update its status to a text box asynchronously. There are times in my application thatffmpeg
has to work in through the process. However, at the time thatffmpeg
process is called (right afteryoutube-dl
’s work is finished) and starts running, backgroundworker callsRunworkercompleted
method and kills itself.ffmpeg
is called fromyoutube-dl
.Is there any fix that make the
backgroundworker
still work until theffmpeg
’s work is done ? Thanks.My
DoWork
method :private void downloadWorker_DoWork(object sender, DoWorkEventArgs e)
{
BackgroundWorker worker = sender as BackgroundWorker;
Process process = new Process();
string[] scripts = (string[])e.Argument;
string dir = scripts[0];
string scriptText = scripts[1];
process.StartInfo.FileName = "cmd.exe";
process.StartInfo.WorkingDirectory = dir;
process.StartInfo.Arguments = "/C set path=%path%;" + System.AppDomain.CurrentDomain.BaseDirectory + "&" + scriptText;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardInput = true;
process.StartInfo.RedirectStandardError = true;
process.Start();
while (!process.StandardOutput.EndOfStream)
{
if (downloadWorker.CancellationPending) // if and only if user calls Abort
// would this if statement be the problem?
{
foreach (var youtube in Process.GetProcessesByName("youtube-dl"))
{
youtube.Kill();
}
process.Kill();
e.Cancel = true;
return;
}
else
{
string line = process.StandardOutput.ReadLine();
worker.ReportProgress(1, line); // reports its status to UI
}
}
}My
RunWorkerCompleted
method :private void downloadWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (e.Error != null)
{
MessageBox.Show(e.Error.Message);
}
else if (e.Cancelled == true)
{
MessageBox.Show("Download Aborted!\r\nYou will need to delete the .part file in the download folder.", "Abort");
}
else if (musicCheckBox.IsChecked == true)
{
MessageBox.Show("Music Download finished.", "Successful");
}
else if (videoCheckBox.IsChecked == true)
{
MessageBox.Show("Video Download finished.", "Successful");
}
// CMDoutputTextBox.Text = "";
downloadBtn.Content = "Download!";
downloadBtn.IsEnabled = true;
}edit : The backgroundworker produces this output and calls
RunWorkerFinished
method.ffmpeg
does nothing after the output.[ffmpeg] Converting video from mp4 to mkv, Destination: TAEYEON 태연_Why_Music Video-WkdtmT8A2iY.mkv
-
Make syncronous ffmpeg calls from php
3 février 2014, par Aditya JhunjhunwalaI have an application for creating webcam recordings, Once I record a video, I send a ajax call to a file, convert.php which has an ffmpeg call for converting the recordings, and once converted, the file is sent to S3.
In one user session, 20-30 recordings get created, and the same number of calls to convert.php are sent as soon as the recording is stopped( As this was the desired flow, Can't alter it).
Since, the recorded file sizes are different and their conversion takes different time, the file end up on S3 at different times(Which I guess is also because ffmpeg calls from different convert.php files run parallel, so a small file gets converted and transferred to S3 sooner than a large file).
How can I make the server to wait for one ffmpeg call to complete, before initiating another, rather than parallel running of ffmpeg commands ??
This is my convert.php
<?php
$filename = $_POST('filename');
$input_filename = $filename.".flv";
$output_filename = $filename.".mp4";
$command = "ffmpeg -y -i ".$input_filename." -threads 16 -r 12 -crf 13 -qcomp 0.60 -vcodec libx264 ".$output_filename;
exec($command);
uploadtoS3();
?>Thanks in advance for the help....!!!!!