
Recherche avancée
Autres articles (59)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 ;
Sur d’autres sites (7158)
-
Merge multiple videos and one audio with ffmpeg. Loop all the videos while audio is not over
2 septembre 2020, par عليلو احمدI'm trying to merge an audio file with multiple videos.


The final output video should contain the full audio and it's not necessary to contain all the videos


It may contain some secondes from each video.


I tried this solution :
ffmpeg -stream_loop -1 -i input.mp4 -i input.mp3 -shortest -map 0:v:0 -map 1:a:0 -y out.mp4


And it worked but just with one video, And what i need is looping multiple videos while audio is not over.


-
ffmpeg generate first non black frame
17 octobre 2019, par MilouselI get via readstream video from AWS server. I modify it into different format and save it back into server. After that I want to create non black image from first frame of this video. So I need to check if first frame is black or not.
ffmpeg(stream)
.size('1320x438')
.videoCodec('libx264')
.toFormat('avi')
.output(fileName)
.on('end', function() {
console.log('Finished processing video');
const params = {
Body: fs.createReadStream(fileName),
Bucket: videoBucket,
Key: 'test/modification/' + fileName,
};
s3.putObject(params, (err, data) => {
if (err) {
console.log(err);
}
});
})
.output(screensName + '.jpg')
.outputOptions(
'-frames',
'1', // Capture just one frame of the video
)
.on('end', function() {
console.log('Finished processing screenshot');
const params = {
Body: fs.createReadStream(screensName + '.jpg'),
Bucket: videoBucket,
Key: 'test/shots/' + screensName + '.jpg',
};
s3.putObject(params, (err, data) => {
if (err) {
console.log(err);
}
});
})
.run(); -
Stacking videos with ffmpeg via MATLAB not working as expected
18 juillet 2022, par ersatzsheepI am stacking 4 video inputs in a 2x2 grid and running into a conversion failure.


Basically, at least one of the videos is just a filler black video that I generated with this line (MATLAB, hence the eval) :


eval(['!ffmpeg -framerate 1/3600 -i black_frame.JPG -c:v libx264 -t 3600 -pix_fmt yuv420p -vf scale=320:240 black_frame.mp4']);



The other video inputs are 4 hr long videos with identical specs. I've concatenated them with this line :


eval(['!ffmpeg -i "' v1 '" -i "' v3 '" -i "' v2 '" -i "' v4 '" -filter_complex " [0:v] setpts=PTS-STARTPTS, scale=qvga [a0]; [1:v] setpts=PTS-STARTPTS, scale=qvga [a1]; [2:v] setpts=PTS-STARTPTS, scale=qvga [a2]; [3:v] setpts=PTS-STARTPTS, scale=qvga [a3]; [a0][a1][a2][a3]xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0[out] " -map "[out]" -c:v libx264 "' output '"']) 



When I input v1-v4 with normal videos (not the filler black video), it outputs very quickly and everything is good. The line to generate the filler black video is very fast too. But when I sub one of the video inputs with the file path for the filler black video, the speed tanks exponentially, stalls, and conversion fails.


Any pointers for me ? I also tried just subbing one of the inputs with a black image file instead of generating a whole video and inputting that. But it does the same thing :/ Does it have to do with frame rate ? Should I try a different approach ? Thanks.