
Recherche avancée
Autres articles (103)
-
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 ) (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (7368)
-
synchronize android ffmpeg asyncTask in thread
28 juin 2018, par JunburgI’m currently working on cutting and pasting audio with ffmpeg on Android. The problem is that when one audio file is not finished, there are other working files that need to be executed. I think the error below means this. I work through threads. An expression that executes a thread whenever there is a file to be processed.
W/System.err: com.github.hiteshsondhi88.libffmpeg.exceptions.FFmpegCommandAlreadyRunningException: FFmpeg command is already running, you are only allowed to run single command at a time
W/System.err: at com.github.hiteshsondhi88.libffmpeg.FFmpeg.execute(FFmpeg.java:63)
at com.github.hiteshsondhi88.libffmpeg.FFmpeg.execute(FFmpeg.java:89)
at com.softcode.tablet.Mp3Concat_Thread$2.run(Mp3Concat_Thread.java:614)
at java.lang.Thread.run(Thread.java:762)So what I want to ask is how to synchronize if a file comes in when the thread’s work is not over yet. Since the ffmpeg object is created with a singleton pattern, it seems that you will not be able to create a new object for each operation.
If you know the answer, I would appreciate your reply.
** The asyncTask that runs ffmpeg is running in a thread. And I think the point is that the ffmpeg object is created as a singleton. When the work file comes in, the same thread is still running.
-
ffmpeg write file in different thread
5 avril 2018, par hagorIn my application I recieve a stream from axis camera using rtsp streaming in ffmpeg(already implemented).
There are many examples how to write a file using ffmpeg, but i have some fundamental questions :
Does it make sense to write a file in a different thread than recieving thread ?
Can I write packets i recieve and then read them once again ?
Does it make sense to record in YUV format to save computations and data size ?
May I use std::shared_ptr instead of AVContext* ? Does it slow the programm overall ?
Thank you.
-
I use the bramp/ffmpeg-cli-wrapper of java. How to terminate the execution in the thread ?
8 mars, par Hao TanI want to use ffmpeg to achieve streaming function


First I created a thread pool


private final Map taskThreads = new ConcurrentHashMap<>();
Thread taskThread = new Thread(() -> {
 try {
 private void startTask(Device task) {
 Thread taskThread = new Thread(() -> {

 FFmpegBuilder builder = new FFmpegBuilder()
 .setInput(source) 
 .overrideOutputFiles(true)
 .addOutput(destination) 
 .setFormat("flv")
 .addExtraArgs("-c", "copy") 
 .done();

 FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);
 executor.createJob(builder).run();
 });
 taskThreads.put(task.getId(), taskThread);
 taskThread.start();
 }



stop code


public void stopTask(Integer taskId) {
 Thread taskThread = taskThreads.get(taskId);
 if (taskThread != null) {
 taskThread.interrupt(); 
 taskThreads.remove(taskId);
 
 DeviceDto task = deviceService.findById(taskId);
 if (task != null) {
 task.setIsOnline(0);
 Device device = new Device();
 BeanUtils.copyProperties(task,device);
 deviceService.update(device);
 }
 }
 }



I call stopTask and cannot terminate the ffmpeg thread


It should be
executor.createJob(builder).run();
blocked

How to solve