
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (78)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (9523)
-
ffmpeg add overlay image to command with already drawtext
29 octobre 2020, par fedep11I have two ffmpeg commands I would like to add an overlay image to both :


ffmpeg -i "video.mp4" -filter_complex "drawtext=textfile=sub.txt:fontfile=SourceSansPro-Bold.ttf:fontcolor=white:fontsize=100: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200:enable='between(t,1,9)',fade=t=in:start_time=1:d=1:alpha=1,fade=t=out:start_time=8:d=1:alpha=1[fg];[0][fg]overlay=format=auto,format=yuv420p" -an -vcodec libx264 -r 25 -crf 17 -aspect 16/9 out.mp4

ffmpeg -i "video.mp4" -filter_complex "color=black@0:100x100,format=yuva444p[c]; [c][0]scale2ref[ct][mv0];[ct]setsar=1,split=4[t1][t2][t3][t4];[t1]drawtext=textfile=1.txt:fontfile=SourceSansPro-Bold.ttf:fontsize=100:fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=7:d=1:alpha=1[txta1];[t2]drawtext=textfile=2.txt:fontfile=SourceSansPro-Bold.ttf:fontsize=100:fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200,fade=t=in:st=9:d=1:alpha=1,fade=t=out:st=15:d=1:alpha=1[txta2];[t3]drawtext=textfile=3.txt:fontfile=SourceSansPro-Bold.ttf:fontsize=100:fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200,fade=t=in:st=17:d=1:alpha=1,fade=t=out:st=24:d=1:alpha=1[txta3];[t4]drawtext=textfile=4.txt:fontfile=SourceSansPro-Bold.ttf:fontsize=100:fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200,fade=t=in:st=26:d=1:alpha=1,fade=t=out:st=28:d=1:alpha=1[txta4];[mv0][txta1]overlay=x='0':y='0':shortest=1[mv1];[mv1][txta2]overlay=x='0':y='0':shortest=1[mv2];[mv2][txta3]overlay=x='0':y='0':shortest=1[mv3];[mv3][txta4]overlay=x='0':y='0':shortest=1" -an -vcodec libx264 -r 25 -crf 17 -aspect 16/9 out.mp4



-
ffmpeg - Understand images to video output, players show different images and lengths
8 juillet 2023, par Matt CI'm using multiple images to create a video with each image on a 1-second long frame. This is the command I'm using :


ffmpeg -framerate 1 -i 'image%d.jpg' -c:v libx264 -r 1 -pix_fmt yuv420p out.mp4



This seems straightforward and exactly what many others have done with success. However, the output I get is an mp4 which windows file explorer says is 4 seconds long, and is different in VLC and Windows media player and neither is the desired output.


In Windows : the video plays for 4 seconds with a black screen and at this point the time line at the bottom is filled up at 4 seconds, indicating the video is over. But it keeps playing, for another 4 seconds. And the last 4 seconds (from 0:04 to 0:07) is actually the desired output.







 Frame 

Image 







 1 

black screen 




 2 

black screen 




 3 

black screen 




 4 

black screen 




 5 

image1.jpg 




 6 

image2.jpg 




 7 

image3.jpg 




 8 

image4.jpg 









In VLC : the video shows last image supplied as input for 3 seconds, followed by the second to last image for 1 second.







 Frame 

Image 







 1 

image4.jpg 




 2 

image4.jpg 




 3 

image4.jpg 




 4 

image3.jpg 









Questions :


- 

- How/Why are these different in different players ?
- Why, in VLC, are only two images showing up, and why would one of them last for 3 seconds ?
- In Windows, why/how is the video 8 seconds long but shows up as 4 seconds both in the file explorer and in the actual media player ?
- How do I get the desired output, and what caused my case to not work as it did for seemingly most others ?










-
How to make overlay not hidden under pad area
26 juin 2023, par Yousuf Essai have the following command where i want overlay two images above image


String command = '-y -i $backgroundImage1 -i $overlayImage1 -i $overlayImage2 -filter_complex '
 '"[1]scale=600:600[i1];'
 '[2]scale=600:600[i2];'
 '[0][i1]overlay=1200:1200[01];'
 '[01][i2]overlay=800:800'
 ',pad=width=iw:height=ih+1000:x=0:y=0:color=black'
 '" $outPutPath';



Now i notice if i position one of the overlay to be within the black pad area that i made so it be hidden behind it , how to solve, so the overlay on top pad ?


if anyone could help so kindly edit my full command because i just start to learn
ffmpeg
, thanks