
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (32)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (6789)
-
Revision 675ec943db : Fix including test file twice. The test file niklas_1280_720_30.yuv may be incl
19 décembre 2014, par Frank GalliganChanged Paths :
Modify /test/test-data.mk
Fix including test file twice.The test file niklas_1280_720_30.yuv may be included twice.
Change-Id : I44512073e9e430a8e10fbce5afd62041e0edea17
-
dnn : change .model file format to put layer number at the end of file
29 août 2019, par Guo, Yejundnn : change .model file format to put layer number at the end of file
currently, the layer number is at the beginning of the .model file,
so we have to scan twice in python script, the first scan to get the
layer number. Only one scan needed after put the layer number at the
end of .model file.Signed-off-by : Guo, Yejun <yejun.guo@intel.com>
Signed-off-by : Pedro Arthur <bygrandao@gmail.com> -
ffmpeg filter_complex doesn't work with text file input
5 avril 2023, par MartinI have a working ffmpeg command that takes 4 input files
https://file.io/DllNlkCqX6J6


(2 audio, 2 images) and then renders a .mkv video, using a filter_complex string which tells ffmpeg to concat the two audio files and make a slideshow for the two images.


The filter_complex string relies on the order of the input files.


For example :
[0:a][1:a]concat=n=2:v=0:a=1[a]
in filter_complex tells ffmpeg to take the index=0 input audio file, and the index=1 input audio file, and concat them.

Then, the the
[2:v]
part tells ffmpeg to take the index=2 image file (we start counting index at zero, so index=2 is really the 3rd file, which is '3.sidea.jpg')

ffmpeg 

-r 2 -i "C:\Users\martin\Documents\album\a1 - in the beginning.mp3" 
-r 2 -i "C:\Users\martin\Documents\album\a2 - stratovarious.mp3" 
-r 2 -i "C:\Users\martin\Documents\album\3 sidea.jpg" 
-r 2 -i "C:\Users\martin\Documents\album\4 sideb.jpg" 

-filter_complex "[0:a][1:a]concat=n=2:v=0:a=1[a];[2:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v2];[3:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v3];[v2][v3]concat=n=2:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]" 

-map [v] -map [a] -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 309.95 
"C:\Users\martin\Documents\album\working.mkv"



This command works, but I use the same format for, say, 2k+ audio input files, I reach the terminal command line char limit. So I am trying to move my input files to a text file
input_files.txt
:

file 'C:\Users\martin\Documents\album\a1 - in the beginning.mp3'
file 'C:\Users\martin\Documents\album\a2 - stratovarious.mp3'
file 'C:\Users\martin\Documents\album\3 sidea.jpg'
file 'C:\Users\martin\Documents\album\4 sideb.jpg'




The same files, in the same order. But running my new command with this input_text.txt file :


ffmpeg 

-f concat -safe 0 -i input_files.txt

-filter_complex "[0:a][1:a]concat=n=2:v=0:a=1[a];[2:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v2];[3:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v3];[v2][v3]concat=n=2:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]" 

-map [v] -map [a] -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 309.95 
"C:\Users\martin\Documents\album\working.mkv"



Results in an error about the filter_complex index numbers :


[mp3 @ 0000025d87057700] Estimating duration from bitrate, this may be inaccurate
Input #0, concat, from 'input_files.txt':
 Duration: N/A, start: 0.000000, bitrate: 320 kb/s
 Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
Invalid file index 1 in filtergraph description [0:a][1:a]concat=n=2:v=0:a=1[a];[2:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v2];[3:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v3];[v2][v3]concat=n=2:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v].




Almost like it's treating the
-i input_files.txt
as its own index=0 file. I've tried different fixes but no luck.

How can I use my filter_complex string with a text file as the source of my ffmpeg command file inputs ?