
Recherche avancée
Médias (3)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (113)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (5453)
-
Sequelize FFMPEG get video after upload on NodeJs
30 juin 2020, par jjplackHello After upload a video to db using sequelize, i would like to edit it using FFMPEG


So to get the video is just point the model attribute to FFMPEG ?


Because using the file path is not editing the video.


For exemple :


fastify.route({
 method: "POST",
 url: "/posts",
 preHandler: upload.single("video"),

 handler: async function(request, reply) {
 const { Post } = fastify.sequelize;

 const videoPath = "./public/uploads/";

 

 

 const post = await Post.create({
 video: request.file.path,
 title: request.body.title,
 
 });
 reply.code(201).send(post);


 

try {
 const process = new ffmpeg(post.video);
 process.then(function (video) {
 video.addCommand('-ss', '00:01:00')
 video.addCommand('-vframes', '1')
 video.save(videoPath, function (error, file) {
 if (!error)
 console.log('Video file: ' + file);
 });
 }, function (err) {
 console.log('Error: ' + err);
 });
} catch (e) {

 console.log(e.msg);

}
 
 }
 });



-
Rails generate dynamic ffmpeg command
13 janvier 2024, par SetoI'm trying to combine several videos into one with
ffmpeg
command called from a Ruby script in a RailsActionJob
class. The number of input videos is unlimited. This is how I did it right now.

def perform(project_id)
 @project = Project.find(project_id)
 logger.info 'ProjectGenerateVlogJob#perform'
 logger.debug "project: #{@project.inspect}"
 setup_directory

 result_filename = "#{@project.id}-vlog.mp4"
 execute_command = <<-FFMPEG
 find *.mp4 | sed 's:\ :\\\ :g'| sed 's/^/file /' > fl.txt; ffmpeg -f concat -i fl.txt -c copy #{result_filename}; rm fl.txt
 FFMPEG

 logger.debug "ffmpeg_command: #{execute_command}"
 `#{execute_command}`
 end



But that command is not stable, in a way that the generated video has problems, namely un-synch audio, video gets cut off, etc.


This is how I did it through the console manually that produced the best result so far :


$ ffmpeg -i IMG_1-same.MOV -i IMG_2-same.MOV -i IMG_3-same.MOV \
-filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] \
concat=n=3:v=1:a=1 [v] [a]" \
-map "[v]" -map "[a]" -vsync vfr vlog-1.mp4



The thing is, I don't know how to generate the command dynamically so it can be run by the Ruby script. Any pointers ?


The Project model has many videos, and when I looped through it it produced multiple lines of command and it's not a valid command when I run it from Ruby.


-
aacpsy : Add energy spread for each band
26 juin 2015, par Rostislav Pehlivanovaacpsy : Add energy spread for each band
This commit adds the energy spread to the struct for each band and removes 2 unused fields.
distortion and perceptual_weight were not referenced in any file nor were they set to any value,
so it was safe to remove them. The energy spread is currently only used in the aac psy model.
It’s defined as being proportional to the tonality of each band.Reviewed-by : Claudio Freire <klaussfreire@gmail.com>
Signed-off-by : Michael Niedermayer <michaelni@gmx.at>