
Recherche avancée
Médias (3)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
Autres articles (57)
-
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. -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (8701)
-
Révision 108131 : [ux] Placer la prévisualisation du forum sous le forum (au lieu de dessus)
20 décembre 2017, par erational@erational.org -
ffmpeg - overlay a video with rounded corners
4 novembre 2019, par asiI am successfully using overlaying a scaled (smaller) video on top of a larger one but am struggling to understand how could I give the small video a rounded corners mask.
Edit
thanks to @loogan comment I’ve managed to get a working command that created applies a circular mask :
ffmpeg
-i main.mp4
-i vignette.mp4
-filter_complex
[1:v]scale=300:-1[scaled];
[scaled]split [scaled0][scaled11];
[scaled0]trim=end_frame=1,geq='st(3,pow(X-(W/2),2)+pow(Y-(H/2),2));if(lte(ld(3),780*780),255,0)':3:3,loop=-1:1,setpts=N/FRAME_RATE/TB[mask];
[scaled1][mask]alphamerge[cutout];
[0][cutout]overlay=x=W-w:y=0[v];
-map [v]
-map [a]
output.mp4but how to get from a circle to a rounded rect still eludes me. cant quite get what are the params that geq expects and the math to generate them.
assuming that the video that needs masking is 200 * 300 and the corners should have a 5px radius, is there a geq command that can create this mask ? maybe en ellipse ?
or maybe a better way would be to use a pre-made png as a mask ?
any insights welcome
-
How to create mp4 to multi bitrate hls(.m3u8) Stream With fluent-ffmpeg
6 janvier 2023, par Vinay Vadachhakffmpeg -hide_banner -y -i beach.mkv \
 -vf scale=w=640:h=360:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k -hls_segment_filename beach/360p_%03d.ts beach/360p.m3u8 \
 -vf scale=w=842:h=480:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 1400k -maxrate 1498k -bufsize 2100k -b:a 128k -hls_segment_filename beach/480p_%03d.ts beach/480p.m3u8 \
 -vf scale=w=1280:h=720:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k -hls_segment_filename beach/720p_%03d.ts beach/720p.m3u8 \
 -vf scale=w=1920:h=1080:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 5000k -maxrate 5350k -bufsize 7500k -b:a 192k -hls_segment_filename beach/1080p_%03d.ts beach/1080p.m3u8



Convert this command to fluent-ffmpeg node js :


My Code :


let ffmpeg = require('fluent-ffmpeg');
new ffmpeg()
 .addInput('./public/class.mp4')
 .outputOptions([
 '-map 0:v',
 '-map 0:v',
 '-map 0:a',
 '-map 0:a',
 '-s:v:0 426x240',
 '-c:v:0 libx264',
 '-b:v:0 400k',
 '-c:a:0 aac',
 '-b:a:0 64k',
 '-s:v:1 640x360',
 '-c:v:1 libx264',
 '-b:v:1 700k',
 '-c:a:1 aac',
 '-b:a:1 96k',
 //'-var_stream_map', '"v:0,a:0 v:1,a:1"',
 '-master_pl_name playlist.m3u8',
 '-f hls',
 '-max_muxing_queue_size 1024',
 '-hls_time 4',
 '-hls_playlist_type vod',
 '-hls_list_size 0',
 '-hls_segment_filename ./public/output/v%v/segment%03d.ts'
 ])
 .output('./public/output/v%v/master.m3u8')
 .on('start', function (commandLine) {
 console.log('Spawned Ffmpeg with command: ' + commandLine);
 res.write('<p>' + commandLine + '</p>');
 })
 .on('error', function (err, stdout, stderr) {
 console.error('An error occurred: ' + err.message, err, stderr);
 res.write('<p>' + err.message + '</p>');
 })
 .on('progress', function (progress) {
 console.log('Processing: ' + progress.percent + '% done');
 console.log(progress);
 /*percent = progress.percent;
 res.write('<h1>' + percent + '</h1>');*/
 })
 .on('end', function (err, stdout, stderr) {
 console.log('Finished processing!' /*, err, stdout, stderr*/);
 res.write('Finished processing!');
 })
 .run();



This code generate only one bitrate .m3u8 stream.


I have tried many ways to generate multi bitrate hls stream through node js but always generate single bitrate.
i have tried bash command and that was work fine, now i want to convert this command to nodejs script.


Is any one have idea about this ?