
Recherche avancée
Autres articles (111)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (11344)
-
Concatenate a large number of videos with moviepy
10 décembre 2016, par Anis SouamesI’m using moviepy to create compilations automatically, I have around 20 mp4 videos with less than 2 mins each that are concatenated into one large video file using moviepy .
However I’m facing a lot of difficulty because each time I try to concatenate this large number of videos I get anOSError: Cannot Allocate Memory
Error . So the way I’m doing it is that I first create one part with 10 vids and a second part with 10 vids and then concat both of them. this method works however it’s very time and cpu consuming .Is there a straight forward way to concatenate a large number of videos ? My bot is running on an Ubuntu Server with 1GB of RAM and 10 GB of disk space . For 20 typical vids I have approxiamtely 60MB of vids to get processed and compiled . 1GB of ram should handle this without any problem. :
Here’s the code I’m using :
for video_name in videos_filename[0:len(videos_filename)/2]:
try:
print video_name
clip = mv.VideoFileClip(video_name, audio=True)
clip = clip.resize(width=720, height=480)
video_clips.append(clip)
except:
print "Error in adding clips.... Part 1"
pdb.set_trace()
final_clip = mv.concatenate_videoclips(clips=video_clips, method="compose")
finalFile = mv.write_videofile(someName, fps=60, codec="libx264")I’m sure that the
mv.concatenate_videoclips(clips=video_clips, method="compose)
is responsible for the error that I’m getting, How can I fix that and stop using a partial solution ? Should I quit moviepy and use another module ? Maybe ffmpeg directly ? -
FFMPEG scene detection : overlay original frame number
21 décembre 2020, par FugiI'm able to extract all frames that are not similar to the previous frame from a video file using
ffmpeg -i video.mp4 -vf "select=gt(scene\,0.003),setpts=N/(30*TB)" frame%d.jpg
(source)

I would like to overlay the frame number onto each selected frame. I tried adding
drawtext=fontfile=/Windows/Fonts/Arial.ttf: text='frame\: %{frame_num}': x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1: fontsize=30
to the filter after select and setpts, however %frame_num returns1, 2, 3, ...
(source)

If I put drawtext before select and setpts, I get something like
16, 42, 181, ...
as frame numbers (which is exactly what I want), but since the scene detection runs after adding the text overlay, changes in the overlay may be detected as well.

Is it possible to do the scene detection and overlay independently from another ?
[in] split [out0][out1]
can be used to apply filters separately, but I don't know how to "combine" the results again.

-
Revision 516f7ac04e : Fix typo in comment for number of extra bits for cat6 tokens. Change-Id : I07ddf
11 mars 2013, par Ronald S. BultjeChanged Paths : Modify /vp9/common/vp9_entropy.h Fix typo in comment for number of extra bits for cat6 tokens. Change-Id : I07ddf3be8bc5d6c2eb561d4241879777c315b183