
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (102)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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
Sur d’autres sites (10836)
-
Revision 16718 : Planar YUV 4:2:0, 12bpp, full scale (jpeg) looks better than Planar YUV ...
23 novembre 2009, par j — LogPlanar YUV 4:2:0, 12bpp, full scale (jpeg) looks better than Planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples).
-
Revision 38130 : Oups on a viré l’enregistrement de el.field_lang[’full’] donc on ne doit ...
10 mai 2010, par kent1@… — LogOups on a viré l’enregistrement de el.field_langfull ? donc on ne doit pas repasser par là
-
UserWarning : x bytes wanted but 0 bytes read at frame index y (out of a total z frames), at time q sec. Using the last valid frame instead
9 juillet, par WizI have a script which subclips a larger video and then stitches needed parts together using concatenate and write video file in moviepy. But the problem is everytime i run the script i get the video but the audio is off sync, usually the audio starts normally, but over time becomes delayed. I suspect it is because i want to concatenate around 220 smaller mp4 videos into one big mp4 video, but every smaller clips receives the error :'UserWarning : In file test.mp4, 1555200 bytes wanted but 0 bytes read at frame index y (out of a total y+1 frames), at time x sec. Using the last valid frame instead.'


I use moviepy v2


MY CODE (it doesnt produce any strict errors, but does give the aformentioned UserWarning when writing video_unsilenced.mp4) :


n = 0

cuts = []
input_paths = []
vc = []
os.makedirs(r"ShortsBot\SUBCLIPS")
for timer in range(len(startsilence)-1):
 w = VideoFileClip(r"ShortsBot\output\cropped_video.mp4").subclipped(endsilence[n],(startsilence[n+1]+0.5))
 w.write_videofile(r"ShortsBot\SUBCLIPS\video" + str(n) + ".mp4")
 a = VideoFileClip(r"ShortsBot\SUBCLIPS\video" + str(n) + ".mp4")
 vc.append(a)
 n+=1

output_fname = "video_unsilenced.mp4"
clip = mpy.concatenate_videoclips(clips=vc, method= 'compose')
clip.write_videofile(filename=output_fname, fps=30)
_ = [a.close() for a in vc]



Because moviepy is shaving off a frame or two for every video clip and at the same time writing the audio of the concatenated clip normally (without shaving off the audio that is in the missing frames), the video and audio slowly become out of sync.And the more clips i want to concatenate, the more the audio becomes out of sync, basically confirming my suspicion that it is because moviepy is using the last valid frame and writing the audio normally. The question i have is how can i fix this ?


EDIT : Full error message (although this error message appears after every clip that needs to be concatenated, usually, just like in this error message, its one or two frames that are invalid) : C :\Users\user\miniconda3\envs\myenv\Lib\site-packages\moviepy\video\io\ffmpeg_reader.py:190 : UserWarning : In file C :\Users\user\Desktop\File\Subclips\video317.mp4, 1555200 bytes wanted but 0 bytes read at frame index 99 (out of a total 100 frames), at time 3.30/3.34 sec. Using the last valid frame instead.