
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (81)
-
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 -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (8636)
-
How to enable third party login providers in .NET with sessionState set to SQL Server ?
12 novembre 2015, par RodMy requirements are to create a webapp allowing third party logins (facebook specifically) and allow users to upload and share video.
My development environment is :
- Visual Studio Express 2013 for Web
- SQL Server 2012
- ASP.NET MVC project using C# deployed to Azure
I’ve found invaluable information on Stack Overflow for using oAuth2 with third party login providers, and for enabling SQL Server session state, but what I would like to know is how can I use both of them together ?
I originally started using SQL Server session state because the site loses session when a video is saved on the server, converted using NReco videoconverter, then saved to blob storage. However this broke my third party logins which need sessionState set to OFF.
I tried accounting for this by converting the video STREAM with FFMpeg, and then saving directly to blob storage, but I still lose session.
Any help would be appreciated on the topics of : Why am I losing session with NReco.VideoConverter ? How to use third party logins with sessionState set to SQL Server ?
[Get Uploaded Video][1] [convert media][2]
[1] : http://i.stack.imgur.com/ubuAj.jpg [2] :
http://i.stack.imgur.com/LxV1U.jpg -
Transform video and image with multer-s3-transform
6 mai 2022, par Nguyen Hoang VuI'm trying to upload media to S3 with multer-s3-transform
Here is my endpoint :


router.post(
 ROUTE_CONSTANT.PRODUCT_IMAGES,
 validation.verifyProductExisted,
 uploadImage.single('image'),
 uploadProductImage
 );



Here is my multer-s3-transform implementation :


const uploadImage = multer({
 fileFilter: imageTypeFilter,
 limits: {
 fileSize: configEnv.mediaFileSizeLimit * 1024 * 1024,
 },
 storage: multerS3({
 s3,
 bucket: configEnv.productMediaBucket,
 acl: 'public-read',
 contentType: multerS3.AUTO_CONTENT_TYPE,
 shouldTransform(
 req: Request,
 file: Express.Multer.File,
 cb: (arg0: any, arg1: boolean) => void
 ) {
 cb(null, true);
 },
 transforms: [
 {
 id: 'original',
 key(
 req: Request,
 file: Express.Multer.File,
 cb: (arg0: any, arg1: string) => void
 ) {
 const fileName = `${req.params.id}-${new Date().getTime()}`;
 if (imageMimeType.includes(file.mimetype)) {
 cb(null, `images/${fileName}.jpg`);
 } else {
 cb(null, `videos/${fileName}.mp4`);
 }
 },
 transform(req: Request, file: Express.Multer.File, cb: any) {
 if (imageMimeType.includes(file.mimetype)) {
 cb(null, sharp().jpeg());
 } else {
 cb(
 null,
 ffmpeg()
 .videoCodec('libx264')
 .audioCodec('aac')
 .outputFormat('mp4')
 .outputOptions(['-movflags frag_keyframe+empty_moov'])
 );
 }
 },
 },
 ],
 }),
});



The image's part is working fine with Sharp, now I want to use fluent-ffmpeg to transform the video as well. I still can not figure out how to make the ffmpeg return a ReadableStream or Buffer so that it can be uploaded to S3 due to this code of multer-s3-transform :


storage.getTransforms[i].transform(req, file, function (err, piper) {
 if (err) return cb(err);
 
 var upload = storage.s3.upload({
 Bucket: opts.bucket,
 Key: key,
 ACL: opts.acl,
 CacheControl: opts.cacheControl,
 ContentType: opts.contentType,
 Metadata: opts.metadata,
 StorageClass: opts.storageClass,
 ServerSideEncryption: opts.serverSideEncryption,
 SSEKMSKeyId: opts.sseKmsKeyId,
 Body: (opts.replacementStream || file.stream).pipe(piper),
 });



Many thanks


-
Invalid argument Unable to print text using drawtext using ffmpeg
1er octobre 2023, par Amjad KhanI am trying to add text and time stamp on video but not able to print the simple text on it.


String[] complexCommand = {"-f", "3gp", "-i", videoPath, "-s", height + "x" + width, "-r",
 "17", "drawtext=fontfile='file://android_asset/font_eight.ttf':fontsize=20:text='test':x=10:y=100",
 "-vcodec", "libx264", "-vb", "2000k", "-preset", "fast", "-f", "3gp", dir.getAbsolutePath() + "/out.3gp"};
 
 ffmpeg -f 3gp -i /storage/emulated/0/DCIM/Camera/VID_20171211_105946.3gp -s 1920x1080
 -r 17 drawtext='fontfile=file://android_asset/font_eight.ttf:fontsize=20:text=test:x=10:y=100 
-vcodec libx264 -vb 2000k -preset fast -f 3gp /storage/emulated/0/Pictures/Video/out.3gp 



— Edited Question ---


Error :


Fontconfig error : Cannot load default config file


[Parsed_drawtext_0 @ 0xf5ba0730] impossible to init fontconfig


[AVFilterGraph @ 0xf5b89040] Error initializing filter 'drawtext' with args 'fontfile=file ://android_asset/font_eight.ttf:fontsize=32:text=test:fontcolor=white:x=0:y=0'


Error opening filters !


Same command runs on windows with no error, But when I converted it for mobile device and tested getting error of font-path.