
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (111)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...)
Sur d’autres sites (9947)
-
svq1 : do not modify the input packet
3 août 2014, par Anton Khirnovsvq1 : do not modify the input packet
The input data must remain constant, make a copy instead. This is in
theory a performance hit, but since I failed to find any samples
using this feature, this should not matter in practice.Also, check the size of the header, avoiding invalid reads on truncated
data.CC:libav-stable@libav.org
-
How to get output from ffmpeg process in c#
13 juillet 2018, par Anirudha GuptaIn the code I written in WPF, I run some filter in FFmpeg, If I run the command in terminal (PowerShell or cmd prompt) It will give me information line by line what’s going on.
I am calling the process from C# code and it’s work fine. The problem I have with my code is actually I am not able to get any output from the process I run.
I have tried some answers from StackOverflow for FFmpeg process. I see 2 opportunities in my code. I can either fix it by Timer approach or secondly hook an event to OutputDataReceived.
I tried OutputDataReceived event, My code never got it worked. I tried Timer Approach but still, it’s not hitting my code. Please check the code below
_process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = ffmpeg,
Arguments = arguments,
UseShellExecute = false,
RedirectStandardOutput = true,
RedirectStandardError = true,
CreateNoWindow = true,
},
EnableRaisingEvents = true
};
_process.OutputDataReceived += Proc_OutputDataReceived;
_process.Exited += (a, b) =>
{
System.Threading.Tasks.Task.Run(() =>
{
System.Threading.Tasks.Task.Delay(5000);
System.IO.File.Delete(newName);
});
//System.IO.File.Delete()
};
_process.Start();
_timer = new Timer();
_timer.Interval = 500;
_timer.Start();
_timer.Tick += Timer_Tick;
}
private void Timer_Tick(object sender, EventArgs e)
{
while (_process.StandardOutput.EndOfStream)
{
string line = _process.StandardOutput.ReadLine();
}
// Check the process.
} -
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