
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (72)
-
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 ;
-
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 -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (6573)
-
Empty error object produced by ffprobe in Google Cloud Function
20 septembre 2023, par willbattelUpdate : After more digging I found an open GitHub issue where others appear to be encountering the same behavior.



I have a Google Cloud Function (2nd gen) in which I am trying to use
ffprobe
to get metadata from a video file stored in a Google Cloud Storage bucket. It is my understanding that I can generate a signed url and, by passing that directly to ffprobe, avoid loading the entire video file into memory. I generate a signed url and pass it toffprobe
, and then parse the output like so :

import ffmpeg from 'fluent-ffmpeg'
import ffprobeStatic from 'ffprobe-static'

async function getVideoData(srcFile: File) {
 const [signedUrl] = await srcFile.getSignedUrl({
 action: 'read',
 expires: (new Date()).getMilliseconds() + 60_000,
 })

 const videoData: ffmpeg.FfprobeData = await new Promise((resolve, reject) => {
 ffmpeg.setFfprobePath(ffprobeStatic.path)
 ffmpeg.ffprobe(signedUrl, (err, data) => {
 if (err) {
 reject(err)
 }
 else {
 resolve(data)
 }
 })
 })

 return videoData
}



This code works (with the same signed URL) locally on my macOS machine, but does not when deployed in a 2nd generation Google Cloud Function. In the latter case,
data
isundefined
anderr
is{}
.

My main question is how to properly use
ffprobe
in 2nd gen Google Cloud Functions. I have tried to research this but documentation on ffmpeg/ffprobe on GCP is sparse. I'm also trying to figure out exactly why the error objecterr
is empty...it's not very helpful 😅

Additional info :


- 

- Environment : Google Cloud Functions 2nd Gen
- Runtime : Node 20
- "ffprobe-static" : "3.1.0",
- "fluent-ffmpeg" : "2.1.2"










Thanks in advance.


-
Revision 1c39998e39 : Add vp9_int_pro_col_neon. BUG=https://code.google.com/p/webm/issues/detail?id=1
15 juillet 2015, par Frank GalliganChanged Paths :
Modify /test/vp9_avg_test.cc
Modify /vp9/common/vp9_rtcd_defs.pl
Modify /vp9/encoder/arm/neon/vp9_avg_neon.c
Add vp9_int_pro_col_neon.BUG=https://code.google.com/p/webm/issues/detail?id=1023
Change-Id : I212a1d67b23ce3b5ce08800de369b25b9e375e7d
-
Revision 944ad6cac9 : Add vp9_int_pro_row_neon. BUG=https://code.google.com/p/webm/issues/detail?id=1
16 juin 2015, par Frank GalliganChanged Paths :
Modify /test/vp9_avg_test.cc
Modify /vp9/common/vp9_rtcd_defs.pl
Modify /vp9/encoder/arm/neon/vp9_avg_neon.c
Add vp9_int_pro_row_neon.BUG=https://code.google.com/p/webm/issues/detail?id=1022
Change-Id : I510c3b0a70158fa2e4da554f7c5d7558021a6ddf