
Recherche avancée
Autres articles (39)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
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 -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)
Sur d’autres sites (5776)
-
Evolution #4277 : Pouvoir utiliser InnoDB à la place de MyISAM (patch)
18 septembre 2019Effectivement, si c’est possible, le define ne serait pas utile.
Mais est-ce que tu pourrais indiquer quel est le paramètre MariaDB à modifier pour avoir ce comportement ?Et pour en revenir au define, c’est vraiment un truc sans risque, non ?
-
PYTHON How to extract a fragment from video by giving start frame and end frame or exact timestamps in float ?
13 décembre 2022, par cxntI'm trying to cut out a fragment from video with the given start and end frames indexes or theirs timestamps (preferably frame indexes). So far I've found this Q but it takes floats and convert them to integers hence the output video has inaccurate frames


this is a sample of what I've tried which gives me inaccurate output video


def extract_fragment(input_path, output_path):
 start_time = 3.453453
 end_time = 6.8768678

 ffmpeg_extract_subclip(
 filename=input_path,
 t1=start_time,
 t2=end_time,
 targetname=output_path,
 )



And I also tried to use ffmpeg directly


with duration


subprocess.call(
 [
 "ffmpeg",
 "-start_at_zero",
 "-copyts",
 "-ss",
 start_time,
 "-t",
 end_time - start_time,
 "-i",
 f"{path_to_video}",
 "-c",
 "copy",
 f"{output_video_path}",
 ]
 )



subprocess.call(
 [
 "ffmpeg",
 "-y",
 "-ss",
 str(start_time),
 "-i",
 path_to_video,
 "-t",
 str(end_time),
 "-map",
 "0",
 "-vcodec",
 "copy",
 "-acodec",
 "copy",
 output_video_path,
 ]
 )



-
FFMPEG - why zoompan causes unexpected stretching ?
14 septembre 2020, par Sarmad S.I have two images as input, both are 1600x1066. I am vertically stacking them. Then I am drawing a box and vertically stacking that box under both of the image. Inside of the box I write text, then I output a video that is 1080x1920. Everything works well, until I use zoompan to zoom in on the images, I get weird behavior. basically all input images including the box stretchs (shrink) vertically and no longer fit the entire height of the video which is 1920.


The command (removed some drawtext commands from it) :


-filter_complex 
"color=s=1600x1066:color=blue, drawtext=fontfile=font.otf: text='My Text':fontcolor=white: fontsize=30: x=50: y=50[box]; 
[0]scale=4000x4000,zoompan=z='min(zoom+0.0015,1.5)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=125:s=1600x1066[z0];
[1]scale=4000x4000,zoompan=z='min(zoom+0.0015,1.5)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=125:s=1600x1066[z1];
[z0][z1][box]vstack=inputs=3"



How do I fix this ? I want to zoom in without stretching the images


Before using zoompan this is how the video looks like (I want to keep it this way while zooming in the images) :



After using zoompan this is how the video looks like :