
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (111)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (9460)
-
How to merge multiple videos and audios in python ffpmeg [closed]
18 décembre 2020, par Alireza FarzanehI'm making a program for downloading Adobe connect based meetings' recordings using python.
I have managed to download Adobe connect sessions' recording.

Now I have multiple separate audios and videos.

I'm trying to merge them into one video using python and ffmpeg library.

The problem is that I want them to be in sync.



Here is an example :

I have four files :

"cameraVoip_0_4.flv" : audio, started at "Sat Nov 07 13:36:11 2020" and lasted for 2888.128000 seconds.

"cameraVoip_0_6.flv" : audio, started at "Sat Nov 07 14:26:42 2020" and lasted for 366.455 seconds.

"screenshare_1_2.flv" : video, started at "Sat Nov 07 13:36:01 2020" and lasted for 2844.602000 seconds.

"screenshare_3_7.flv" : video, started at "Sat Nov 07 14:26:51 2020" and lasted for 352.635000 seconds.

I want to merge them somehow that their timing would be correct.


-
Trim video into multiple sections ffmpeg
24 décembre 2020, par fitzmodeI need to trim a video into multiple sections of unequal duration and output them as separate files.


For example a
.mp4
100 seconds long and I need to extract and keep

- 

- output0.mp4 from 5 - 10sec
- output1.mp4 from 10 - 20 sec
- output2.mp4 from 35 - 60 sec








Current Solution :


ffmpeg -i video.mp4 -c copy -t 5 output0.mp4 -ss 10 -c copy -t 10 output1.mp4 -ss 20 -c copy -ss 35 t 60 output2.mp4 -y



Current solution works but is there a way to group process and index the output with a format specifier ?
Something like below or an alternative method without re-encoding ?


ffmpeg -i video.mp4 -c copy -t 5 -ss 10 -t 10 -ss 20 -y output%d.mp4



My alternative solution using
segment
has the problem that it also returns anoutput3.mp4
from 60 - 100sec and the durations aside fromoutput0.mp4
do not match the expected values.

ffmpeg -i video.mp4 -c copy -f segment -segment_times 5,10,20,35,60 output%d.mp4



-
Running ffmpeg (WASM/NodeJS) on multiple input files in a React App
17 septembre 2024, par FlipFloopI recently followed a tutorial by Fireship.io going over making a React App that enables a user to input a video file and convert it into a gif. Here is the source GitHub Repo.


The packages used by the project are
@ffmpeg/ffmpeg
and@ffmpeg/core
, which take care of converting the video into a GIF (although this can be changed to whatever, like the FFmpeg CLI tool).

I wanted to take this a step further and make it possible for me to convert multiple videos at once, each into their own separate gif, however, I am having trouble running the next task when the first is finished.


Here is documentation I found about the ffmpeg wasm package. I also read this example given by the package providers to have multiple outputs from a single file.


Here is my code (App.jsx) :


import { createFFmpeg, fetchFile } from '@ffmpeg/ffmpeg';
const ffmpeg = createFFmpeg({ log: true });

function App() {
 const [ready, setReady] = useState(false);
 const [videos, setVideos] = useState([]);
 const [gifs, setGifs] = useState([]);
 const load = async () => {
 await ffmpeg.load();
 setReady(true);
 };

 useEffect(() => {
 load();
 }, []);

 const onInputChange = (e) => {
 for (let i = 0; i < e.target.files.length; i++) {
 const newVideo = e.target.files[i];
 setVideos((videos) => [...videos, newVideo]);
 }
 };

 const batchConvert = async (video) => {
 const name = video.name.split('.mp4').join('');

 ffmpeg.FS('writeFile', name + '.mp4', await fetchFile(video));
 await ffmpeg.run(
 '-i',
 name + '.mp4',
 '-f',
 'gif',
 name + '.gif',
 );

 const data = ffmpeg.FS('readFile', name + '.gif');

 const url = URL.createObjectURL(
 new Blob([data.buffer], { type: 'image/gif' }),
 );

 setGifs((gifs) => [...gifs, url]);
 };

 const convertToGif = async () => {
 videos.forEach((video) => {
 batchConvert(video);
 }
 );

return ready ? (
<div classname="App">
 {videos &&
 videos.map((video) => (
 <video controls="controls" width="250" src="{URL.createObjectURL(video)}"></video>
 ))}

 <input type="file" multiple="multiple" />

 {videos && <button>Convert to Gif</button>}

 {gifs && (
 <div>
 <h3>Result</h3>
 {gifs.map((gif) => (
 <img src="http://stackoverflow.com/feeds/tag/{gif}" width="250" style='max-width: 300px; max-height: 300px' />
 ))}
 </div>
 )}
</div>
) : (
 <p>Loading...</p>
);
}

export default App;



The error I am getting is along the lines of "Cannot run multiple instances of FFmpeg at once", which I understand, however, I have no idea how to make the batchConvert function only run one instance at a time, whether it's outside or inside the function.


Thank you !