Created
December 1, 2024 15:50
-
-
Save sjimenez44/52cdf0e9024d766c9bb0b9be8997ffc4 to your computer and use it in GitHub Desktop.
Detect silents in audio Davinci Resolve Timeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
############## | |
timeline.DeleteMarkersByColor('Red') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment