Breaking YOUTUBE ALGORITHM with Python!

  Рет қаралды 274

Practical Coding

Practical Coding

Күн бұрын

Пікірлер: 5
@PracticalCoding.
@PracticalCoding. 7 ай бұрын
I forgot from moviepy.editor import * import random2 def change_background(word): special_characters = ['.', '!', '?'] return any(char in word for char in special_characters) sentence = 'first. second. third.' words = sentence.split(' ') background_list = ['backgrounds_names'] background_folder = 'backgrounds\\' background_extension = '.mp4' background = background_folder + random2.choice(background_list) + background_extension audioclip = AudioFileClip("background_music.mp3") sound = AudioFileClip("open.mp3") clip = VideoFileClip(background) logo = ImageClip("logo") logo.margin(top=20, left=20, opacity=0) logo.set_pos('left', 'top') name = 't' duration = 0 res = len(words) video_clips = [clip] for word in words: duration += 0.3 text_clip = TextClip(word, fontsize=150, font="Franklin-Gothic-Medium", color="white", stroke_width=5, stroke_color="black") text_clip = text_clip.set_start(duration) text_clip = text_clip.set_pos('center') text_clip = text_clip.set_duration(0.2) video_clips.append(text_clip) if change_background(word): duration += 0.7 next_background = VideoFileClip(background_folder + random2.choice(background_list) + background_extension).set_start(duration) video_clips.append(next_background) video_clips.append(logo) duration += 0.3 final_video = CompositeVideoClip(video_clips).set_duration(duration) final_video = vfx.fadeout(final_video, duration=0.6, final_color=[0, 0, 0]) audio = CompositeAudioClip([sound, audioclip]).set_duration(duration) final_video = final_video.set_audio(audio) final_video.write_videofile("name.mp4")
@st4cchu1
@st4cchu1 6 ай бұрын
1:47 Polska moment
@PracticalCoding.
@PracticalCoding. 6 ай бұрын
Poland mentioned rrahhh
@NightWinner
@NightWinner 7 ай бұрын
cool
@Heavy_Lvy
@Heavy_Lvy 4 ай бұрын
the code is so messy aghhhh
Python VS С# | Согласен / Не согласен
14:27
Технологии в Контуре
Рет қаралды 62 М.
How on Earth does ^.?$|^(..+?)\1+$ produce primes?
18:37
Stand-up Maths
Рет қаралды 403 М.
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 39 МЛН
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 113 М.
American was shocked by 7 Slavic countries word differences!!
15:29
World Friends
Рет қаралды 502 М.
I Created Game in MS Paint!
2:21
Practical Coding
Рет қаралды 2,1 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
Why 4d geometry makes me sad
29:42
3Blue1Brown
Рет қаралды 883 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 686 М.
Твоя ПЕРВАЯ НЕЙРОСЕТЬ на Python с нуля! | За 10 минут :3
18:31
Хауди Хо™ - Просто о мире IT!
Рет қаралды 276 М.
I Coded a 3D Spinning Donut
11:00
Green Code
Рет қаралды 69 М.