
Recherche avancée
Médias (2)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (111)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
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 ) (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (12695)
-
How to copy image to already created video in ffmpeg ? Flutter
2 février 2023, par AmmaraI want to create a video from list of images which is stored in list image ;
Which are selected by user from gallery.
Please help me I spend a month in this searching but found nothing.
I think or search a lot how to pass this list to ffmpeg to create video but fail to understand.
Now I generate a solution to create video from image after that copy each photo 1 by 1 to that video to get final result. Please tell me how can I copy image to video like.


String commandToExecute = '-t 1 -i ${img[0].path} - ${video.mp4}';



then i want to copy other image to same video


for(int i=1;icode>


In this way I want to create video with all images which user select.
But I cannot found any result with this code


-
fluent-ffmpeg is having trouble setting creation_time (metadata) for mp4 video
26 février 2023, par LycalopXSo, basically, I have 2000 photos/videos that are, incorrectly, saved with random creation dates, and I wish to try and organize them. And, the solution I found was : getting the correct time through their name (they are already all named correctly), in the following format :


YYMMDD HH:MM:SS


That way, as I didn't want to go one by one writing all of the correct timestamps, I tried to change the metadata for all the files using javascript, and chose Fluent-FFMPeg for the job. I have ffmpeg installed on my computer, and I can successfully change the date of an MP4 file using the following command, in Windows Powershell (for that mp4 video) :


ffmpeg -i 20150408_143303.mp4 -metadata creation_time="2015-05-08T17:33:03.000Z" newFile.mp4



But, the code I wrote doesn't seem to work, at least to change the date of the file. I tested most of the metadata fields (author, title, etc.), and it seems to work fine with them, just not the Media Creation Date (creation_time).


Here is the code, for reference :


// node-module
 var ffmpeg = require('fluent-ffmpeg');

 // File location
 const filePath = './'
 var fileName = "20150408_143303.mp4"


 var year = fileName.slice(0, 4)
 var month = fileName.slice(4, 6)
 var day = fileName.slice(6, 8)
 var hours = fileName.slice(9, 11)
 var minutes = fileName.slice(11, 13)
 var seconds = fileName.slice(13, 15)

 var date = new Date(year, month, day, hours, minutes, seconds)

 //2015-05-08T17:33:03.000Z
 console.log(date)


 // First try (doesn't work)
 const file = filePath + fileName
 ffmpeg(file).inputOptions(`-metadata`, `title="Movie"`)


 // ffmpeg -i 20150408_143303.mp4 -metadata creation_time="2015-05-08T17:33:03.000Z" newFile.mp4

 // second try
 ffmpeg.ffprobe(file, function(err, metadata) {

 ffmpeg(file)
 .inputFormat('mp4')
 .outputOptions([`-metadata`, `creation_time=${date}`])
 .save('newFile.mp4')
 .on("progress", function(progress) {
 console.log("Processing: " + progress.timemark);
 })
 .on("error", function(err, stdout, stderr) {
 console.log("Cannot process video: " + err.message);
 })
 .on("end", function(stdout, stderr) {
 console.log((metadata.format.tags))
 })
 .run();

 })



Console.log : https://imgur.com/a/gR93xLE

There are no console errors, and everything seems to run smoothly, but the creation_time really does not change. Any idea as to why this is occurring is very welcome...

-
add padding to ffmpeg slideshow images with different dimensions
3 mars 2023, par MartinI have an ffmpeg command which takes 3 audio files and 3 image files, and concats the 3 audio files into a video with length 870.04 seconds, where the images play in a slideshow where each image is shown for 290.015 seconds.


You can copy and paste the command into your web browser search bar to turn it into one line, then run it (filepaths are formatted for win10 command prompt)


ffmpeg 
-r 2 -i "E:\myFolder\10. Deejay Punk-Roc - Knock 'em All The Way Out.aiff"
-r 2 -i "E:\myFolder\11. Deejay Punk-Roc - Spring Break.aiff"
-r 2 -i "E:\myFolder\12. Deejay Punk-Roc - Fat Gold Chain.aiff"
-r 2 -i "E:\myFolder\1_front.jpg"
-r 2 -i "E:\myFolder\2_back.jpg"
-r 2 -i "E:\myFolder\3_cd.jpg"

-filter_complex "[0:a][1:a][2:a]concat=n=3:v=0:a=1[a];[3:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v3];[4:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v4];[5:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v5];[v3][v4][v5]concat=n=3: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 870.04 

"E:\myFolder\newOutputVid.mkv" 



The most complex part of this command, which is the logic behind how long to show each image, is the filter_complex argument, which I will try to explain below :


-filter_complex "

//concat the three audio files. [0:a] is referring to the 0'th file input which is audio file 'Knock 'em All The Way Out'
[0:a][1:a][2:a]concat=n=3:v=0:a=1[a];

//file input 3, is the first image, 
[3:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v3];[4:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v4];[5:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v5];

//concat the three images in order
//set output resolution
[v3][v4][v5]concat=n=3:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]"



With the output video that gets rendered, the first image is shown correctly, because the video resolution 600w x 593h is the same as the image itself



The second image however, was stretched to fit the frame of the video.



How can i edit my filter_complex line for the
[4:v]
, the 4th input file which is the second image2_back.jpg
, so that the image is not stretched ? Maybe like add black background padding to keep the image fully visible with the frame and not cropped/stretched

Download files :
http://www.mediafire.com/folder/e8ja1n8elszk1lu,dxw4vglrz7polyh,ojjx6kcqruksv5r,lah9rano4svj46o,q5jg0083vbj9y1p,d3pt8ydf3ulqm5m/shared