
Recherche avancée
Autres articles (50)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (8024)
-
Python : How to clip/trim required part from the video and move the trimmed video file to other directory
4 avril 2021, par saurabhI'm trying to remove duplicate segments from videos from a directory and paste these trimmed videos to other directory.


For example :


I've following directory structure for saving live rtsp stream (each 1 min long) :-


Live_videos
------2021-04-04
 ------stream1
 -------14 36 08.avi( 1 min)
 14 37 08.avi( Saved only till 14 37 39 mark due to disconnect with stream1 camera)
 14 38 35.avi( 1 min)
 stream2
 -------14 36 15.avi( 1 min)
 14 37 15.avi( 1 min)
 14 38 14.avi( 1 min)



So, the disconnect and reconnect time are 14 37 40 and 14 38 34 respectively which will be sent to some other server and that server will search for videos saved in their machine which contains segments from the given timestamps and sends the video file in following directory structure : -


Edge_videos
-----------2021-04-04
 ----------stream1
 -------14 36 35.avi
 -------14 37 35.avi



Now, you can see that the received video files have the required segments from disconnect period as well as duplicate segments which are already saved in Live_videos directory.


How do I remove the duplicate segments from the received videos and move only the required trimmed video file to the Live_videos----> stream1 directory and delete all the files from Edge_videos afterwards.


-
Date and segment comparison feature
31 octobre 2019, par Matomo Core Team — Analytics Tips, Development -
ffmpeg timestamp information using fps filter isn't aligned with ffprobe
16 juillet 2018, par Jose.OCI’m using ffmpeg to extract images (thumbnails) from a video using the filter fps so that I get an image every 0.5 seconds. This is the command I use :
ffmpeg -i video.mp4 -f image2 -filter:v fps=1/0.5 -y out_%3d.png
I want to know the timestamp for these images and I’ve found out that ffmpeg behaves differently than ffprobe.
First of all, I haven’t found a way to get the timestamps as metadata (log files or whatever) but I got to overlay the timestamp in the images themselves using ffmpeg :
ffmpeg -i video.mp4 \
-vf "fps=fps=1/5,drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf: text='%{pts\:hms}': x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1" \
out_with_timestamp_%03d.pngHowever, using ffprobe you can simulate the use of the same fps filter and ffprobe allows you to get some information from the frames. This command is supposed to simulate the ffmpeg one and provides some metadata where you can extract the timestamps from :
fprobe -hide_banner \
-i "movie=video.mp4,fps=fps=1/0.5[out0]" \
-f lavfi -show_frames -show_entries frame=pkt_pts_time -of csv=p=0The problem is that the timestamps that ffmpeg prints into the images are different than the ones that ffprobe gives, and ffprobe ones are wrong while the ones given by ffmpeg are right.
The timetamps given by ffmpeg are in the middle of the period of time while the ones given by ffprobe are in the very begining of the window.Is there any way to extract thumbnails and its timestamp from a video using ffmpeg ?
You can find all the steps to be able to reproduce this behaviour here :
https://www.joseoc.com/en/video/ffmpeg/extract-images-from-video/#getting-the-timestamp-for-the-images