
Recherche avancée
Médias (1)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (27)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
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 -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (4352)
-
avcodec/hevc_ps : fix storage type for some PPS multilayer extension fields
17 avril 2023, par James Almer -
"Output stream closed" when streaming PassThrough stream to AWS using @aws-sdk/lib-storage
5 avril 2023, par cjdI am attempting to stream a PassThrough stream directly to S3 using
@aws-sdk/lib-storage
.

My upload function is :


const uploadStreamToS3 = () => {
 const Key = 'test.mp4';
 const Bucket = 'bucket-name';
 const stream = new PassThrough();
 const upload = new Upload({
 client: s3Client,
 params: { Bucket, Key, Body: stream },
 tags: [], // optional tags
 queueSize: 4, // optional concurrency configuration
 partSize: 1024 * 1024 * 5, // optional size of each part, in bytes, at least 5MB
 leavePartsOnError: false // optional manually handle dropped parts
 });
 return {
 stream,
 uploadComplete: upload.done(),
 upload
 };
};



I am piping from
ffmpeg
directly to the PassThrough stream :

ffmpegInstance
 .addOutputOptions(
 '-movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov'
 )
 .format('mp4')
 .pipe(stream, { end: true });



When I run this locally, everything works.


I am using a container lambda function with Docker.


If I run the Docker container locally, everything works as expected. If I run the same code on Lambda, I get the following error
Output stream is closed
.

One work around is to write the file to the Lambda
tmp
folder using a writeStream and once the file is written I can stream the file to S3 using a readStream as theBody
ofnew Upload
. However, I would like to stream directly to S3 and not create this temporary file in Lambda.

Is this possible ? Is the issue with using a PassThrough stream in the Body for S3 ?


-
fftools/ffmpeg_mux_init : stop using OptionsContext as storage in copy_metadata()
18 octobre 2022, par Anton Khirnov