
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (82)
-
Emballe Médias : Mettre en ligne simplement des documents
29 octobre 2010, parLe plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...) -
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 (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (4622)
-
ffmpeg watermark from java Runtime.exec cannot find output
10 décembre 2013, par RohiI'm having a problem in sending a ffmpeg command to add a watermark to my video from Java using Runtime.exec().
The strange thing is that the same command is working perfectly from terminal....
Any idea what the issue could be ?
this is the commandffmpeg -i /home/mydir/inputvideo.mp4 -vf "movie=/home/mydir/watermarklogo.png [wm]; [in][wm] overlay=10:10 [out]" /home/mydir/outputvideo.mp4
and this is the Java code (same as above, just wrapped in the exec code, and escaped characters
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("ffmpeg -i /home/mydir/inputvideo.mp4 -vf \"movie=/home/mydir/watermarklogo.png [wm]; [in][wm] overlay=10:10 [out]\" /home/mydir/outputvideo.mp4");
InputStream stderr = proc.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
while ( (line = br.readLine()) != null)
System.out.println(line);
int exitVal = proc.waitFor();
System.out.println("Process exitValue: " + exitVal);exit code is always 1 when running this.... this is the full output
ffmpeg version 0.10.9-7:0.10.9-1~saucy1 Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 18 2013 17:40:10 with gcc 4.8.1
configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='7:0.10.9-1~saucy1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rohif/oshi.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.59.106
Duration: 00:00:48.13, start: 0.000000, bitrate: 2482 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2362 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 117 kb/s
Metadata:
handler_name :
[NULL @ 0x18fb9a0] Unable to find a suitable output format for '[wm];'
[wm];: Invalid argument
Process exitValue: 1 -
Evolution #3926 : Remplacement de safehtml par le plug htmlpurifier ou autre
17 août 2018, par Guillaume FahrnerContent de voir que ce patch règle également des problèmes de mise en forme (je n’observe pas ce pb @home), je m’explique :
Dans mon post précédent, dans le contenu du fichier plugins-dist/textwheel/wheels/spip/echappe-js.yaml donné entre les balises
< pre>< code class="yaml">< / code>< / pre>
certains caractères "<" et ">" ont été encodé (mais pas d’autres (!) ) alors qu’à l’origine cette partie de mon post n’en contient aucun.
NB : essayez de mettre en forme avec
la simple ligne de HTML donné dans ce post est ici impossible (les < > sont encodé alors que dans un < code >), une nouvelle fois je n'ai pas ce pb @home
-
how to resolve Linking error undefined reference to symbol 'avcodec_open2@@LIBAVCODEC_54
20 septembre 2016, par TobStaI’m getting the following linking error
Linking CXX executable test_decode
/usr/bin/ld: /home/t/NetBeansProjects/FaceCept3D/WrapFFMPEG/libWrapFFMPEG.a(DecodeFFMPEG.cpp.o): undefined reference to symbol 'avcodec_open2@@LIBAVCODEC_54'
//usr/lib/x86_64-linux-gnu/libavcodec.so.54: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [test_decode] Error 1
make[1]: *** [CMakeFiles/test_decode.dir/all] Error 2
make: *** [all] Error 2cmake . && make
works for WrapFFMPEG, but for test_decode, i get the linking error when buildingMy CMakeLists.txt for test_decode :
cmake_minimum_required (VERSION 2.8)
#cmake_policy(SET CMP0003 OLD)
# Add executable
add_executable(test_decode test_decode.cpp)
find_package(OpenCV REQUIRED )
message(STATUS ${OPENCV_INCLUDE_DIRS})
include_directories (${OPENCV_INCLUDE_DIRS}, "/home/t/NetBeansProjects/FaceCept3D/WrapFFMPEG")
find_library (WrapFFMPEG WrapFFMPEG "/home/t/NetBeansProjects/FaceCept3D/WrapFFMPEG")
message(STATUS ${WrapFFMPEG})
link_directories( ${WrapFFMPEG} )
# Link to the WrapFFMPEG library
target_link_libraries(test_decode LINK_PUBLIC ${OpenCV_LIBRARIES} ${WrapFFMPEG})
add_custom_command(TARGET test_decode POST_BUILD COMMAND xcopy /i /y \"${FFmpeg_RUNTIME_LIBS}\" \"${CMAKE_CURRENT_BINARY_DIR}\")and my CMakeLists.txt for WrapFFMPEG :
cmake_minimum_required (VERSION 2.8)
file(GLOB sources *.cpp *.h)
list(APPEND CMAKE_MODULE_PATH "/home/t/NetBeansProjects/FaceCept3D/WrapFFMPEG")
find_package( avformat REQUIRED)
find_package( avcodec REQUIRED)
find_package( avutil REQUIRED )
find_package( swscale REQUIRED )
include_directories(
${AVFORMAT_INCLUDE_DIR}
${AVCODEC_INCLUDE_DIR}
${AVUTIL_INCLUDE_DIR}
${SWSCALE_INCLUDE_DIR}
)
set(
FFMPEG_LIBRARIES
${AVFORMAT_LIBRARY}
${AVCODEC_LIBRARY}
${AVUTIL_LIBRARY}
${SWSCALE_LIBRARY}
)
add_library(WrapFFMPEG ${sources})
#add_library(WrapFFMPEG DecodeFFMPEG.cpp DecodeFFMPEG.h )
set(FFMPEG_INCLUDE_DIR "/home/t/NetBeansProjects/FaceCept3D/WrapFFMPEG/ffmpeg")
find_library (FFMPEG FFMPEG "/home/t/NetBeansProjects/FaceCept3D/WrapFFMPEG/ffmpeg")
message(STATUS ${FFMPEG_LIBRARIES})
message(STATUS ${FFMPEG})
include_directories($(FFMPEG_INCLUDE_DIR}))
message(STATUS ${FFMPEG_INCLUDE_DIR})
# Make sure the compiler can find include files for our WrapFFMPEG library
# when other libraries or executables link to WrapFFMPEG
target_include_directories (WrapFFMPEG PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(WrapFFMPEG avutil avcodec avformat swscale)resulting in link.txt :
/usr/bin/ar cq libWrapFFMPEG.a CMakeFiles/WrapFFMPEG.dir/DecodeFFMPEG.cpp.o CMakeFiles/WrapFFMPEG.dir/Tutorial.cpp.o /usr/bin/ranlib libWrapFFMPEG.a
did CMake not find ffmpeg ?