
Recherche avancée
Autres articles (12)
-
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
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 (...)
Sur d’autres sites (4371)
-
av_find_stream_info works OK with file, not with pipe
14 décembre 2016, par AlizaI have the following code :
av_register_all();
pFormatCtx = avformat_alloc_context();
const char* input = "pipe:";
AVInputFormat* iFormat = av_find_input_format("mpegts");
if ( avformat_open_input(&pFormatCtx, input, iFormat, NULL) != 0 )
return -1;
int res = av_find_stream_info(pFormatCtx);when my input is a regular file, this works nicely and pFormatCtx is populated with the streams in the file. However, when i set input to "pipe :", av_find_stream_info returns with -1.
I am using the same file and piping it by running
cat mpeg.ts | myApp
Any ideas ?
Thanks,
Aliza -
ftp upload then loop
23 juillet 2012, par thevoipmanI have a minor bash script loop I'm trying to learn and accomplish but it's giving me a hard time to comprehend with all the readings I've done.
I am uploading to a ftp server, then I want to check to see if the upload went through successfully by using wget spider method. If it returns OK then we're good, if not then I want to redo the ftp upload once more.
The code I have below are based on my research and learning from here. If I could be doing this better, please help me revise it so I can learn from it.
Thanks again in advance :
for ((i = 0 ; i < 1 ; i++ ));
do
wget_output=$(wget -q --spider "http://$FTP_HOST/test.jpg")
if [ $? -ne 0 ];
then
ftp -in $FTP_HOST <<endftp user="user" binary="binary" put="put" bye="bye" endftp="endftp" else="else" echo="echo" code="code" fi="fi" done="done"></endftp>code>My errors when executing is :
line 28: syntax error: unexpected end of file
-
Revision 7050074756 : Make the api behavior conform to api spec. When no more data is available, vpx_
1er août 2014, par Hangyu KuangChanged Paths :
Modify /test/decode_test_driver.cc
Modify /vp8/vp8_dx_iface.c
Modify /vp9/vp9_dx_iface.c
Make the api behavior conform to api spec.When no more data is available, vpx_codec_decode should
be called with NULL as data and 0 as data_sz.vpx_codec_get_frame iterates over a list of the frames
available for display. The iterator storage should be initialized
to NULL to start the iteration. Iteration is complete when this
function returns NULL.Also change the unit test to conform to the api spec.
Change-Id : I4b258b309f5df3d37d10c82f01492c0394181c2a