Skip to content

Instantly share code, notes, and snippets.

View sjimenez44's full-sized avatar
📱

Santiago Jiménez sjimenez44

📱
  • BufferOrigin
  • Medellín, Colombia
  • 02:44 (UTC -05:00)
  • YouTube @sjimenez044
View GitHub Profile
@sjimenez44
sjimenez44 / remove_silences.py
Created December 1, 2024 16:24
Remove silences with ffmpeg
import re
import subprocess
# Función para ejecutar el comando FFmpeg
def run_ffmpeg(command):
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return result.stdout.decode(), result.stderr.decode()
# Detectar los silencios en un archivo de audio
def detect_silence(input_file):
@sjimenez44
sjimenez44 / detect_silents.py
Created December 1, 2024 15:50
Detect silents in audio Davinci Resolve Timeline
projectManager = resolve.GetProjectManager()
currentProject = projectManager.GetCurrentProject()
media_pool = currentProject.GetMediaPool()
timeline = currentProject.GetCurrentTimeline()
time_in_seconds = [] #Cambiar por la lista de tiempos que arroje ffmpeg
fps = timeline.GetSetting("timelineFrameRate")
frame_positions = [int(round(time_sec * float(fps))) for time_sec in time_in_seconds]
for frame in frame_positions:
timeline.AddMarker(frame, 'Red', 'M1', '', 1)
@sjimenez44
sjimenez44 / init_davinci.py
Last active December 1, 2024 15:50
Format raw video in Davinci Resolve Timeline
projectManager = resolve.GetProjectManager()
currentProject = projectManager.GetCurrentProject()
media_pool = currentProject.GetMediaPool()
timeline = currentProject.GetCurrentTimeline()
media_pool_clips = media_pool.GetRootFolder().GetClipList()
selected_clip = media_pool_clips[1]
timeline_clip = media_pool.AppendToTimeline([selected_clip])[0]
clip_width, clip_height = 2560, 1440
@sjimenez44
sjimenez44 / VMware_Keys.md
Last active July 14, 2023 21:40 — forked from Vichingo455/VMware_Keys.md
VMware Workstation Pro Serial Keys

VMware Workstation Pro Serial Keys

Updated: 2023-07-14

VMware Workstation 14.x.x

AG352-4YED3-0852Q-LPXXT-MGKG4

FC1R0-2EX4M-H854Y-2NWGE-Q2KXA

ZU3EH-0YXD4-4819Q-CFWQZ-MZHX4

@sjimenez44
sjimenez44 / GitCheatsheet.md
Created October 12, 2021 15:23
Git cheatsheet

Git cheatsheet

Table of contents

  1. Git Local
  2. Tags

Git local

If you want to change the remote repositorie of a project

@sjimenez44
sjimenez44 / DockerVolumes.md
Created September 10, 2021 14:50
Docker volumes

Docker volumes

  $ docker volume create --name=<NAME_VOLUME>

Ruta de los volumenes en windows

  • \\wsl$\docker-desktop-data\version-pack-data\community
@sjimenez44
sjimenez44 / TimeZone.md
Created September 8, 2021 19:19
Change time zone Docker container

Change TimeZone in Docker containers

With Docker Engine

The timezone of a container can be set using an environment variable in the docker container when it is created. For example:

$ docker run ubuntu:latest date
Sat Feb 27 15:58:32 UTC 2021
$ docker run -e TZ=America/Bogota ubuntu:latest date
Sat Feb 27 15:58:40 Asia 2021
@sjimenez44
sjimenez44 / AngularCommits.md
Created September 8, 2021 16:41
Angular commit conventions

Angular commit conventions

Commit Message Format

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.