
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (14)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
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 -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (3651)
-
lavfi/vf_vpp_qsv : scale_mode can be applied to color conversion
28 novembre 2022, par Haihao Xiang -
Evolution #4391 : Squelettes de la dist : améliorer le markup et passer à BEM
25 octobre 2019, par nicod _Bon, toutes ces discussions sur l’architecture des css c’est super intéressant, mais il ne faudrait pas transformer la dist en un truc incompréhensible.
Il faut qu’elle reste simple et accessible, quand même.Je suis pour un peu de nommage BEM, pour rationaliser les noms des classes et donner le bon exemple, sans aller trop loin non plus.
-
How to enlarge a video without changing the resolution in python ? [closed]
18 janvier 2024, par Killian RakotonanaharyI'm trying to convert a youtube video into a 9 : 16 video. So I'm scaling the video to 1080x1920, and it's returns me a minimized video with two black borders at the bottom and at the top.


I would like to zoom into the video, so the video will be able to fill all the format, with ffmpeg, or opencv or moviepy.


I tryied to crop the video with ffmpeg but the video is cropped without the black borders, like if the black borders wasnt a part of the file,
I tryed to zoom with ffmpeg but the zoompan continuously zoom during all the video, and the black borders are not affected by the zoom,
I tryed to remove the edges where the pixel value is less than or equal to a given threshold, but the ratio is not kept, and its result to a strechted video.
I would like to do something like https://new.express.adobe.com/tools/resize-video


Enlarge the video without affecting the resolution, so it's just result to a zoom effect.


The actual code is resizing the video to 9 : 16 with two black border at the bottom and on the top.


def divideWithCheckPoints(checkpointRanges):
 videoPath = 'assets/video.mp4'
 output_folder = 'assets/'

 video_clip = VideoFileClip(videoPath)
 
 for i, (start_time, end_time) in enumerate(checkpointRanges):
 output_file = f'{output_folder}video_part_{i+1}.mp4'
 command = [
 'ffmpeg',
 '-i', videoPath,
 '-ss', str(start_time),
 '-to', str(end_time),
 '-vf', "scale=1080:1920", # resize video
 '-c:a', 'aac',
 '-b:v', '1M', 
 output_file
 ]
 subprocess.run(command, check=True)
 
 last_start_time = checkpointRanges[-1][1]
 last_end_time = video_clip.duration 
 last_output_file = f'{output_folder}video_part_{len(checkpointRanges)+1}.mp4'
 command = [
 'ffmpeg',
 '-i', videoPath,
 '-ss', str(last_start_time),
 '-to', str(last_end_time),
 '-vf', "scale=1080:1920", # resize video
 '-c:a', 'aac', 
 last_output_file
 ]
 subprocess.run(command)



Output :




Expected :