
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (61)
-
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
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. -
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 (6409)
-
FFmpeg version 4.0.1 cannot find h264 encoder
3 juillet 2018, par CristianoToday I updated FFmpeg to version 4.0.1 and my existing project cannot compile anymore. In particular
avcodec_find_encoder(AV_CODEC_ID_H264)
always returns null. I tried to reinstall the libx264 but nothing changed.
I also tried to callavcodec_find_encoder_by_name("libx264")
and it works, butavcodec_open2()
returns error. -
FFmpeg version 4.0.1 cannot find h264 encoder
3 juillet 2018, par CristianoToday I updated FFmpeg to version 4.0.1 and my existing project cannot compile anymore. In particular
avcodec_find_encoder(AV_CODEC_ID_H264)
always returns null. I tried to reinstall the libx264 but nothing changed.
I also tried to callavcodec_find_encoder_by_name("libx264")
and it works, butavcodec_open2()
returns error. -
"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 ?