
Recherche avancée
Autres articles (99)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 (...)
-
Installation en mode standalone
4 février 2011, parL’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
[mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)
Sur d’autres sites (15116)
-
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


-
avfilter/vf_fps : Work around msvc (c99wrap) build failure
26 août 2013, par Pavel Koshevoy -
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 ?