
Recherche avancée
Autres articles (40)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (6349)
-
Write tests to check if a ffmpeg is installed
7 novembre 2018, par gldraphaelTLDR : I need a test that ensures
FooAsync()
throwsFfmpegNotFoundInPathException
ifffmpeg
is not in path.
I have a method like :
public Task FooAsync() { /* ... */ }
that throws an
FfmpegNotFoundInPathException
ifffmpeg
is not in path.
How do I go about writing tests for this ?(It’s okay if the test passes only within docker. I can selectively skip the test outside of Docker using Nate McMaster’s xunit extensions.)
For completeness,
FooAsync()
looks something like this :public async Task FooAsync()
{
try
{
new Cli("ffmpeg")
.SetArguments(args)
.EnableStandardErrorValidation(false)
.ExecuteAsync();
}
catch (Exception e)
{
// ...
throw new FfmpegNotFoundInPathException(e);
}
}(
Cli
is from the CliWrap package.) -
Anomalie #4194 (Nouveau) : Rendre spip_loader compatible php 7.2
17 octobre 2018, par Franck DHello :-)
En faisant une série de test https://www.mail-archive.com/spip-zone@rezo.net/msg46352.html
Cela m’a fait découvrir que spip_loader avait dans 2 cas chez ovh des problèmes (donc un grave).Pour info, pour le voir, il faut obligatoirement faire une nouvelle installation ! Car sans quoi spip_loader fonctionne si un spip est déjà en place !
Dans le premier cas, spip_loader ne fonctionne pas, dans le deuxième, l’installation fonctionne quand même !Environnement : stable
Version PHP 7.2
Moteur:phpcgi
Mode : développementWarning : Use of undefined constant _DIR_TMP - assumed ’_DIR_TMP’ (this will throw an Error in a future version of PHP) in /.../pclzip.php on line 28
Après avoir fait un clique sur "Commencer l’installation"Warning : Use of undefined constant _DIR_TMP - assumed ’_DIR_TMP’ (this will throw an Error in a future version of PHP) in /.../pclzip.php on line 28
Warning : Cannot modify header information - headers already sent by (output started at /.../pclzip.php:28) in /.../spip_loader.php on line 1228Environnement : stable
Version PHP 7.2
Moteur:php
Mode : développementWarning : Use of undefined constant _DIR_TMP - assumed ’_DIR_TMP’ (this will throw an Error in a future version of PHP) in /.../pclzip.php on line 28
Après avoir fait un clique sur "Commencer l’installation"Warning : Use of undefined constant _DIR_TMP - assumed ’_DIR_TMP’ (this will throw an Error in a future version of PHP) in /.../pclzip.php on line 28
Franck
-
Windows Pipes STDIN and STDOUT Parent Child proc communication IPC FFMPEG
15 octobre 2018, par Evren BingølI am writing a simple WINDOWS app which demonstrates piping,
I pass byte size data down to child proc, increment the value and send the char size data back to parent and loop until it reaches MAX_CHAR
Pretty much demonstration of "i++" with IPC.Parent Process
while(i<256){
bSuccess = WriteFile(g_hChildStd_IN_Wr, chBuf, sizeof(char), &dwWritten, NULL);
bSuccess = ReadFile(g_hChildStd_OUT_Rd, chBuf, sizeof(char), &dwRead, NULL); // IF THERE IS NO FFLUSH IT BLOCKS
}And in Child
while (i<256){
byte data=0;
fread(&data, sizeof(char), 1, stdout);
data++;
fwrite(&data, sizeof(char), 1, stdout);
//fflush(stdout); IF I DO NOT HAVE THIS PARENT BLOCKS ON READ
}First of all if I do not FFLUSH child proc stdout, the parent blocks on reading child’s stdout.
How can one run this code without having to fflush child’s stdout.
Closing the pipe after child’s first write is not an option as it is in a loop and needs to execute 256 times.
more generically I want the child to write N bytes to parent, parent read that N bytes do something and write back to child another N bytes and child does something with that N bytes and write to parent N bytes. This happens M times.
thing is I can not use fflush because my final goal is to use a child process that is not implemented by me.
My final goal is to pipe data to FFMPEG encode the data and read back from the stdin and do this over and over again with out having to fork a new FFMPEG process for each image frame but rather fork one instance of FFMPEG and pipe data in and read data out from it. And since I did not implement ffmpeg and I can not change the source code.
thanks
Thanks