Skip to content

Instantly share code, notes, and snippets.

@tngaspar
tngaspar / pytz_common_timezones.py
Created August 2, 2022 20:35
List of common timezones from pytz package
# List of common timezones from pytz package.
# https://pypi.org/project/pytz/
[
'Africa/Abidjan',
'Africa/Accra',
'Africa/Addis_Ababa',
'Africa/Algiers',
'Africa/Asmara',
'Africa/Bamako',
'Africa/Bangui',
@tngaspar
tngaspar / merge_mp4.py
Created August 1, 2022 20:28
Merges multiple .mp4 video files into a single file
# Merges multiple .mp4 video files into a single file.
# Add your .mp4 files into a video/ subdirectory and run this script.
# Will generate a final_video.mp4 file in the same directory as this file
import os
from moviepy.editor import VideoFileClip, concatenate_videoclips
# ### SETTINGS - Modify this to your preferences ###
video_fade_secs = 1 # Video fade in and out duration in seconds.
audio_fade_secs = 1 # Audio fade in and out duration in seconds.