
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (85)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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
Sur d’autres sites (12261)
-
Struggling getting FFMPEG to work on Lambda function (Serverless Framework)
3 juin 2022, par Red VicI've been trying to get FFMPEG to work on my serverless framework for hours and I can't get to grasp how all this should work.


This is my JavaScript code in the handler (just for testing purposes) :


require("dotenv").config();

const ffmpegSync = (url) => {
 const ffmpeg = require("fluent-ffmpeg");
 ffmpeg.setFfprobePath("/opt/ffmpeg-layer/ffprobe");
 ffmpeg.setFfmpegPath("/opt/ffmpeg-layer/ffmpeg")

 return new Promise((resolve, reject) => {
 ffmpeg.ffprobe(url, async (err, metadata) => {
 if (err) {
 resolve(err);
 }
 console.log(metadata);
 resolve(metadata);
 });
 });
};

const ffmpegTeller = async (e, context) => {
 const AWS = require("aws-sdk");

 const s3 = new AWS.S3();
 AWS.config.update({
 accessKeyId: process.env.AWS_ACCESS_KEY,
 secretAccessKey: process.env.AWS_SECRET_KEY,
 region: "us-east-1",
 });

 const sourceBucket = e["Records"][0]["s3"]["bucket"]["name"];
 const sourceKey = e["Records"][0]["s3"]["object"]["key"];
 const signedUrlExpireSeconds = 60 * 5;

 const url = s3.getSignedUrl("getObject", {
 Bucket: sourceBucket,
 Key: sourceKey,
 Expires: signedUrlExpireSeconds,
 });

 await ffmpegSync(url).then((data) => {
 console.log(data);
 return {
 body: JSON.stringify(data),
 statusCode: 200,
 };
 });
};

module.exports = {
 ffmpegTeller,
};



serverless.yaml :


service: my-ffmpeg-api
frameworkVersion: '3'

provider:
 name: aws
 runtime: nodejs14.x
 region: us-east-1

functions:
 ffmpegTeller:
 handler: handler.ffmpegTeller
 events: 
 - s3:
 bucket: sourceBucket
 event: s3:ObjectCreated:*



package.json


{
 "dependencies": {
 "dotenv": "^16.0.1",
 "fluent-ffmpeg": "^2.1.2"
 }
}



The error I'm getting on CloudWatch when trying to use FFprobe



This is the view on the Lambda function page on AWS :




I'd really appreciate some help. I'm really going mad. Thanks in advance.


-
video rotation with ffmpeg doesn't work
29 juillet 2013, par user737486I'm trying to rotate video using ffmpeg. The original video is rotated 270°. When I run the following command :
ffmpeg -y -threads 4 -i IMG_3290.MOV -vcodec libx264 -preset faster -s 568x320 \
-vf "transpose=2" -strict -2 -b 5000k -acodec aac -ac 1 -ar 16000 -ab 32000 \
IMG_3290.MP4I got no error, but the output video is still rotated and contains the tag
rotate: 270
. -
Why does shell_exec into variable using PHP not work ? [on hold]
13 août 2019, par omega1I am trying to run this but the variable
$new
is empty when I run it. When I run the ffmpeg command via command line it gives me the desired output, in fact when I run it in php I see the output from ffmpeg which I’m expecting to be put in the$new
variable, but it’s empty. Can anyone help me with the reason ?Thanks.
<?php
$new = shell_exec('ffmpeg -t 10 -i http://audiostream.com -af "volumedetect" -f null /dev/null');
file_put_contents('output.txt', $new);
?>