
Recherche avancée
Autres articles (54)
-
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. -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (5021)
-
Overlaying video with ffmpeg
11 novembre 2012, par eleeI'm attempting to write a script that will merge 2 separate video files into 1 wider one, in which both videos play back simultaneously. I have it mostly figured out, but when I view the final output, the video that I'm overlaying is extremely slow.
Here's what I'm doing :
-
Expand the left video to the final video dimensions
ffmpeg -i left.avi -vf "pad=640:240:0:0:black" left_wide.avi
-
Overlay the right video on top of the left one
ffmpeg -i left_wide.avi -vf "movie=right.avi [mv] ; [in][mv] overlay=320:0" combined_video.avi
In the resulting video, the playback on the right video is about half the speed of the left video. Any idea how I can get these files to sync up ?
-
-
Nodejs spawn - child processes
24 février 2019, par z EyelandMy nodejs application is running on raspberry Pi. The program uses spawn child process to trigger bash scripts which record or compress the previous recorded file. The program records fine. After recording the user selects the compress button. This kills the recording spawn process and fires the bash script for compression. The issue I am having is that whenever the video length gets around 1min long the compression spawn process times out or something. I ran ps -ef to view all process and i noticed that the compression script is still there. She the video length is short - the compression spawn process completes its cycle and send api request to shutdown the process. Here is some code
Api with console log that lets me know when compression is done. When the video clips are longer around 1min this GET request never logs’=
app.get('/clovis/api/led', function (req, res){
console.log("api activated for resetLED function");
resetLED();
console.log("reset was completed");
})Nodejs spawns that call different bash scripts
function setBashScript(scriptNum){
if(scriptNum == 0){
//do this
child = spawn('./feedmpeg.sh');
resetLED();
}
if(scriptNum == 1){
//do this
updatePicturePath();
child = spawn('./feedSnapshot.sh',[pictureFilePath]);
resetLED();
}
if(scriptNum == 2){
//do this
updateVideoPath();
child = spawn('./feedmpegRecord.sh',[videoFilePath]);
isRecording = true;
resetLED();
ledRed();
}
if(scriptNum == 10){
//do this
updateCompressedPath();
child = spawn('./generalCompressionMP4.sh',[videoFilePath,compressedFilePath]);
isRecording = false;
resetLED();
ledBlue();
}
}generalCompressionMP4.sh - The spawn process that doesnt complete if video length is too long. Generally when the process is complete, I head over to the localhost server and view the mp4 file. When this issue occures the mp4 doesnt load, the old path is not removed, and the api doesnt send.
#!/bin/bash
FILEPATH="$1"
COMPRESSIONPATH="$2"
ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type: application/json" -X POST
http://localhost:3000/clovis/api/ledWhy might the process get stuck ? How can i fix this ? Should I not use spawn child process ?
-
Is there something equivalent to FilterKit for android ?
29 octobre 2014, par Varun JainI am looking to put filters on a video after it has been recorded. Explored FFMPEG but it is way too slow (take 10-15 seconds for a 20 second video). The instagram app does it in under 1-2 seconds every time. Sample FFMPEG code I am using :
ffmpeg -y -i vid_0.mp4 -preset ultrafast -vf format=gray,format=yuv422p -vsync 2 webcam.mp4
Is there a library similar to FilterKit for android ? Is there a feasible way in which I can use FilterKit on Android ? Any other approach to apply filters on video would also be welcome.
Note : I am not talking about giving the user a preview, that is easily done by using a surface view. I need to convert the video.