
Recherche avancée
Autres articles (47)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (9682)
-
test_streams : Use fopen instead of flac_fopen
1er février 2016, par Erik de Castro Lopotest_streams : Use fopen instead of flac_fopen
test_streams doesn’t create/open files with non-ascii filenames,
so there’s no need in unicode support.Patch-from : lvqcl <lvqcl.mail@gmail.com>
-
Evolution #4477 (Nouveau) : Permettre l’ajout de documents en D&D sur tout formulaire editer_objet
18 avril 2020, par RastaPopoulos ♥Le but à atteindre :
Pouvoir ajouter des documents à un objet (et lors d’une création) depuis n’importe quel #FORMULAIRE_EDITER_PATATE, sans avoir besoin de blocs supplémentaires dans une colonne ou ailleurs, le formulaire devant suffire. Cela permettrait d’ajouter des fichiers dans tous les contextes possibles, que ce soit une page d’édition classique, ou dans une box, ou dans la partie publique, etc, etc.
Comment :
Permettre de glisser déposer des fichiers dans tous les textareas (que pour les textes longs donc) des formulaires d’édition d’objet (au moins ceux là, peut être permettre facilement d’avoir cette fonctionnalité dans d’autres formulaires).
Détails :
- L’utilisateur glisse un ou plusieurs fichiers dans un textearea d’un formulaire d’édition d’objet, où qu’il soit.
- Bigup téléverse ces fichiers, les ajoute en spip_documents (donc à la médiathèque), chacun ayant alors son ID SQL
- Bigup insère N modèles dans le textarea ciblé pour chacun des documents bien téléversé :
- Si au moment du déposé, le curseur était dans ce champ, Bigup insère à l’endroit du curseur, sinon à la fin du champ
- Le modèle serait par défaut, mais on pourrait imaginer que ça détecte si c’est une image, et dans ce cas automatiquement mettre pour ceux là, afin d’avoir directement l’image insérée (ça pourrait être une option de config éventuellement "Lors d’un dépôt dans un champ de texte, utiliser le modèlepour les images.")
- Bigup n’a à priori même pas à savoir à quel objet ça se réfère, en effet, quand des modèles de doc sont dans n’importe quels textes d’objet, normalement l’API va toujours lier réellement (table de liens) ces documents à l’objet en question lors de l’enregistrement. Cela permet donc normalement d’avoir ça dans les forms vides de création sans complication en plus. -
FFMPEG stream .mpg to windows pipe and display video in C#
25 septembre 2018, par Przemysławi’ve got problem with streaming mpg video to windows pipe. I wang decode video with command ffmpeg.exe to windows pipe and connect to that pipe with c# and display video on winform. I’ve tried many commands but none of them worked.
FFmpeg command :
ffmpeg -i Day Flight.mpg -f image2pipe pipe:1 > //./pipe/ffpipe
C# code :
using System;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
using System.IO.Pipes;
using System.Threading;
using System.Runtime.InteropServices;
using System.Text;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
String readLine_;
private void readThread()
{
while (true)
{
readLine_ = reader_.ReadLine();
if (readLine_ != null)
{
byte[] bytes = Encoding.Unicode.GetBytes(readLine_);
//Console.WriteLine(readLine_);
//Console.ReadLine();
var ms = new MemoryStream(bytes);
// Bitmap bm = new Bitmap(ms);
Image im = (Bitmap)((new ImageConverter()).ConvertFrom(bytes));
}
else
Console.WriteLine("empty string");
//
}
}
private NamedPipeServerStream server_;
StreamReader reader_;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
AllocConsole();
server_ = new NamedPipeServerStream("ffpipe", PipeDirection.In, 1, PipeTransmissionMode.Byte);
server_.WaitForConnection();
reader_ = new StreamReader(server_);
Thread t = new Thread(readThread);
t.Start();
}
[DllImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool AllocConsole();
}}
I can’t get image in C#, my program crashes in line
Image im = (Bitmap)((new ImageConverter()).ConvertFrom(bytes)) ;And I don’t know where I make a mistake - in ffmpeg piping or in C# program
https://image.ibb.co/eGDymp/Przechwytywanie.png
https://image.ibb.co/hWpM6p/Przechwytywanie.pngExample video :
http://samples.ffmpeg.org/MPEG2/mpegts-klv/Day%20Flight.mpg