
Recherche avancée
Autres articles (63)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)
Sur d’autres sites (10602)
-
ffmpeg overlay to scroll a super long image, blinking & glitchy issue
17 janvier 2023, par goforuI have a super long image and want to scroll vertically using ffmpeg filter overlay, it takes about 10 mins to scroll from the top to the end. When the image is small and time is short it scroll very smoothly, but when it comes to a super long image and the time comes to 10 mins. It gets blinking and glitchy. How to solve this issue ?


ffmpeg -y -r 1 -loop 1 -t 544.3800000000026 -i /Users/joey/Library/Application Support/Electron/tmp/content.png -r 60 -loop 1 -t 544.3800000000026 -i /Users/joey/Library/Application Support/Electron/tmp/bg.png -filter_complex [1:v]crop=1080:810:0:0,fps=60[v1];[v1][0:v]overlay=x=0:y=if(gt(t\,1.29)\,48.6-151.75127511093854*(t-1.29)\,48.6)[mv1];[1][mv1]overlay=y=0[m1] -preset ultrafast -map [m1] -t 544.3800000000026 /Users/joey/Library/Application Support/Electron/tmp/output.mp4



-
Using ffmpeg and aresample with super low sample rate
23 mars 2020, par Jurijs KovzelsI am trying to use
ffmpeg
to get data to generate list of peaks with resolution of 30 peaks per second.the params I’m using are :
ffmpeg -y -i audio.wav -filter_complex "[0]aresample=30[resampled]" -map [resampled] output_30.wav
which kills almost all information and resulting data array contains only very small values. This waveform is before resampling
versus after resampling to 60kHz
My question is if it is possible to use ffmpeg and get maximums (peaks) over each timespan (second or 1/20 second) of audio ?
-
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')