
Recherche avancée
Autres articles (64)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (4850)
-
Revision 208aa6158b : Remove get_nonrd_var_based_fixed_partition function This function has been repl
9 avril 2015, par Jingning HanChanged Paths :
Modify /vp9/encoder/vp9_encodeframe.c
Remove get_nonrd_var_based_fixed_partition functionThis function has been replaced by other approaches and is not
in use now.Change-Id : I387f45b5607d202539e482468ccc70e6c0f9341f
-
const command is not defined using ffmpeg and child_process
19 avril 2021, par davidf214I'm doing a project and I have a problem. Im trying to generate a .mpd file for a VOD web. The problem is that when i upload a video, it gets me into the function but it says "const command is not defined".


exports.encodeDash = (videoFile) => {
 return new Promise((resolve, reject) => {
 const parsedFile = path.parse(videoFile);
 const outputFile = `${parsedFile.name}.mpd`
 const outputFilePath = `/videos/dash/${outputFile}`;
 const outputFilemp4 = `${parsedFile.name}.mp4`;
 const outputFilePathmp4 = `/videos/${outputFilemp4}`

 if (parsedFile.ext == '.mp4'){
 let command=`ffmpeg -i ${videoFile} -c:v libx264 -r 24 -g 24 -b:v 1000k -maxrate 1000k -bufsize 2000k /videos/dash/${parsedFile.name}-1000k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-1000k.mp4 /videos/dash/fragmentado/${parsedFile.name}_1000k-frag.mp4 &&
 ffmpeg -i ${videoFile} -c:v libx264 -r 24 -g 24 -b:v 500k -maxrate 500k -bufsize 1000k /videos/dash/${parsedFile.name}-500k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-500k.mp4 /videos/dash/fragmentado/${parsedFile.name}_500k-frag.mp4 &&
 ffmpeg -i ${videoFile} -c:v libx264 -r 24 -g 24 -b:v 250k -maxrate 250k -bufsize 500k /videos/dash/${parsedFile.name}-250k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-250k.mp4 /videos/dash/fragmentado/${parsedFile.name}_250k-frag.mp4 &&
 python bento4/utils/mp4-dash.py --use-segment-timeline -o ${outputFilePath} /videos/dash/fragmentado/${parsedFile.name}_1000k-frag.mp4 /videos/dash/fragmentado/${parsedFile.name}_500k-frag.mp4 /videos/dash/fragmentado/${parsedFile.name}_250k-frag.mp4`;
 } else {
 let command=`ffmpeg -y -i ${videoFile} ${outputFilePathmp4} && ffmpeg -i ${outputFilePathmp4} -c:v libx264 -r 24 -g 24 -b:v 1000k -maxrate 1000k -bufsize 2000k /videos/dash/${parsedFile.name}-1000k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-1000k.mp4 /videos/dash/fragmentado/${parsedFile.name}_1000k-frag.mp4 &&
 ffmpeg -i ${outputFilePathmp4} -c:v libx264 -r 24 -g 24 -b:v 500k -maxrate 500k -bufsize 1000k /videos/dash/${parsedFile.name}-500k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-500k.mp4 /videos/dash/fragmentado/${parsedFile.name}_500k-frag.mp4 &&
 ffmpeg -i ${outputFilePathmp4} -c:v libx264 -r 24 -g 24 -b:v 250k -maxrate 250k -bufsize 500k /videos/dash/${parsedFile.name}-250k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-250k.mp4 /videos/dash/fragmentado/${parsedFile.name}_250k-frag.mp4 &&
 python bento4/utils/mp4-dash.py --use-segment-timeline -o ${outputFilePath} /videos/dash/fragmentado/${parsedFile.name}_1000k-frag.mp4 /videos/dash/fragmentado/${parsedFile.name}_500k-frag.mp4 /videos/dash/fragmentado/${parsedFile.name}_250k-frag.mp4`;
 } 

 
 // Encode
 
 
 child_process.exec(command, (err, stdout, stderr) => {
 if (err) {
 return reject(new Error(`Encoding error. ${stderr}`));
 }
 resolve(outputFilePath)
 
 });

 
 });
 
}



Just in case, it gives me problems in line child_process.exec(command, (err, stdout, stderr). Thanks !


-
FFMPEG input string
15 mars 2016, par Roger BensonI want my
vb.net
program to convert multiple.vob
files to a single.avi
file usingffmpeg
. I am trying to submit this string-i concat:VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB -c:v avi -b:v 1000k -r 29.97 -g 300 -bf 2 -c:a libmp3lame -b:a 128k -ar 44100 -y V0141789.avi
Can someone help me with this ? I’m really not sure what the string I’m using really means !