
Recherche avancée
Autres articles (101)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (13561)
-
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
-
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
-
How can I use ffmpeg with youtube-dl ?
18 octobre 2018, par DaniI have this "setup", but it stopped working (I did not change anything in the code) :
private Process StartFfmpeg(string URL)
{
string args = $"/C youtube-dl --ignore-errors -o - {URL} | ffmpeg -err_detect ignore_err -i pipe:0 -ac 2 -f s16le -ar 48000 pipe:1";
return Process.Start(new ProcessStartInfo
{
FileName = "cmd.exe",
Arguments = args,
UseShellExecute = false,
RedirectStandardOutput = true,
RedirectStandardError = false,
CreateNoWindow = true,
});
}(I get the stream by using
Stream stream = StartFfmpeg(URL).StandardOutput.BaseStream;
)
It just freezes. It doesn’t throw any error (in a try/catch block) and I have the latest version of ffmpeg & youtube-dl. I’ve tried using older versions with no success.
How can I get it working again ? (This is my first post, sorry if its very bad)