
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (44)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (5578)
-
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)
.

-
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.


-
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