
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (70)
-
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 (...)
-
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...)
Sur d’autres sites (8761)
-
FFmpeg drawtext not working on filter complex with watermark on php
14 octobre 2018, par GroovekinggAfter I made a question of this topic i got a great answer from LordNeckbeard and appreciate for the help, but still the drawtext isn’t working, and can’t figure out what could possibly be wrong. So everything works if I omit drawtext=text=’hello’ on both of these lines, but once i add drawtext, no output.gif is created.
$cmd1 = "$ffmpeg -ss 00:00:02 -t 00:00:02 -i $file_full_path -i $watermark -filter_complex '[0]fps=15,scale=200:113:flags=lanczos[bg];[bg][1]overlay=5:5,drawtext=text='hello',palettegen' $palette";
$cmd2 = "$ffmpeg -ss 00:00:02 -t 00:00:02 -i $file_full_path -i $watermark -i $palette -filter_complex '[0]fps=15,scale=200:113:flags=lanczos[bg];[bg][1]overlay=5:5,drawtext=text='hello'[x];[x][2]paletteuse=dither=bayer:bayer_scale=3' -loop -1 output.gif";
shell_exec($cmd1);
shell_exec($cmd2);i have tried changing the single quotation marks to double, but nothing change. Also tried with exec(). Or is it possible that my server has a library missing and drawtext isn’t working because of this ?
So I have tried to break down to check where it is wrong by simplifying the cmd to :$cmd1 = "$ffmpeg -i $file_full_path -ss 00:00:02 -t 00:00:02 -r 20 -vf scale=200:113,drawtext=text='hello' output.gif";
and an output.gif file is created but 0bytes. what could it be ?
Thanks to LordNeckbeard again for his answered on my previous post. Any answer would be of great help.
-
Error loading trimmed video produced by FFMPEG
12 mai 2024, par Bryan CartyI've been trying to trim a video using FFMPEG within some javascript code.


The code executes without throwing any errors.


try {
 const command = `ffmpeg -i ${
 CROPPING_DIR + CROPPED_VIDEO_PREFIX + id + ".mp4"
 } -ss 00:00:04 -to 00:00:06 -c copy ${
 CROPPING_DIR + TRIMMED_VIDEO_PREFIX + id + ".mp4"
 }`;
 console.log(command);
 const { stdout, stderr } = await exec(command);
 return "NA";
 } catch (error) {
 console.error("Error executing ffmpeg command:", error);
 }



In VsCode, I am unable to view the trimmed video. Instead I see 'An error occurred while loading the video file'.


Viewing from the file explorer, no video frames are displayed, but I can see the video progress bar moving.


I've attempted a number of FFMPEG commands but am getting the same result.


ffmpeg -i C:/Users/bryan/Desktop/Other/project/code/project/app/cropping_images/_cropped_d372d8ff-84c8-4cab-9359-513ee6ad7536.mp4 -ss 00:00:04 -to 00:00:06 -c copy C:/Users/bryan/Desktop/Other/project/code/project/app/cropping_images/_trimmed_d372d8ff-84c8-4cab-9359-513ee6ad7536.mp4

ffmpeg -i C:/Users/bryan/Desktop/Other/project/code/project/app/cropping_images/_cropped_87f094f2-b06f-4c21-bd41-ae5e4ca222ae.mp4 -ss 1.05 -to 2.45 -c copy C:/Users/bryan/Desktop/Other/project/code/project/app/cropping_images/_trimmed_87f094f2-b06f-4c21-bd41-ae5e4ca222ae.mp4

ffmpeg -i C:/Users/bryan/Desktop/Other/project/code/project/app/cropping_images/_cropped_f5b89e96-3efc-4a6e-bba4-428751fb38eb.mp4 -ss 0.00 -to 6.93 -c:v copy -c:a copy C:/Users/bryan/Desktop/Other/project/code/project/app/cropping_images/_trimmed_f5b89e96-3efc-4a6e-bba4-428751fb38eb.mp4



-
Cloud Functions for Firebase : completing long processes without touching maximum timeout
17 février, par Scott EwingI have to transcode videos from webm to mp4 when they're uploaded to firebase storage. I have a code demo here that works, but if the uploaded video is too large, firebase functions will time out on me before the conversion is finished. I know it's possible to increase the timeout limit for the function, but that seems messy, since I can't ever confirm the process will take less time than the timeout limit.



Is there some way to stop firebase from timing out without just increasing the maximum timeout limit ?



If not, is there a way to complete time consuming processes (like video conversion) while still having each process start using firebase function triggers ?



If even completing time consuming processes using firebase functions isn't something that really exists, is there some way to speed up the conversion of fluent-ffmpeg without touching the quality that much ? (I realize this part is a lot to ask. I plan on lowering the quality if I absolutely have to, as the reason webms are being converted to mp4 is for IOS devices)



For reference, here's the main portion of the demo I mentioned. As I said before, the full code can be seen here, but this section of the code copied over is the part that creates the Promise that makes sure the transcoding finishes. The full code is only 70 something lines, so it should be relatively easy to go through if needed.



const functions = require('firebase-functions');
const mkdirp = require('mkdirp-promise');
const gcs = require('@google-cloud/storage')();
const Promise = require('bluebird');
const ffmpeg = require('fluent-ffmpeg');
const ffmpeg_static = require('ffmpeg-static');




(There's a bunch of text parsing code here, followed by this next chunk of code inside an onChange event)



function promisifyCommand (command) {
 return new Promise( (cb) => {
 command
 .on( 'end', () => { cb(null) } )
 .on( 'error', (error) => { cb(error) } )
 .run();
 })
}
return mkdirp(tempLocalDir).then(() => {
 console.log('Directory Created')
 //Download item from bucket
 const bucket = gcs.bucket(object.bucket);
 return bucket.file(filePath).download({destination: tempLocalFile}).then(() => {
 console.log('file downloaded to convert. Location:', tempLocalFile)
 cmd = ffmpeg({source:tempLocalFile})
 .setFfmpegPath(ffmpeg_static.path)
 .inputFormat(fileExtension)
 .output(tempLocalMP4File)
 cmd = promisifyCommand(cmd)
 return cmd.then(() => {
 //Getting here takes forever, because video transcoding takes forever!
 console.log('mp4 created at ', tempLocalMP4File)
 return bucket.upload(tempLocalMP4File, {
 destination: MP4FilePath
 }).then(() => {
 console.log('mp4 uploaded at', filePath);
 });
 })
 });
 });