
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (105)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...)
Sur d’autres sites (10579)
-
vulkan_decode : use the correct queue family for decoding ops
14 août 2024, par Lynne -
ASP.NET MVC - Converting Video Format From Email Attachment Scanner
24 juillet 2018, par BenHaywardWe have a Quartz scheduler that scans the company email account every 60 seconds, and will process those emails accordingly. Any attachments are stored in a byte array.
Video attachments need to be converted to an MP4 and then back to a byte array to be stored in the DB ; I am trying to use FFMPEG (fflib) to complete this, however I’m having trouble figuring out how it can be done with a byte array as the source - the company have stated that this conversion must be done before it enters the database.
Is the conversion of a byte array possible using the Process Class to access the FFMPEG CLI ?
Here is the code I currently have, just using local file locations (using fflib ffmpeg library).
public IList<documentstoreattachment> AddDocumentsToDocumentStore(IList<fileattachment> documentsToStore, Guid personId, IList<documentattributedto> documentAttributes)
{
var storedDocuments = new List<documentstoreattachment>();
foreach (var documentToStore in documentsToStore)
{
try
{
if (IsExtensionAllowed(documentToStore.AttachmentName))
{
if (documentToStore.MimeType == "mpeg")
{
Job2Convert job = new Job2Convert()
{
pszSrcFile = @"..\..\Amigo Loans 2018 Advert MPG.mpg",
pszDstFile = @"C:\Users\ben.hayward\Desktop\Amigo Loans 2018 Advert MPG.mp4",
pszDstFormat = "mp4",
pszAudioCodec = "aac",
nAudioChannels = 2,
nAudioBitrate = -1,
nAudioRate = -1,
pszVideoCodec = "h264",
nVideoBitrate = -1,
nVideoFrameRate = -1,
nVideoFrameWidth = -1,
nVideoFrameHeight = -1
};
_sut.ConvertFile(job);
}
storedDocuments.Add(AddDocumentToDocumentStore(documentToStore.AttachmentName, documentToStore.ByteArray, documentToStore.MimeType, personId, documentAttributes));
}
else
{
Logger.WarnFormat("AddDocumentsToDocumentStore: File extension not allowed for file name: {0}, person id: {1}", documentToStore.AttachmentName, personId);
}
}
catch (Exception e)
{
#region Error
Logger.Error(String.Format("There was a problem saving the document to the document store. The file name was {0}, person id: {1}",
documentToStore.AttachmentName, personId), e);
#endregion
}
}
return storedDocuments;
}
</documentstoreattachment></documentattributedto></fileattachment></documentstoreattachment>Thank you in advance.
-
Revision 49599 : correction du lien vers la doc google+1 sur contrib ... c’est google-1 !
14 juillet 2011, par yaquoi@… — Logcorrection du lien vers la doc google+1 sur contrib ... c’est google-1 !