
Recherche avancée
Autres articles (109)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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
Sur d’autres sites (14168)
-
ffmpeg writing the output of the command to a text file doesn't work with C#
5 février 2021, par LifshitzI am using ffmpeg commands with C# processes. I used a command to change the audio of a video and it was working but I also wanted to write the output to a text file. The new command works from cmd but apparently, it does not work while using a C# process.
The command that does not work with the Process is :


ffmpeg -i videoPath -i audioPath -c:v copy -map 0:v:0 -map 1:a:0 -shortest newVideoPath > textFilePath 2>&1



And the working command is the same without the last part :


ffmpeg -i videoPath -i audioPath -c:v copy -map 0:v:0 -map 1:a:0 -shortest newVideoPath



Here is the C# code :


Process proc = new Process();
 proc.StartInfo.FileName = ffmpegPath;
 proc.StartInfo.RedirectStandardError = true;
 proc.StartInfo.RedirectStandardOutput = true;
 proc.StartInfo.UseShellExecute = false;
 proc.StartInfo.CreateNoWindow = true;
 proc.StartInfo.Arguments = "-i " + videoPath + " -i " + newAudioPath + " -c:v copy" + " -map" + " 0:v:0 " + "-map 1:a:0 " + "-shortest " + newVideoPath + " > " + @"F:\Videos\log.txt"+ " 2>&1";
 proc.EnableRaisingEvents = true;
 proc.Exited += UpdateVideoSource;
 proc.Start();



I checked the arguments over and over again, and looked for missing spaces but nothing worked.
What can be the problem ?


-
avfilter/vf_fps : Work around msvc (c99wrap) build failure
26 août 2013, par Pavel Koshevoy -
Video Processing in background with work manager using ffmpeg
24 novembre 2020, par Naseer AttariThe problem comes when during the video processing user closes the application himself from the task manager then its processing stops.


I am working on video file processing in android using
FFMpeg
, which is working perfectly but when I do close the application during processing from task manager then video processing has stopped working even I added all the work in work manager.

@Override 
public Result doWork() {
 shellCommand = new ShellCommand();
 ffmpegBinary = new String[] {
 FileUtils.getFFmpeg(context).getAbsolutePath()
 };
 command = concatenate(ffmpegBinary, command);
 CommandResult commandResult = getCommandResult(command);
 if (command`enter code here`Result.success) {
 onSuccess(videoPath);
 } else {
 onFailure(videoPath);
 }
 }
 //getCommandResult
 private CommandResult getCommandResult(String[] command) {
 try {
 process = shellCommand.run(command, null);
 
 if (process == null) {
 return CommandResult.getDummyFailureResponse();
 }
 checkAndUpdateProcess();
 return CommandResult.getOutputFromProcess(process);
 } catch(Exception e) {} finally {
 Util.destroyProcess(process);
 }
 return CommandResult.getDummyFailureResponse();
 }



As far as I can tell, when the application closes from the background then the parent process destroys it and is destroying all of its sub-process too,
FFMpeg
is using the android process to execute the command and check the video file status during video processing.

Looking forward to hear from you.
Thanks