
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
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.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (11283)
-
Merge videos on computer automatically
14 mai 2024, par SkyturkishI have some videos regularly downloaded to my computer, these are short videos, around 10-15 seconds each. I usually use https://online-video-cutter.com/merge-videos to merge them, and it serves my purpose well. I just drag and drop the videos I want and hit the download button without any additional steps.


My goal is to automate this process, so I thought I could merge the videos locally on my computer using ffmpeg. I've tried with JavaScript libraries like ffmpeg-static and ffmpeg-fluent, but I couldn't get the desired result ; I keep encountering an error.


What I want is automation of this process. How can I achieve this ? What can I use and how ? I attribute my inability to accomplish this to myself since what I want seems quite simple. Thank you in advance. Below, I'm leaving the JavaScript code I tried, but it gives me an error : 'ffmpeg exited with code 234 : Error opening output file ./merged-video.mp4. Error opening output files : Invalid argument.'


The number of videos is not fixed ; if an example is needed, let's say the first 30 files under a folder.


The videos are in mp4 format, and their frame sizes vary


I don't have much knowledge about videos, but other things could be different too, not just the frame sizes. The website I shared above handles all of these somehow. It's a bit off-topic, but is it possible to learn how the process on the mentioned website works(look at the source code somehow, Idk) ?


If there's any other way to automatically merge these videos, I would appreciate it if you could share it.


const fs = require('fs')
const path = require('path')
const ffmpeg = require('fluent-ffmpeg')

function mergeVideos(folderPath, outputFile) {
 fs.readdir(folderPath, (err, files) => {
 if (err) {
 console.error('Error:', err)
 return
 }

 const videoFiles = files.filter((file) => {
 const ext = path.extname(file).toLowerCase()
 return ext === '.mp4'
 })

 const command = ffmpeg().outputOptions('-movflags frag_keyframe+empty_moov')
 videoFiles.forEach((file) => {
 command.input(path.join(folderPath, file))
 })

 command.on('error', (err) => {
 console.error('ffmpeg error:', err.message)
 })

 command.on('end', () => {
 console.log('merged')
 })

 command
 .complexFilter(
 '[0:v]scale=w=1920:h=1080:force_original_aspect_ratio=decrease[v0];[1:v]scale=w=1920:h=1080:force_original_aspect_ratio=decrease[v1];[v0][v1]hstack=inputs=2[v]'
 )
 .outputOptions('-map', '[v]')
 command.mergeToFile(outputFile, folderPath)
 })
}

const folderPath = '../../upload-videos/1/2'
const outputFile = './merged-video.mp4'
mergeVideos(folderPath, outputFile)



-
Videos encoded by FFMPEG (mpeg codec) cannot be played on iOS14
28 septembre 2020, par vanste25I have a piece of code that uses ffmpeg with default mpeg codec to merge multiple videos and audio songs.


ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex "concat=n=2:v=1:a=1" -f MOV -vn -y output.mp4



Everything worked on iOS13 and after the update to iOS14, videos are black and cannot be played by any player. Sound is there and it's good.
I tried to switch to h264 and it works good, but as you already know, h264 is under GPL and it is expensive and requires code to be open sourced which is not acceptable for me.


What was changed ? Anything in release notes ?
Is that a bug ? Or a feature ?


Thanks


-
How to concatenate two or more videos with different framerates in FFMpeg ?
10 septembre 2021, par Tik0I have multiple (> 100) videos with various constant frame rates (e.g. 7 FPS, 8 FPS, 16 FPS, 25 FPS) but same codecs and resolutions.
I want to concatenate (using ffmpeg concat) them into one video with a variable frame rate (VFR), so that the concatenated video plays every part with the respective framerate.
Until now, I only managed to concat all files to a single video with a constant (CFR) of eg. 25 FPS.
This as the downside, that all parts with <25 FPS play faster.
I use
-vsync 2 -r 25
to try to tell ffmpeg to use VFR with a maximum FPS of 25, butmediainfo
reports a video with CFR of 25 FPS.
If I just use-vsync 2
(without-r
), I get a VFR video output, but,mediainfo
reports that it is a video with minimum 11.9 FPS and maximum 12 FPS (so kind of mean FPS of all videos).
How do I concat various videos to a single VFR video ?


Here is the command I used :



ffmpeg -y -vsync 2 -r 25 -f concat -safe 0 -i /tmp/filelist.txt -c:v h264_omx -pix_fmt yuv420p -b:v 524231 -maxrate 524231 -bufsize 1048462 -an /tmp/${DATE}.mp4




I use
ffmpeg version 3.2.12-1~deb9u1+rpt
on(Raspbian 6.3.0-18+rpi1+deb9u1