
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (112)
-
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 ) (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (11879)
-
java.io.IOException : Cannot run program "usr/bin/ffmpeg " : error=2, No such file or directory
8 juin 2021, par Madan MadanI am experiencing errors when executing ffmpeg command from java program in Ubuntu server. When I execute in putty it executes successfully but from java it gives me the exceptions of



java.io.IOException: Cannot run program "/usr/bin/ffmpeg ": 
error=2, No such file or directory




My Code below :



public String convert3gpTomp4(File contentFile, String filename) {
 String[] cmd = new String[6];
 filename = StringUtils.substringBefore(filename, "."); 
 cmd[0] = "/usr/bin/ffmpeg ";
 cmd[1] = "-y ";
 cmd[2] = "-i ";
 cmd[3] = contentFile.getPath();
 cmd[4] = " -acodec copy ";
 String myfilename = filename +"eg.mp4";
 cmd[5] = contentFile.getParent() + "/" + myfilename; 

 if (execute(cmd)){
 return myfilename;
 }else{ 
 return null;
 }

 }
}

public boolean execute(String[] cmd){
 try{
 Runtime rt= Runtime.getRuntime();

 Process proc = rt.exec(cmd);

 StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR");
 StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT");
 errorGobbler.start();
 outputGobbler.start();

 int exitVal = proc.waitFor();
 String sb = outputGobbler.sb.toString();
 String eb = errorGobbler.sb.toString();

 System.out.println("Command Exceute Exit value: " + exitVal);

 proc.destroy();

 return true;
 }
 catch(java.io.IOException e ){System.out.println("IOException "+e);e.printStackTrace();}
 catch(java.lang.InterruptedException e){}

 return false;

}




Output of ffmpeg command :



/usr/bin/ffmpeg -y -i /mydata/clip1.3gp -acodec copy /mydata/clip1eg.mp4




When I run above command in putty , it executes successfully but from Java program.



In the program, I also tried with the following but no success.



usr/bin/ffmpeg
/bin/ffmpeg
ffmpeg
/root/usr/bin/ffmpeg




Please let me know where I am doing wrong.



Thanks,


-
ffmpeg concat two videos with different sizes encounter "do not match" error
1er juillet 2019, par baojieqhI’m trying to concat 4 mp4 files. I’m using the command below but not able to concat
ffmpeg -i L00.mp4 -i L01.mp4 \
-filter_complex "[0:v] [0:a] [1:v] [1:a] concat=n=2:v=1:a=1 [v] [a]" \
-map "[v]" -map "[a]" output.mp4Getting this error :
Input link in1:v0 parameters (size 1150x722, SAR 1:1) do not match the corresponding output link in0:v0 parameters (1158x690, SAR 1:1)
This command from this post
ffmpeg -i L00.mp4 -i L01.mp4 -filter_complex \
"[0:v]scale=1158:722:force_original_aspect_ratio=decrease,pad=1158:722:(ow-iw)/2:(oh-ih)/2[v0]; \
[1:v]scale=1158:722:force_original_aspect_ratio=decrease,pad=1158:722:(ow-iw)/2:(oh-ih)/2[v1]; \
[v0][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a]" \
-map "[v]" -map "[a]" -c:v libx264 -c:a aac -movflags +faststart output.mp4getting this error :
Filter pad has an unconnected output
the dimensions of L00.mp4 is 1158 × 690, L01.mp4 is 1150 × 722.
how to fix this ?
-
"Error : FFMPEG not found" but FFMPEG should be installed - Discord Bot
13 juillet 2019, par IAmAzeSo I’ve been working on a Discord Music bot and I need FFMPEG, I just cant seem to find a working build.
I already tried to install it via npm, choco, git and I used the installer from ffmpeg’s website. None of these worked.
This is my Error :
Error: FFMPEG not found
at Function.selectFfmpegCommand (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\prism-media\src\transcoders\ffmpeg\Ffmpeg.js:46:13)
at new FfmpegTranscoder (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\prism-media\src\transcoders\ffmpeg\Ffmpeg.js:7:37)
at new MediaTranscoder (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\prism-media\src\transcoders\MediaTranscoder.js:10:19)
at new Prism (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\prism-media\src\Prism.js:5:23)
at new VoiceConnection (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\discord.js\src\client\voice\VoiceConnection.js:46:18)
at Promise (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:63:22)
at new Promise (<anonymous>)
at ClientVoiceManager.joinChannel (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:45:12)
at VoiceChannel.join (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\discord.js\src\structures\VoiceChannel.js:130:30)
at Client.bot.on (C:\Users\MauSc\Desktop\CrafterMusic - JS\index.js:50:76)
</anonymous>Edit : I should probably point out that Im an absolute beginner and have difficulties finding errors on my own.