
Recherche avancée
Autres articles (111)
-
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 (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (8722)
-
FFMPEG inside conda shell , running c++
20 novembre 2018, par albert1905I’m trying to run a c++ program that depends on ffmpeg library.
Important to mention, I’m working on a distance computer, so I don’t have the entire permissions.
So I created a conda shell, download ffmpeg-dev, so far so good.
I’m trying to run the c++ I want and he doesn’t recognize the "libav*" libraries (which are part of ffmpeg).
I read that the libraries suppose to sit in "/usr/include" (or soemthing like that), in order that# include <>
will recognize the library, but I don’t have permissions to write to this directory, so I had to think about something else, so I copied all the libav directories from "anconda3/include" to my dir and manually changed all the #includes to the realpath.
But now I’m getting this error :
g++ mpegflow.cpp -o mpegflow -O3 -D__STDC_CONSTANT_MACROS -lswscale
-lavdevice -lavformat -lavcodec -lswresample -lavutil -lpthread -lbz2 -lz -lc -lrt -Idependencies/include -Ldependencies/lib /nfs/iil/itools/em64t_SLES11/pkgs/gcc/4.7.2/.bin/../lib64/gcc/x86_64-suse-linux/4.7.2/../../../../x86_64-suse-linux/bin/ld :
cannot find -lavdevice collect2 : error : ld returned 1 exit status
make : *** [mpegflow] Error 1I understand the problem, But I have no Idea how to solve it.
I’ll be happy for your help.
Thanks. -
How to ensure plt.savefig saves multiple images instead of one ?
18 mars 2018, par NatalieI’m trying to save images after for each iteration to show how my neural network is learning.
for iterations in range(1,1000):
model.fit(x_train,
y_train,
batch_size=20,
epochs=1,
verbose=2)
predictions = model.predict(X)
plt.plot(X,predictions,'o')
plt.plot(r, morse(r,De,Re,alpha))
plt.xlabel(r'$r$') # internuclear separation distance
plt.ylabel(r'$V(r)$') # morse potential energy
plt.savefig('myfig'+str(iterations))
plt.clf()Originally, I was able to save every image, however, it now only saves the last iteration image only. I wondered how I might be able to solve this issue ?
Also, related the first question : using the images I’m saving, I’m trying to merge all the images together into a quick movie to show the training process. I’ve been using ffmpeg (see image below for syntax error), but I keep getting syntax errors. Could anyone guide me through what I might be doing wrong ? ffmpeg syntax error I’m getting
Thanks in advance for helping me out - completely new to machine learning but using it for a university project, so apologies for my lack of understanding/mistakes !!
-
Unable to find a suitable output format while cutting video
22 juillet 2018, par Java AndroidI am using below command to cut video-
String complexCommand = new String[]{"-y", "-i", yourRealPath, "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-c", "copy", filePath};
I got below error -
"ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n
built with gcc 4.8 (GCC)\n configuration : —target-os=linux
—cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
—arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
—enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
-Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
54. 0.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/Download/file3gpp.3gpp’ :\n Metadata :\n
major_brand : 3gp4\n minor_version : 0\n
compatible_brands : isom3gp4\n creation_time : 2018-04-09
12:04:29\n com.android.version : 7.1.1\n Duration : 00:00:04.88,
start : 0.000000, bitrate : 1425 kb/s\n Stream #0:0(eng) : Audio : aac
(LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 96 kb/s (default)\n
Metadata :\n creation_time : 2018-04-09 12:04:29\n
handler_name : SoundHandle\n[NULL @ 0xf622a600] Unable to find a
suitable output format for
’/storage/emulated/0/Movies/cut_video.3gpp’\n/storage/emulated/0/Movies/cut_video.3gpp :
Invalid argument\n"Why am i getting this error and how can i resolve it ?