
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (53)
-
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 ;
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (9952)
-
lavc/hevcdec : do not let missing ref frames invovled in dpb process
15 juillet 2022, par Xu Guangxinlavc/hevcdec : do not let missing ref frames invovled in dpb process
We will generate a new frame for a missed reference. The frame can only
be used for reference. We assign an invalid decode sequence to it, so
it will not be involved in any dpb process.Tested-by : Fei Wang <fei.w.wang@intel.com>
Signed-off-by : Fei Wang <fei.w.wang@intel.com>
Signed-off-by : Xu Guangxin <guangxin.xu@intel.com> -
Multiple process in NodeJS or native FFMPeg
9 octobre 2019, par LUCAS PAIXÃO SOARES RIBEIROI’m using this code in nodejs :
function spawnFfmpeg(input, output){
var args = [
'-i', input,
'-b:v', '2M',
'-b:a', '192k',
'-vcodec', 'libx264',
'-crf', '27',
'-preset', 'veryfast',
'-filter:v',
'scale=w=1280:h=720',
'-f', 'mpegts',
'-blocksize', '16384',
'-flush_packets', '1',
output,
'-y'
];
var ffmpeg = spawn('ffmpeg', args);
return ffmpeg;
}
function test(){
for(var i = 0; i <= 100; i++){
let ffmpeg = spawnFfmpeg('test.ts', 'output_'+i+'.ts');
ffmpeg.on('exit', () => {
console.log('EXITED');
});
}
}
setInterval(() => {
console.log('OK');
test();
}, 4000);I’m downloading TS video files via HTTP and serving on my HTTP Server (so far it’s working), but when i want to resize video size the script is high cpu and ram (because too many process of ffmpeg).
As I make 100 requests every 4 seconds, each request being a different source I created this test function and found the problem is that ffmepg can’t handle this high spawn number ;
Note : When i only serve the TS File without resizing (using ffmpeg) the scripts works normal with only 0.4% CPU and 40MB Ram, but the problem occurs when i put ffmpeg in the nodejs script.
So I thought the problem could be solved by using a javascript version of ffmepg (in the backend nodejs), is this possible ?
-
Trying to batch process videos in multi-depth subdirectories with ffmpeg, find with -exec
23 novembre 2022, par rogerDThe sub-directories have different depth and have videos scattered. I am using find command to locate videos of multiple extensions like mp4, mkv, m4v, webm, ts, mov, etc. and then trying to process them with ffmpeg.


So far, I have come up with this command :


find . -type f \( -name "*.mp4" -o -name "*.mkv" -o -name "*.m4v" -o -name "*.webm" -o -name "*.ts" -o -name "*.mov" \) -execdir ffmpeg -i {} -vcodec libx264 -crf 32 -vf scale=1280:720 -r 16 -map_metadata -1 {}.mp4 \;



If I try adding a prefix to ffmpeg output as
... out{}.mp4 \;
, it is not possible. It says :



out./.mp4 : No such file or directory




I want the final output to have
"out${original_name}".mp4
as the name. Is there anyway to add prefix to output ?