
Recherche avancée
Autres articles (46)
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (8683)
-
FFmpeg convert time to frame
3 décembre 2013, par William SeemannDoes anyone know how to convert a timestamp into a frame ? For example, if I wanted the frame number at 2 seconds in a video with a framerate of 30/fps it would be the 60th frame. Here is the code I have so far. However, I don't think it's correct since seek_time has a value of 90 (for a 1 sec target) using a video with a framerate of 23.98 :
int timeUs = 1000000; // 1 sec
AVPacket packet;
AVPacket *pkt = NULL;
int64_t desired_frame_number = -1;
State *state = *ps;
Options opt = option;
int stream_index = state->video_stream;
int64_t seek_time = av_rescale_q(timeUs, AV_TIME_BASE_Q, state->pFormatCtx->streams[stream_index]->time_base);
int64_t seek_stream_duration = state->pFormatCtx->streams[stream_index]->duration;
int flags = 0;
int ret = -1;
// Convert time into frame number
seek_time /= 1000;
printf("seek time: %" PRId64 "\n", seek_time); -
Extracting all frames of a video using ffmpeg
4 décembre 2013, par Gonzalo SoleraI'm trying to extract all the frames of a video using ffmpeg compiled statically for android. I want to extract all the frames with a lower quality (at jpg format) and then, select the specific frames I want with a higher resolution and extract them at png format.
But the problem is that I need to know exactly at what time is placed the selected frame in order to be able to extract te same frame at higher resolution. When I calcule how much time are between frames (duration_of_the_video/total_frames_extracted) and I multiple it by the number of the frame I want to extract again, the result time isn't the exact time of the frame.How could I extract a specific number of frames of a video using ffmpeg ? I'm trying to extract all the frames but sometimes not all the frames are extracted. For example, I have a 1600 ms long video but when I use this command :
ffmpeg -i file.mp4 -y %d.jpg
it doesn't extract all the frames because it only extracts 45 frames but the frame rate is 30 fps (1600/45 = 35.5555 and 1000/30 = 33.33333).
So, in order to be able to calculate at what time is placed the frame I want, I would need to extract ALL the frames of the video or extract a fixed number of frames (it doesn't matter if some frames are repeated if I can get the time of them).
This is the output when I try to extract all the frames (there should be 48 but there are 45 instead so I can't calculate the exact time...)
I'm not sure If I have explained correctly but I will appreciate any help. Thanks !
-
ffmpeg : create a video from images and sounds
27 septembre 2018, par Yuri GusakYou need to create a video from a set of pictures and sounds using ffmpeg.
Set of pictures : frame_% d.jpg
Sounds :
sound1.mp3 (from 0 ms)
sound2.mp3 (from 1000 ms)
sound3.mp3 (from 2000 ms)I can create a video with one sound :
-i frame_% d.jpg -i sound1.mp3 -r 30 -s 1280x720 -preset ultrafast -crf 25 -shortest movie.mp4
and it works.
But I need to add some sounds at different times. How can I do that ? May be -filter_complex will help ?