
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (111)
-
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (5683)
-
log : allow color highlighting in Cygwin’s mintty
4 avril 2014, par James Darnleylog : allow color highlighting in Cygwin’s mintty
Configure will detect the availability of the Windows’ console functions and set
HAVE_SETCONSOLETEXTATTRIBUTE. Meaning av_log will use those functions to
control colours. When ffmpeg is run in Cygwin’s mintty terminal emulator it
will not use colour highlighting in this case.Mintty responds to the usual escape code colours (it even supports 256 colours).
Windows’ cmd.exe does not. Fortunately it seems that Cygwin’s emulation layer
now translates the basic 16 colours into Windows’ Console command functions.That means that we can have av_log use the standard colour commands and let
ffmpeg print colours in both mintty and cmd.Signed-off-by : Michael Niedermayer <michaelni@gmx.at>
-
Make sure CMake build files end up in release tarball
29 septembre 2019, par Erik de Castro LopoMake sure CMake build files end up in release tarball
- [DH] Makefile.am
- [DH] doc/Makefile.am
- [DH] doc/html/Makefile.am
- [DH] doc/html/images/Makefile.am
- [DH] examples/Makefile.am
- [DH] examples/c/Makefile.am
- [DH] examples/c/decode/file/Makefile.am
- [DH] examples/c/encode/file/Makefile.am
- [DH] examples/cpp/Makefile.am
- [DH] examples/cpp/decode/file/Makefile.am
- [DH] examples/cpp/encode/file/Makefile.am
- [DH] microbench/Makefile.am
- [DH] src/Makefile.am
- [DH] src/flac/Makefile.am
- [DH] src/libFLAC++/Makefile.am
- [DH] src/libFLAC/Makefile.am
- [DH] src/libFLAC/ia32/Makefile.am
- [DH] src/metaflac/Makefile.am
- [DH] src/plugin_common/Makefile.am
- [DH] src/plugin_xmms/Makefile.am
- [DH] src/share/Makefile.am
- [DH] src/test_grabbag/Makefile.am
- [DH] src/test_grabbag/cuesheet/Makefile.am
- [DH] src/test_grabbag/picture/Makefile.am
- [DH] src/test_libFLAC++/Makefile.am
- [DH] src/test_libFLAC/Makefile.am
- [DH] src/test_libs_common/Makefile.am
- [DH] src/test_seeking/Makefile.am
- [DH] src/test_streams/Makefile.am
- [DH] src/utils/Makefile.am
- [DH] src/utils/flacdiff/Makefile.am
- [DH] src/utils/flactimer/Makefile.am
- [DH] test/Makefile.am
-
ffmpeg ProcessBuilder No such file or directory
24 avril 2020, par silentsudoI am trying to get media duration using ffmpeg command from a java program. I am calling this method from within spring boot application.
I am using
ProcessBuilder
.


File object is valid and exists for privacy I have replaced file path in error logs.



My Code is as below :



private String getMediaDuration(File file) {
 final String command = "/usr/bin/ffmpeg -version";//-i " + file.getAbsolutePath() + " 2>&1 | grep Duration | cut -c 13-20";
 try {
 ProcessBuilder builder = new ProcessBuilder("/usr/bin/ffmpeg",
 "-version");
 builder.directory(file.getParentFile());

 System.out.println("Directory : " + builder.directory().exists());
 System.out.println("Directory : " + builder.directory().getAbsolutePath());
 final Process process = builder.start();
 final InputStream is = process.getInputStream();
 final InputStreamReader isr = new InputStreamReader(is);
 final BufferedReader br = new BufferedReader(isr);
 String line;
 while ((line = br.readLine()) != null) {
 System.out.println(line);
 }
 return line;
 } catch (Exception e) {
 e.printStackTrace();
 }
 return null;
 }




Unfortunately nothing seems to be working
Error below :



java.io.IOException: Cannot run program "/usr/bin/ffmpeg -version" (in directory "/abc/xyz"): error=2, No such file or directory
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
 at ....getMediaDuration(FFmpegRunner.java:208)
 at ....ffmpegprocessor.FFmpegRunner.run(FFmpegRunner.java:61)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: error=2, No such file or directory
 at java.lang.UNIXProcess.forkAndExec(Native Method)
 at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
 at java.lang.ProcessImpl.start(ProcessImpl.java:134)
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
 ... 5 more
</init>



Output for
whereis ffmpeg



ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz




Please help me understand where it is going wrong. Thank you.