
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (31)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (6661)
-
Revision 44277 : Un peu mieux ... On applique le trim directement dans le squelette ...
11 juin 2018, par kent1@… — LogUn peu mieux ...
On applique le trim directement dans le squelette avec la balise #FILTRE
On recache le p à la suppression de la dernière note -
running ffmpeg command in java Process hangs in waitFor()
14 février 2021, par Mahesha MI'm running
ffmpeg
command to generate video for given images (img001.jpg, img002.jpg ...) it's creating slide.mp4, but it waits infinitely :


public class Ffmpeg {

public static void main(String[] args) throws IOException, InterruptedException {
 String path = "E:\\pics\\Santhosh\\FadeOut\\testing"; 
 String cmd = "ffmpeg -r 1/5 -i img%03d.jpg -c:v libx264 -r 30 -y -pix_fmt yuv420p slide.mp4";
 runScript (path, cmd);
}

private static boolean runScript(String path, String cmd) throws IOException, InterruptedException { 
 List<string> commands = new ArrayList<string>();
 commands.add("cmd");
 commands.add("/c");
 commands.add(cmd);
 ProcessBuilder pb = new ProcessBuilder(commands);
 pb.directory(new File(path));
 pb.redirectErrorStream(true);
 Process process = pb.start(); 
 flushInputStreamReader(process); 
 int exitCode = process.waitFor();
 return exitCode == 0;
} 
}

private static void flushInputStreamReader (Process process) throws IOException, InterruptedException {
 BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
 String line=null;
 StringBuilder s = new StringBuilder();
 while((line=input.readLine()) != null) { 
 s.append(line);
 }
 }
</string></string>



Any suggestions ?



After writing the function flushInputStreamReader, its working


-
running ffmpeg command in java Process hangs in waitFor()
9 juin 2015, par Mahesha MI’m running
ffmpeg
command to generate video for given images (img001.jpg, img002.jpg ...) it’s creating slide.mp4, but it waits infinitely :public class Ffmpeg {
public static void main(String[] args) throws IOException, InterruptedException {
String path = "E:\\pics\\Santhosh\\FadeOut\\testing";
String cmd = "ffmpeg -r 1/5 -i img%03d.jpg -c:v libx264 -r 30 -y -pix_fmt yuv420p slide.mp4";
runScript (path, cmd);
}
private static boolean runScript(String path, String cmd) throws IOException, InterruptedException {
List<string> commands = new ArrayList<string>();
commands.add("cmd");
commands.add("/c");
commands.add(cmd);
ProcessBuilder pb = new ProcessBuilder(commands);
pb.directory(new File(path));
pb.redirectErrorStream(true);
Process process = pb.start();
flushInputStreamReader(process);
int exitCode = process.waitFor();
return exitCode == 0;
}
}
private static void flushInputStreamReader (Process process) throws IOException, InterruptedException {
BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line=null;
StringBuilder s = new StringBuilder();
while((line=input.readLine()) != null) {
s.append(line);
}
}
</string></string>Any suggestions ?
After writing the function flushInputStreamReader, its working