
Recherche avancée
Autres articles (51)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (6979)
-
Revision 13a4f14710 : Eliminate num_8x8 and num_4x4 width/height lookups Also some log2 lookups. Pas
9 juillet 2015, par Scott LaVarnwayChanged Paths :
Modify /vp9/common/vp9_blockd.h
Modify /vp9/decoder/vp9_decodeframe.c
Modify /vp9/decoder/vp9_decodemv.c
Modify /vp9/decoder/vp9_decodemv.h
Modify /vp9/decoder/vp9_detokenize.c
Modify /vp9/decoder/vp9_detokenize.h
Eliminate num_8x8 and num_4x4 width/height lookupsAlso some log2 lookups.
Pass in 8x8 block width/height and log2 num4x4s instead.
Change-Id : I8ea9a1ec1e0bbab23f8ba556954a1b5433f4d613
-
Dynamically change video crop width, height, x and y using ffmpeg
12 mai 2021, par MarioI am doing object detection on a video and so far I've gotten the coordinates of the objects in the video.


now I want to crop the video frame by frame given the location/coordinates of the object


My code so far :


def crop_video(input_video_path, output_video_path, coordinate_list):
 
 crop_ratio = 'crop=%s:%s:%s:%s' % (coordinate_list[0][0], coordinate_list[0][1], coordinate_list[0][2],coordinate_list[0][3])
 subprocess.run(['ffmpeg', '-i', input_video_path, '-filter:v', crop_ratio, output_video_path])



the
crop_video
function crops the entire video using only the first index in the coordinate_list list. How can I improve the code to change dynamically.
coordinate list looks similar to this :

coordinate_list = [[147.5, 253.5, 927, 107],
 [147.5, 253.5, 927, 107],
 [147.0, 257.5, 928, 102],
 [148.5, 258.5, 925, 104],
 [148.5, 258.5, 925, 104],
 [155.0, 258.5, 918, 103],
 [155.0, 258.5, 918, 103],]



How can I dynamically change the crop width, height, x and y using the coordinate_list. I am new to using ffmpeg


-
avformat/movenc : avoid floats in width/height/aspect ratio computations
29 mai 2015, par Michael Niedermayer