
Recherche avancée
Autres articles (108)
-
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. -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (17609)
-
MoviePy on EC2 Instance Super Slow
27 janvier 2020, par connorvoNo matter what size EC2 instance I use, MoviePy.write_videofile() takes forever.
I ran it on a t2.micro, c5.large, and c4.2xlarge and they all projected to take the same amount of time ( 7 hours).
I have a 720mb mp4 file that I am adding a 30mb mp4 file to the beginning of and then putting a text overlay on the entire video (just static text saying the company name in the bottom corner).
final_video.write_videofile(
f"{FINAL_VIDEO_FILENAME}.mp4",
fps=60,
codec='libx264',
audio_codec='aac',
temp_audiofile=f'{FINAL_VIDEO_FILENAME}_temp_audio.mp4',
remove_temp=True,
threads = 8, # this was for c4.2xlarge instance
)def __get_intro_clip(self, title, size, fps):
clip = ( VideoFileClip('ytbot/intro_video/intro_video.mp4')
.subclip(0,9.5)
.resize(size)
.set_fps(fps)
)
# make bigger then resize() so stroke works properly
text_clip1 = ( TextClip(f'{TEXTTEXT}',font='Helvetica-Narrow-Bold',fontsize=self.DEFAULT_TEXT_SIZE*self.TITLE_MULTIPLIER,color='white',stroke_color='black',stroke_width=self.DEFAULT_STROKE_SIZE*self.TITLE_MULTIPLIER).resize(self.DEFAULT_RESIZE_MULTIPLIER)
.margin(bottom=175, opacity=0)
.set_position('center')
.set_duration(4)
.set_start(1)
.fadein(0.25)
.fadeout(0.25)
)
text_clip2 = ( TextClip(f'presents',font='Helvetica-Narrow-Bold',fontsize=self.DEFAULT_TEXT_SIZE*self.TITLE_MULTIPLIER*0.7,color='white',stroke_color='black',stroke_width=self.DEFAULT_STROKE_SIZE*self.TITLE_MULTIPLIER).resize(self.DEFAULT_RESIZE_MULTIPLIER)
.set_position('center')
.set_duration(3.5)
.set_start(1.5)
.fadein(0.25)
.fadeout(0.25)
)
text_clip3 = ( TextClip(title,font='Helvetica-Narrow-Bold',fontsize=self.DEFAULT_TEXT_SIZE*self.TITLE_MULTIPLIER,color='white',stroke_color='black',stroke_width=self.DEFAULT_STROKE_SIZE*self.TITLE_MULTIPLIER).resize(self.DEFAULT_RESIZE_MULTIPLIER)
.margin(top=175, opacity=0)
.set_position('center')
.set_duration(3)
.set_start(2)
.fadein(0.25)
.fadeout(0.25)
)
return CompositeVideoClip([clip, text_clip1, text_clip2, text_clip3]).fadein(0.5)
def edit_yt_video(self, video_path, name):
video_clips = []
clip = VideoFileClip(video_path)
video_clips.append(self.__get_intro_clip(name, clip.size, clip.fps))
text_clip = ( TextClip('Company: {name}',font='Helvetica-Narrow-Bold',fontsize=self.DEFAULT_TEXT_SIZE,color='white',stroke_color='black',stroke_width=self.DEFAULT_STROKE_SIZE).resize(self.DEFAULT_RESIZE_MULTIPLIER)
.margin(bottom=15, left=15, opacity=0)
.set_position(('left', 'bottom'))
.set_duration(clip.duration)
)
video_clips.append(CompositeVideoClip([clip, text_clip]).fadeout(0.5).crossfadein(0.5))
return concatenate_videoclips(video_clips, padding=-1, method='compose') -
Adds ESPCN super resolution filter merged with SRCNN filter.
13 juin 2018, par Sergey LavrushkinAdds ESPCN super resolution filter merged with SRCNN filter.
Signed-off-by : Pedro Arthur <bygrandao@gmail.com>
-
aac encoding with ffmpeg result in super short file
5 janvier 2017, par MockarutanSo I’m having problem with AAC encoding. I’m trying to encode some synthetic sound waves, but it does not work as expected. The file I get gives just a super short sound when played in VLC. When I play is in ffplay is plays like I expect, but it says "duration : 00:00:00.05" which I suppose says 5 ms. But I encode a lot more than that, and it played more. So VLC plays a super short sound, ffplay plays a longer file (the expected length), but displays it with super short duration, what’s going on ?
Source : http://pastebin.com/M5MKkEL3
One of the things that looks wrong to me is this :
If you look for the variable "audio_time", if you breakpoint it and read it every encode frame, you will get this :..
Encode frame 8 : 0.00010416666666666666
Encode frame 9 : 0.00012500000000000000
(and so on)The diff is : 0.00002085, which is a 1/1000 of a the diff I expected from 47 samples frames per second, which is what the encoder wants with 48k sample rate (48k / 1024 = 47).
So why do I get a thousand of the expected data encoded ?
Feel free to point anything suspicious out !
Thanks in advance !