
Recherche avancée
Autres articles (56)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...)
Sur d’autres sites (3759)
-
ffmpeg output 0 second with wrong coordinates and hidden text
18 juillet 2023, par Abdullah MohamedI'm trying to add some Text and Images to the video


Code


-i 'input.MOV' -i 'image.jpg' -filter_complex "[0]crop=1181.25:2100.0:1089.375:0.0[v];
 color=black[c];
 [v]colorchannelmixer=0.39:0.769:0.189:0:0:0.349:0.686:0.168:0:0:0.272:0.534:0.131:0:0:0:0:0[v];
 [c][v]scale2ref[t][v];
 [t]setsar=1,
 colorkey=black,
 split=2[t1][t2];
 [t1]drawtext=
 text=Abdullah Muhammad T1
 :fontsize=40.0
 :box=1
 :boxborderw=20.0
 :boxcolor=#2196f3
 :fontcolor=#f44336,
 rotate=10.0*PI/180:
 
 c=black@0[rotate];
 [v][rotate]overlay=x=400.0:y=300.0:shortest=1[v],
 
 
 [t2]drawtext=
 text=Abdullah Muhammad T2
 :fontsize=40.0
 :box=1
 :boxborderw=20.0
 :boxcolor=#ffeb3b
 :fontcolor=#000000,
 rotate=10.0*PI/180:
 
 c=black@0[rotate];
 [v][rotate]overlay=x=0.0:y=0.0:shortest=1[v],
 
 
 [1:v]scale=w=360.0:h=360.0,
 rotate=-90.0*PI/180:
 ow=rotw(iw-50):oh=roth(ih-50):
 c=black@0[rotate];
 [v][rotate]overlay=x=0.0:y=0.0:shortest=1[v],
 
 
 [1:v]scale=w=360.0:h=360.0,
 rotate=30.0*PI/180:
 ow=rotw(iw-50):oh=roth(ih-50):
 c=black@0[rotate];
 [v][rotate]overlay=x=200.0:y=600.0:shortest=1
 
 
 " -c:a copy -preset ultrafast -y 'output.mp4'



My Issues


- 

- First image should be at 0,0 coordinates but it's not.
- There should be 2 Texts but 1 of them is hidden and the other is not fully shown.
- the video is 13 seconds and the output is only 0 second.








Expected




Texts should be shown and images should be in the right position and video output should be 13 seconds.






Another issue




If I trimmed the video the output will still be the same duration




-i 'input_video.MOV' -ss 0:00:00.000000 -t 0:00:16.216000 -i 'input_image.jpg' -filter_complex "[0]crop=1181.25:2100.0:1089.375:0.0[v];
 color=black[c];
 [v]colorchannelmixer=0.39:0.769:0.189:0:0:0.349:0.686:0.168:0:0:0.272:0.534:0.131:0:0:0:0:0[v];
 [c][v]scale2ref[t][v];
 [t]setsar=1,
 colorkey=black,
 split=2[t1][t2];
 [t1]drawtext=
 text=Abdullah Muhammad T1
 :fontsize=40.0
 :box=1
 :boxborderw=20.0
 :boxcolor=#2196f3
 :fontcolor=#f44336,
 rotate=10.0*PI/180:
 
 c=black@0[rotate];
 [v][rotate]overlay=x=400.0:y=300.0:shortest=1[v],
 
 
 [t2]drawtext=
 text=Abdullah Muhammad T2
 :fontsize=40.0
 :box=1
 :boxborderw=20.0
 :boxcolor=#ffeb3b
 :fontcolor=#000000,
 rotate=10.0*PI/180:
 
 c=black@0[rotate];
 [v][rotate]overlay=x=0.0:y=0.0:shortest=1[v],
 
 
 [1:v]scale=w=360.0:h=360.0,
 rotate=-90.0*PI/180:
 ow=rotw(iw-50):oh=roth(ih-50):
 c=black@0[rotate];
 [v][rotate]overlay=x=0.0:y=0.0:shortest=1[v],
 
 
 [1:v]scale=w=360.0:h=360.0,
 rotate=30.0*PI/180:
 ow=rotw(iw-50):oh=roth(ih-50):
 c=black@0[rotate];
 [v][rotate]overlay=x=200.0:y=600.0:shortest=1
 
 
 " -c:a copy -preset ultrafast -y 'output.mp4'



-
How can I combine these three ffmpeg commands ?
16 mai 2022, par Anuj SaxenaI want to combine the following three commands into one command, if possible.


a = f'''ffmpeg -i {footage} -vcodec libx264 -acodec aac {mov_path}'''
b = f'''ffmpeg -i {mov_path} -vf "drawtext=text=' {hostname}\n {socket.gethostbyname(hostname)}\n {getpass.getuser()}':x=10:y=H-th-10:fontfile=KhmerOS.ttf:fontsize=50:fontcolor=black:shadowcolor=black:shadowx=2:shadowy=2" {watermark_path}'''
c = f'''ffmpeg -i {watermark_path} -vf "drawtext=fontfile=KhmerOS.ttf: text='%{{frame_num}}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=50: box=1: boxcolor=white: boxborderw=5" -c:a copy {current_frame} '''



I want a single output video because I don't want to use unnecessary variables like b,c,watermark_path, and current_frame I want only one resultant video with mov_path


-
sppedUp FFmpegKit overlay Flutter
17 septembre 2023, par mlikaI'm using FFmpegKit to overlay text on video :
I'm coding it for macos app, I double checked the CPU usage,it's using only 20%
I have MAC M1 PRO


String drawtextFilter = 'drawtext=fontfile=\'$_fontPath\':'
 'textfile=\'${segments[i].textFilePath}\':'
 'x=(w-text_w)/2:y=(h-text_h)/2:'
 'fontsize=65:fontcolor=white@0.8:' // @0.8 sets the opacity
 'bordercolor=black:borderw=9:'
 'shadowcolor=black:shadowx=5:shadowy=5:' // Adding shadow
 'box=1:boxcolor=black@0.1:boxborderw=20:' // Adding background box
 'fix_bounds=1:'
 'line_spacing=10:'
 'enable=\'between(t,0,${segments[i].duration})\'';
 String command =
 '-i "${segments[i].videoPath}" -vf "$drawtextFilter" -c:v h264_videotoolbox -threads 0 -y "$outputPath"';




The problem is it's taking too long to finish the speed is around 0.6
Is there a solution or alternative as, I'm converting 1hour+ videos and it's taking too much time.
Thanks


- 

- I tried compute and Isolate to run multiple ffmpeg but it still very slow