
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (62)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
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 (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (4047)
-
typeError when using ffmpeg with buffer in NodeJS ["argument must be of type string or an instance of Buffer"]
16 mars 2021, par coolps811I am trying to covert buffer data into the correct mp4 video format. However I am getting an error : "UnhandledPromiseRejectionWarning : TypeError [ERR_INVALID_ARG_TYPE] : The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of FfmpegCommand". How can I fix this ?


router.post("/download", (req, res, next) => {
 axios({
 method: "get",
 url: req.body.url,
 responseType: "arraybuffer",
 }).then(function (response) {
 const data = new Uint8Array(Buffer.from(response.data));

 const proc = new ffmpeg(data)
 .videoCodec("libx264")
 .outputOptions(["-movflags isml+frag_keyframe"])
 .toFormat("mp4")
 //.seekInput(offset) this is a problem with piping
 .on("error", function (err, stdout, stderr) {
 console.log("an error happened: " + err.message);
 console.log("ffmpeg stdout: " + stdout);
 console.log("ffmpeg stderr: " + stderr);
 })
 .on("end", function () {
 console.log("Processing finished !");
 })
 .on("progress", function (progress) {
 console.log("Processing: " + progress.percent + "% done");
 });

 fs.writeFile("Assets/test.mp4", proc, callback);
 });

 const callback = (err) => {
 if (err) throw err;
 console.log("It's saved!");
 };
});



-
ffmpeg : "Impossible to convert between the formats" when using NVIDIA GPU hardware acceleration
24 mai 2021, par MorenoGentiliI'm using ffmpeg from the command line on Windows 10 and I wanted to gave GPU acceleration a try to improve execution times. A simple cut command like this works fine and its execution time is reduced by 60-70%. Awesome.


ffmpeg -hwaccel cuvid -c:v h264_cuvid -ss 00:00:10 -i in.mp4 -c:v h264_nvenc out.mp4



Now I tried to use the -filter_complex flag to overlay, fade and translate a png image over a video. The working non-GPU enhanced command is this one :


ffmpeg -i in.mp4 -loop 1 -t 75 -i overlay.png -filter_complex "[1:v]fade=t=in:st=30:d=0.3:alpha=1,fade=t=out:st=35.7:d=0.3:alpha=1[png1];[0:v][png1]overlay=x='if(gte(t,30), (t-30)*10, NAN)'" -movflags +faststart out.mp4



Then, I added the GPU-related flags to the command like this.


ffmpeg -hwaccel cuvid -c:v h264_cuvid -i in.mp4 -loop 1 -t 75 -i overlay.png -filter_complex "[1:v]fade=t=in:st=30:d=0.3:alpha=1,fade=t=out:st=35.7:d=0.3:alpha=1[png1];[0:v][png1]overlay=x='if(gte(t,30), 60-tanh((t-30)*30/5)*60, NAN)'" -movflags +faststart -c:v h264_nvenc out.mp4



But it won't work. I get this error.


Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0



I don't even know what it means. Can I actually run ANY ffmpeg command on the GPU with GPU acceleration ? I've found some information about the hwupload_cuda flag but I'm not sure if I should use it and how. My attempts have failed so far.


Any advice on how I should modify the command to make it work on the GPU ?


-
ffmpeg how modify the contrast with nvidia "hevc_nvenc" codec
12 juin 2021, par Marco999I need to adjust to contrast of some mkv file I have tried this code :


ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i title00.mkv -c:v hevc_nvenc -b:v 5M -vf eq=contrast=1.0 output.mkv



but I get this error :


Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0



If I run the some line without "-vf eq=contrast=1.0" :


ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i title00.mkv -c:v hevc_nvenc -b:v 5M output.mkv



the command work and don't show any error message but don't allow me to adjust the contrast.


There is a way to modify the contrast with nvidia hevc_nvenc codec ?