
Recherche avancée
Autres articles (71)
-
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 (7905)
-
trying to merge 2 video command [duplicate]
4 octobre 2019, par Vikram DulgachThis question already has an answer here :
I am trying to merge 2 video one has audio and in 2nd video i am adding silent track. but everytime i am trying to merge them it shows me these error. I am using 2 command in both ti give me same erro.
String [] merge2video={ "-i", video1,"-i", new video2,"-filter_complex", "[0:v]scale=1280x720,setpts=PTS-STARTPTS[v0];[1:v]scale=1280x720,setpts=PTS-STARTPTS[v1];[v0][0:a][v1][1:a]concat=n=2:v=1:a=1", "-map", "[v]", "-map", "[a]","-preset" ,"ultrafast" ,"-crf" ,"30", sharevideo};
String [] merge2video= "-i", video1,"-i", new video2,"-filter_complex", "[0]setdar=16/9[a] ;[1]setdar=16/9[b] ; [a][b]concat=n=2:v=1:a=1", "-map", "[v]", "-map", "[a]","-preset" ,"ultrafast" ,"-crf" ,"30", sharevideo ;
[swscaler @ 0xee692000] deprecated pixel format used, make sure you did set range correctly
[Parsed_concat_4 @ 0xee9255f0] Input link in1:v0 parameters (size 1280x720, SAR 1647:1648) do not match the corresponding output link in0:v0 parameters (1280x720, SAR 1:1)
[Parsed_concat_4 @ 0xee9255f0] Failed to configure output pad on Parsed_concat_4
Error configuring complex filters.
Invalid argumentHelp to solve there issue if anybody is there thanks in advance. and sorry for bad english
-
Remove frames based off an image with FFmpeg
15 novembre 2020, par VEXEDThe Goal : Take a frame or a reference image and use that to decide what frames to keep/remove from an old screen recording (no audio).


To be slightly more specific, I want to match a specific program that is being used in the screen recording. The program is always full screen and could potentially be identified just by a crop of the top left corner.


The Question : What would be the best way to take an image, in particular a cropped corner of say 100px width and height, and look for the same matching corner in a video ? I would want to output those matches to a new file, that or remove the non-matching frames and create a new file with all the frames that match.


What I Know : I know that duplicate frame removal is very possible, and I already use that for screen recordings.


-filter:v mpdecimate, setpts=N/FRAME_RATE/TB \



The above is being used in my screen recording script to remove duplicate frames.


I'm also aware that you can crop using FFmpeg, but I'm not looking to have actual cropped output. I'm only looking to use a crop to find the portion that matches my reference image or reference frame.


ffmpeg -i in.mp4 -filter:v "crop=out_w:out_h:x:y" out.mp4



The above is a basic crop.


The only reference to finding frames by images is this one. It didn't do what I wanted and just produced dark and distorted output. Though I might be understanding what the aim of that post was incorrectly.


Notes : Thanks in advance for any help, this frame/image matching doesn't have to be done while recording, but can be done in post.


-
Why is ffmpeg choking on this particular PNG file ?
13 novembre 2022, par kohlothI'm trying to make a video out of 4 still images with ffmpeg.


This is the command I am having trouble with getting working at the moment :


ffmpeg -y -loop 1 -framerate 24 -t 3 \
-i ./images/title-card.png -loop 1 -framerate 24 -t 4 \
-i ./images/001.png -loop 1 -framerate 24 -t 4 \
-i ./images/002.png -loop 1 -framerate 24 -t 3 \
-i ./images/003.png -loop 1 -framerate 24 -t 4 \
-filter_complex "[0][1][2][3]concat=n=4:v=1:a=0" \
/tmp/silentVideoTest.mp4



Unfortunately, I get this error :


[Parsed_concat_0 @ 0x5603df1c4080] Input link in1:v0 parameters (size 1024x1024, SAR 0:1) do not match the corresponding output link in0:v0 parameters (1024x1024, SAR 3937:3937)
[Parsed_concat_0 @ 0x5603df1c4080] Failed to configure output pad on Parsed_concat_0
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #3:0



I have no idea what this error means. But if I use a different png for the first image, it works fine. I understand that there is something about the first png that ffmpeg does not like ; the SAR, which I believe is some kind of png metadata bit or something ?


Problem is :


- 

- The error is confusing to me
- I see no option to set the SAR when exporting images from Krita, Pinta, or Photopea.
- I do not know how to view the SAR value of an image, so I can't verify that this is really the problem








Also, whats more is, I've used this command in the past to change an image's SAR (I think) but it seems to only work half the time ?


ffmpeg -i title-card.png -vf setsar=1 title-card-new-sar.png



No idea what the value of setsar should be, so I am using 1.


Would love if someone could tell me how to get it to work. In particular, how do I view the SAR of a PNG file ?


Maybe I am naieve, but shouldn't ffmpeg just be able to accept png images that are the same dimensions, compression, and stitch em together without errors ? i.e. Is there an option just to say "Fix the SAR ?" or "Use the SAR of the first image for all images ?"



Edit : Trying it on some different images, having set the SAR with
ffmpeg -i ./card.png -vf setsar=1 ./card-new-sar.png
, I get a similar error :

[Parsed_concat_0 @ 0x55e7b6b8b640] Input link in2:v0 parameters (size 1024x1024, SAR 2834:2834) do not match the corresponding output link in0:v0 parameters (1024x1024, SAR 1:1)
[Parsed_concat_0 @ 0x55e7b6b8b640] Failed to configure output pad on Parsed_concat_0
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #26:0



ffmpeg still seems to complain that the SARs don't match...but surely, as its a ratio, a SAR of
2834:2834
does match a SAR of1:1
?


Edit : Tried setting the SAR with
ffmpeg -i ./card.png -vf setsar=2834:2834 ./card-new-sar.png
, but now the error is(size 1024x1024, SAR 0:1) do not match the corresponding output link in0:v0 parameters (1024x1024, SAR 2834:2834)
.